-
Notifications
You must be signed in to change notification settings - Fork 0
/
starbucks_subset_schema.json
125 lines (125 loc) · 2.72 KB
/
starbucks_subset_schema.json
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
122
123
124
125
{
"table": "survey_responses",
"columns": [
{
"name": "id",
"type": "INT",
"primaryKey": true
},
{
"name": "gender",
"type": "TINYINT",
"constraints": {
"check": "gender IN (0, 1)"
},
"encoding": {
"0": "Male",
"1": "Female"
}
},
{
"name": "age",
"type": "TINYINT",
"constraints": {
"check": "age IN (0, 1, 2, 3)"
},
"encoding": {
"0": "Below 20",
"1": "From 20 to 29",
"2": "From 30 to 39",
"3": "40 and above"
}
},
{
"name": "status",
"type": "TINYINT",
"constraints": {
"check": "status IN (0, 1, 2, 3)"
},
"encoding": {
"0": "Student",
"1": "Self-Employed",
"2": "Employed",
"3": "Housewife"
}
},
{
"name": "income",
"type": "TINYINT",
"constraints": {
"check": "income IN (0, 1, 2, 3, 4)"
},
"encoding": {
"0": "Less than RM25,000",
"1": "RM25,000 – RM50,000",
"2": "RM50,000 – RM100,000",
"3": "RM100,000 – RM150,000",
"4": "More than RM150,000"
}
},
{
"name": "visitNo",
"type": "TINYINT",
"constraints": {
"check": "visitNo IN (0, 1, 3, 4)"
},
"encoding": {
"0": "Daily",
"1": "Weekly",
"3": "Monthly",
"4": "Never"
}
},
{
"name": "method",
"type": "TINYINT",
"constraints": {
"check": "method IN (0, 1, 2, 3, 4)"
},
"encoding": {
"0": "Dine In",
"1": "Drive-thru",
"2": "Take away",
"3": "Never",
"4": "Others"
}
},
{
"name": "timeSpend",
"type": "TINYINT",
"constraints": {
"check": "timeSpend IN (0, 1, 2, 3, 4)"
},
"encoding": {
"0": "Below 30 mins",
"1": "30 mins to 1h",
"2": "1h to 2h",
"3": "2h to 3h",
"4": "More than 3h"
}
},
{
"name": "location",
"type": "TINYINT",
"constraints": {
"check": "location IN (0, 1, 2)"
},
"encoding": {
"0": "Within 1km",
"1": "1km to 3km",
"2": "More than 3km"
}
},
{
"name": "membershipCard",
"type": "TINYINT",
"constraints": {
"check": "membershipCard IN (0, 1)"
},
"encoding": {
"0": "Yes",
"1": "No"
}
}
]
}