text: cube(`Tasks`, {
    sql: `SELECT * FROM   tasks`,
    
    preAggregations: {
      // Pre-Aggregations definitions go here
      // Learn more here: https://cube.dev/docs/caching/pre-aggregations/getting-started  
    },
    
    joins: {
      Projects: {
        sql: `${CUBE}.project_id = ${Projects}.id`,
        relationship: `belongsTo`
      }
    },
    
    measures: {
      count: {
        type: `count`,
        drillMembers: [id, name, createdAt, updatedAt]
      }
    },
    
    dimensions: {
      id: {
        sql: `id`,
        type: `number`,
        primaryKey: true
      },
      
      name: {
        sql: `name`,
        type: `string`
      },
      
      type: {
        sql: `type`,
        type: `string`
      },
      
      comment: {
        sql: `comment`,
        type: `string`
      },
      
      createdAt: {
        sql: `created_at`,
        type: `time`
      },
      
      updatedAt: {
        sql: `updated_at`,
        type: `time`
      },
      
      workedOn: {
        sql: `worked_on`,
        type: `time`
      }
    },
    
    dataSource: `default`
  });
  