-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgrocery_sales_schema.json
More file actions
121 lines (121 loc) · 3.41 KB
/
grocery_sales_schema.json
File metadata and controls
121 lines (121 loc) · 3.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
{
"tables": [
{
"name": "grocery_sales",
"description": "Sales transactions data for a grocery store chain",
"columns": [
{
"name": "transaction_id",
"type": "INTEGER",
"description": "Unique identifier for each transaction",
"is_primary_key": true
},
{
"name": "transaction_date",
"type": "DATE",
"description": "Date when the transaction occurred"
},
{
"name": "transaction_time",
"type": "TIME",
"description": "Time when the transaction occurred"
},
{
"name": "product_id",
"type": "INTEGER",
"description": "Unique identifier for the product"
},
{
"name": "product_name",
"type": "TEXT",
"description": "Name of the product"
},
{
"name": "product_category",
"type": "TEXT",
"description": "Category of the product"
},
{
"name": "unit_price",
"type": "REAL",
"description": "Price per unit of the product after discount"
},
{
"name": "quantity_sold",
"type": "INTEGER",
"description": "Number of units initially sold"
},
{
"name": "quantity_returned",
"type": "INTEGER",
"description": "Number of units returned by the customer"
},
{
"name": "final_quantity",
"type": "INTEGER",
"description": "Final quantity after returns (quantity_sold - quantity_returned)"
},
{
"name": "discount_percentage",
"type": "REAL",
"description": "Discount percentage applied to the product"
},
{
"name": "revenue",
"type": "REAL",
"description": "Total revenue from the product (unit_price * final_quantity)"
},
{
"name": "branch_id",
"type": "INTEGER",
"description": "Unique identifier for the branch"
},
{
"name": "branch_name",
"type": "TEXT",
"description": "Name of the branch"
},
{
"name": "branch_city",
"type": "TEXT",
"description": "City where the branch is located"
},
{
"name": "branch_region",
"type": "TEXT",
"description": "Region where the branch is located"
},
{
"name": "employee_id",
"type": "INTEGER",
"description": "Unique identifier for the employee who processed the transaction"
},
{
"name": "employee_name",
"type": "TEXT",
"description": "Name of the employee"
},
{
"name": "employee_position",
"type": "TEXT",
"description": "Position of the employee"
},
{
"name": "payment_method",
"type": "TEXT",
"description": "Method of payment used for the transaction"
},
{
"name": "customer_id",
"type": "INTEGER",
"description": "Unique identifier for the customer (NULL for non-member customers)"
},
{
"name": "customer_name",
"type": "TEXT",
"description": "Name of the customer (NULL for non-member customers)"
}
]
}
]
}