-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathvar_query_map.example.js
63 lines (62 loc) · 1.43 KB
/
var_query_map.example.js
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
/**
* @description: Modify this map and copy paste this in the panel 'var_query_map' variable contant value.
* The project key contains the table shift_groups and shifts. Don't change the keys.
* */
const var_query_map = {
"project": {
"shift_groups": {
"name": "name",
"uuid": "uuid",
"site_uuid": "site_uuid"
},
"shifts": {
"uuid": "uuid",
"start_time": "start_time",
"end_time": "end_time",
"order": "shift_order",
"group_uuid": "shift_group_uuid"
}
},
"lookup": {
"shifts": "shifts",
"shift_groups": "shift_groups"
},
"schema": {
"shifts": "",
"shift_groups": ""
},
"values": {
"site_uuid": ""
},
"static": {
"shifts": [
{
"group": "Group 1 eg. Summer",
"group_uuid": "uuid_1",
"uuid": "shift_uuid_1",
"label": "Morning Custom",
"startTime": "06:00:00",
"endTime": "14:00:00",
"order": 1
},
{
"group": "Group 2 eg. Winter",
"group_uuid": "uuid_2",
"uuid": "shift_uuid_2",
"label": "Afternoon Custom",
"startTime": "14:00:00",
"endTime": "22:00:00",
"order": 1
},
{
"group": "Group 2 eg. Winter",
"group_uuid": "uuid_2",
"uuid": "shift_uuid_3",
"label": "Night Custom",
"startTime": "22:00:00",
"endTime": "06:00:00",
"order": 2
}
]
}
}