cubes: - name: order_shipping sql_table: inventory_v2.order_shipping data_source: default joins: - name: order sql: "{CUBE}.`orderId` = {order.id}" relationship: many_to_one - name: site sql: "{CUBE}.`siteId` = {site.id}" relationship: many_to_one dimensions: - name: id sql: id type: number primary_key: true - name: externalorderid sql: "{CUBE}.`externalOrderId`" type: string - name: externalordershippingid sql: "{CUBE}.`externalOrderShippingId`" type: string - name: instance_id sql: instance_id type: string - name: method_id sql: method_id type: string - name: method_title sql: method_title type: string - name: createdat sql: "{CUBE}.`createdAt`" type: time - name: updatedat sql: "{CUBE}.`updatedAt`" type: time measures: - name: count type: count - name: total sql: total type: sum pre_aggregations: # Pre-aggregation definitions go here. # Learn more in the documentation: https://cube.dev/docs/caching/pre-aggregations/getting-started