@open-mercato/core 0.6.1-develop.3291.1.6fad645fd0 → 0.6.1-develop.3306.1.9ad9ff2526
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +1 -1
- package/AGENTS.md +14 -0
- package/dist/modules/auth/backend/roles/[id]/edit/page.js +2 -1
- package/dist/modules/auth/backend/roles/[id]/edit/page.js.map +2 -2
- package/dist/modules/auth/backend/users/[id]/edit/page.js +2 -5
- package/dist/modules/auth/backend/users/[id]/edit/page.js.map +2 -2
- package/dist/modules/catalog/ai-agents.js +47 -5
- package/dist/modules/catalog/ai-agents.js.map +2 -2
- package/dist/modules/catalog/backend/catalog/categories/[id]/edit/page.js +2 -5
- package/dist/modules/catalog/backend/catalog/categories/[id]/edit/page.js.map +2 -2
- package/dist/modules/catalog/backend/catalog/products/MerchandisingAssistantSheet.js +4 -3
- package/dist/modules/catalog/backend/catalog/products/MerchandisingAssistantSheet.js.map +2 -2
- package/dist/modules/catalog/backend/catalog/products/[id]/page.js +2 -9
- package/dist/modules/catalog/backend/catalog/products/[id]/page.js.map +2 -2
- package/dist/modules/catalog/backend/catalog/products/[productId]/variants/[variantId]/page.js +2 -9
- package/dist/modules/catalog/backend/catalog/products/[productId]/variants/[variantId]/page.js.map +2 -2
- package/dist/modules/customers/ai-agents.js +174 -1
- package/dist/modules/customers/ai-agents.js.map +2 -2
- package/dist/modules/customers/ai-tools/deal-analyzer-pack.js +196 -0
- package/dist/modules/customers/ai-tools/deal-analyzer-pack.js.map +7 -0
- package/dist/modules/customers/ai-tools.js +3 -1
- package/dist/modules/customers/ai-tools.js.map +2 -2
- package/dist/modules/customers/backend/customers/companies/page.js +11 -1
- package/dist/modules/customers/backend/customers/companies/page.js.map +2 -2
- package/dist/modules/customers/backend/customers/deals/page.js +11 -1
- package/dist/modules/customers/backend/customers/deals/page.js.map +2 -2
- package/dist/modules/customers/backend/customers/people/page.js +11 -1
- package/dist/modules/customers/backend/customers/people/page.js.map +2 -2
- package/dist/modules/customers/commands/companies.js +37 -15
- package/dist/modules/customers/commands/companies.js.map +2 -2
- package/dist/modules/customers/components/detail/AiActionChips.js +2 -2
- package/dist/modules/customers/components/detail/AiActionChips.js.map +2 -2
- package/dist/modules/customers/components/detail/ChangelogTab.js +3 -9
- package/dist/modules/customers/components/detail/ChangelogTab.js.map +2 -2
- package/dist/modules/customers/components/detail/changelogValues.js +35 -0
- package/dist/modules/customers/components/detail/changelogValues.js.map +7 -0
- package/dist/modules/customers/components/detail/customFieldUtils.js +1 -1
- package/dist/modules/customers/components/detail/customFieldUtils.js.map +1 -1
- package/dist/modules/customers/components/formConfig.js +3 -2
- package/dist/modules/customers/components/formConfig.js.map +2 -2
- package/dist/modules/customers/widgets/injection/ai-assistant-trigger/widget.client.js +4 -9
- package/dist/modules/customers/widgets/injection/ai-assistant-trigger/widget.client.js.map +2 -2
- package/dist/modules/customers/widgets/injection/ai-deal-analyzer-trigger/widget.client.js +302 -0
- package/dist/modules/customers/widgets/injection/ai-deal-analyzer-trigger/widget.client.js.map +7 -0
- package/dist/modules/customers/widgets/injection/ai-deal-analyzer-trigger/widget.js +17 -0
- package/dist/modules/customers/widgets/injection/ai-deal-analyzer-trigger/widget.js.map +7 -0
- package/dist/modules/customers/widgets/injection/ai-deal-detail-trigger/widget.client.js +2 -2
- package/dist/modules/customers/widgets/injection/ai-deal-detail-trigger/widget.client.js.map +2 -2
- package/dist/modules/customers/widgets/injection-table.js +2 -2
- package/dist/modules/customers/widgets/injection-table.js.map +2 -2
- package/dist/modules/directory/backend/directory/organizations/[id]/edit/page.js +2 -5
- package/dist/modules/directory/backend/directory/organizations/[id]/edit/page.js.map +2 -2
- package/dist/modules/directory/backend/directory/tenants/[id]/edit/page.js +2 -5
- package/dist/modules/directory/backend/directory/tenants/[id]/edit/page.js.map +2 -2
- package/dist/modules/resources/backend/resources/resources/[id]/page.js +2 -5
- package/dist/modules/resources/backend/resources/resources/[id]/page.js.map +2 -2
- package/dist/modules/sales/backend/sales/channels/[channelId]/edit/page.js +2 -25
- package/dist/modules/sales/backend/sales/channels/[channelId]/edit/page.js.map +2 -2
- package/dist/modules/sales/components/channels/ChannelOfferForm.js +2 -43
- package/dist/modules/sales/components/channels/ChannelOfferForm.js.map +2 -2
- package/dist/modules/sales/components/documents/LineItemDialog.js +162 -42
- package/dist/modules/sales/components/documents/LineItemDialog.js.map +2 -2
- package/dist/modules/sales/components/documents/customFieldHelpers.js +4 -31
- package/dist/modules/sales/components/documents/customFieldHelpers.js.map +2 -2
- package/package.json +15 -6
- package/src/modules/auth/backend/roles/[id]/edit/page.tsx +2 -1
- package/src/modules/auth/backend/users/[id]/edit/page.tsx +2 -5
- package/src/modules/business_rules/migrations/.snapshot-open-mercato.json +746 -394
- package/src/modules/catalog/ai-agents.ts +62 -4
- package/src/modules/catalog/backend/catalog/categories/[id]/edit/page.tsx +2 -5
- package/src/modules/catalog/backend/catalog/products/MerchandisingAssistantSheet.tsx +4 -3
- package/src/modules/catalog/backend/catalog/products/[id]/page.tsx +2 -12
- package/src/modules/catalog/backend/catalog/products/[productId]/variants/[variantId]/page.tsx +2 -10
- package/src/modules/catalog/migrations/.snapshot-open-mercato.json +2519 -1307
- package/src/modules/customer_accounts/migrations/.snapshot-open-mercato.json +828 -834
- package/src/modules/customers/AGENTS.md +6 -1
- package/src/modules/customers/ai-agents.ts +213 -6
- package/src/modules/customers/ai-tools/deal-analyzer-pack.ts +286 -0
- package/src/modules/customers/ai-tools.ts +2 -0
- package/src/modules/customers/backend/customers/companies/page.tsx +10 -0
- package/src/modules/customers/backend/customers/deals/page.tsx +10 -0
- package/src/modules/customers/backend/customers/people/page.tsx +10 -0
- package/src/modules/customers/commands/companies.ts +38 -14
- package/src/modules/customers/components/detail/AiActionChips.tsx +2 -2
- package/src/modules/customers/components/detail/ChangelogTab.tsx +3 -10
- package/src/modules/customers/components/detail/changelogValues.ts +42 -0
- package/src/modules/customers/components/detail/customFieldUtils.ts +1 -1
- package/src/modules/customers/components/formConfig.tsx +3 -2
- package/src/modules/customers/i18n/de.json +7 -0
- package/src/modules/customers/i18n/en.json +7 -0
- package/src/modules/customers/i18n/es.json +7 -0
- package/src/modules/customers/i18n/pl.json +7 -0
- package/src/modules/customers/migrations/.snapshot-open-mercato.json +2313 -2336
- package/src/modules/customers/widgets/injection/ai-assistant-trigger/widget.client.tsx +4 -6
- package/src/modules/customers/widgets/injection/ai-deal-analyzer-trigger/widget.client.tsx +358 -0
- package/src/modules/customers/widgets/injection/ai-deal-analyzer-trigger/widget.ts +34 -0
- package/src/modules/customers/widgets/injection/ai-deal-detail-trigger/widget.client.tsx +2 -2
- package/src/modules/customers/widgets/injection-table.ts +12 -9
- package/src/modules/data_sync/migrations/.snapshot-open-mercato.json +554 -210
- package/src/modules/dictionaries/migrations/.snapshot-open-mercato.json +146 -146
- package/src/modules/directory/backend/directory/organizations/[id]/edit/page.tsx +2 -5
- package/src/modules/directory/backend/directory/tenants/[id]/edit/page.tsx +2 -5
- package/src/modules/directory/migrations/.snapshot-open-mercato.json +273 -140
- package/src/modules/feature_toggles/migrations/.snapshot-open-mercato.json +242 -137
- package/src/modules/integrations/migrations/.snapshot-open-mercato.json +498 -195
- package/src/modules/payment_gateways/migrations/.snapshot-open-mercato.json +158 -157
- package/src/modules/perspectives/migrations/.snapshot-open-mercato.json +274 -129
- package/src/modules/planner/migrations/.snapshot-open-mercato.json +327 -157
- package/src/modules/progress/AGENTS.md +72 -0
- package/src/modules/resources/backend/resources/resources/[id]/page.tsx +2 -5
- package/src/modules/resources/migrations/.snapshot-open-mercato.json +920 -470
- package/src/modules/sales/backend/sales/channels/[channelId]/edit/page.tsx +2 -27
- package/src/modules/sales/components/channels/ChannelOfferForm.tsx +2 -49
- package/src/modules/sales/components/documents/LineItemDialog.tsx +214 -78
- package/src/modules/sales/components/documents/customFieldHelpers.ts +4 -43
- package/src/modules/sales/i18n/de.json +3 -0
- package/src/modules/sales/i18n/en.json +3 -0
- package/src/modules/sales/i18n/es.json +3 -0
- package/src/modules/sales/i18n/pl.json +3 -0
- package/src/modules/sales/migrations/.snapshot-open-mercato.json +4740 -4778
- package/src/modules/shipping_carriers/migrations/.snapshot-open-mercato.json +340 -81
- package/src/modules/staff/migrations/.snapshot-open-mercato.json +1439 -729
|
@@ -1,647 +1,843 @@
|
|
|
1
1
|
{
|
|
2
|
+
"name": "public",
|
|
2
3
|
"namespaces": [
|
|
3
4
|
"public"
|
|
4
5
|
],
|
|
5
|
-
"name": "public",
|
|
6
6
|
"tables": [
|
|
7
7
|
{
|
|
8
|
+
"name": "staff_leave_requests",
|
|
9
|
+
"schema": "public",
|
|
8
10
|
"columns": {
|
|
9
|
-
"
|
|
10
|
-
"name": "
|
|
11
|
-
"type": "
|
|
11
|
+
"created_at": {
|
|
12
|
+
"name": "created_at",
|
|
13
|
+
"type": "timestamptz(6)",
|
|
12
14
|
"unsigned": false,
|
|
13
15
|
"autoincrement": false,
|
|
14
16
|
"primary": false,
|
|
15
17
|
"nullable": false,
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
+
"unique": false,
|
|
19
|
+
"length": 6,
|
|
20
|
+
"precision": null,
|
|
21
|
+
"scale": null,
|
|
22
|
+
"default": null,
|
|
23
|
+
"comment": null,
|
|
24
|
+
"enumItems": [],
|
|
25
|
+
"mappedType": "datetime"
|
|
18
26
|
},
|
|
19
|
-
"
|
|
20
|
-
"name": "
|
|
21
|
-
"type": "
|
|
27
|
+
"decided_at": {
|
|
28
|
+
"name": "decided_at",
|
|
29
|
+
"type": "timestamptz(6)",
|
|
22
30
|
"unsigned": false,
|
|
23
31
|
"autoincrement": false,
|
|
24
32
|
"primary": false,
|
|
25
|
-
"nullable":
|
|
26
|
-
"
|
|
33
|
+
"nullable": true,
|
|
34
|
+
"unique": false,
|
|
35
|
+
"length": 6,
|
|
36
|
+
"precision": null,
|
|
37
|
+
"scale": null,
|
|
38
|
+
"default": null,
|
|
39
|
+
"comment": null,
|
|
40
|
+
"enumItems": [],
|
|
41
|
+
"mappedType": "datetime"
|
|
27
42
|
},
|
|
28
|
-
"
|
|
29
|
-
"name": "
|
|
43
|
+
"decided_by_user_id": {
|
|
44
|
+
"name": "decided_by_user_id",
|
|
30
45
|
"type": "uuid",
|
|
31
46
|
"unsigned": false,
|
|
32
47
|
"autoincrement": false,
|
|
33
48
|
"primary": false,
|
|
34
|
-
"nullable":
|
|
49
|
+
"nullable": true,
|
|
50
|
+
"unique": false,
|
|
51
|
+
"length": null,
|
|
52
|
+
"precision": null,
|
|
53
|
+
"scale": null,
|
|
54
|
+
"default": null,
|
|
55
|
+
"comment": null,
|
|
56
|
+
"enumItems": [],
|
|
35
57
|
"mappedType": "uuid"
|
|
36
58
|
},
|
|
37
|
-
"
|
|
38
|
-
"name": "
|
|
39
|
-
"type": "text",
|
|
40
|
-
"unsigned": false,
|
|
41
|
-
"autoincrement": false,
|
|
42
|
-
"primary": false,
|
|
43
|
-
"nullable": false,
|
|
44
|
-
"mappedType": "text"
|
|
45
|
-
},
|
|
46
|
-
"description": {
|
|
47
|
-
"name": "description",
|
|
59
|
+
"decision_comment": {
|
|
60
|
+
"name": "decision_comment",
|
|
48
61
|
"type": "text",
|
|
49
62
|
"unsigned": false,
|
|
50
63
|
"autoincrement": false,
|
|
51
64
|
"primary": false,
|
|
52
65
|
"nullable": true,
|
|
66
|
+
"unique": false,
|
|
67
|
+
"length": null,
|
|
68
|
+
"precision": null,
|
|
69
|
+
"scale": null,
|
|
70
|
+
"default": null,
|
|
71
|
+
"comment": null,
|
|
72
|
+
"enumItems": [],
|
|
53
73
|
"mappedType": "text"
|
|
54
74
|
},
|
|
55
|
-
"
|
|
56
|
-
"name": "
|
|
57
|
-
"type": "
|
|
58
|
-
"unsigned": false,
|
|
59
|
-
"autoincrement": false,
|
|
60
|
-
"primary": false,
|
|
61
|
-
"nullable": false,
|
|
62
|
-
"default": "true",
|
|
63
|
-
"mappedType": "boolean"
|
|
64
|
-
},
|
|
65
|
-
"created_at": {
|
|
66
|
-
"name": "created_at",
|
|
67
|
-
"type": "timestamptz",
|
|
75
|
+
"deleted_at": {
|
|
76
|
+
"name": "deleted_at",
|
|
77
|
+
"type": "timestamptz(6)",
|
|
68
78
|
"unsigned": false,
|
|
69
79
|
"autoincrement": false,
|
|
70
80
|
"primary": false,
|
|
71
|
-
"nullable":
|
|
81
|
+
"nullable": true,
|
|
82
|
+
"unique": false,
|
|
72
83
|
"length": 6,
|
|
84
|
+
"precision": null,
|
|
85
|
+
"scale": null,
|
|
86
|
+
"default": null,
|
|
87
|
+
"comment": null,
|
|
88
|
+
"enumItems": [],
|
|
73
89
|
"mappedType": "datetime"
|
|
74
90
|
},
|
|
75
|
-
"
|
|
76
|
-
"name": "
|
|
77
|
-
"type": "timestamptz",
|
|
91
|
+
"end_date": {
|
|
92
|
+
"name": "end_date",
|
|
93
|
+
"type": "timestamptz(6)",
|
|
78
94
|
"unsigned": false,
|
|
79
95
|
"autoincrement": false,
|
|
80
96
|
"primary": false,
|
|
81
97
|
"nullable": false,
|
|
98
|
+
"unique": false,
|
|
82
99
|
"length": 6,
|
|
100
|
+
"precision": null,
|
|
101
|
+
"scale": null,
|
|
102
|
+
"default": null,
|
|
103
|
+
"comment": null,
|
|
104
|
+
"enumItems": [],
|
|
83
105
|
"mappedType": "datetime"
|
|
84
106
|
},
|
|
85
|
-
"deleted_at": {
|
|
86
|
-
"name": "deleted_at",
|
|
87
|
-
"type": "timestamptz",
|
|
88
|
-
"unsigned": false,
|
|
89
|
-
"autoincrement": false,
|
|
90
|
-
"primary": false,
|
|
91
|
-
"nullable": true,
|
|
92
|
-
"length": 6,
|
|
93
|
-
"mappedType": "datetime"
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
"name": "staff_teams",
|
|
97
|
-
"schema": "public",
|
|
98
|
-
"indexes": [
|
|
99
|
-
{
|
|
100
|
-
"keyName": "staff_teams_tenant_org_idx",
|
|
101
|
-
"columnNames": [
|
|
102
|
-
"tenant_id",
|
|
103
|
-
"organization_id"
|
|
104
|
-
],
|
|
105
|
-
"composite": true,
|
|
106
|
-
"constraint": false,
|
|
107
|
-
"primary": false,
|
|
108
|
-
"unique": false
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"keyName": "staff_teams_pkey",
|
|
112
|
-
"columnNames": [
|
|
113
|
-
"id"
|
|
114
|
-
],
|
|
115
|
-
"composite": false,
|
|
116
|
-
"constraint": true,
|
|
117
|
-
"primary": true,
|
|
118
|
-
"unique": true
|
|
119
|
-
}
|
|
120
|
-
],
|
|
121
|
-
"checks": [],
|
|
122
|
-
"foreignKeys": {},
|
|
123
|
-
"nativeEnums": {}
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"columns": {
|
|
127
107
|
"id": {
|
|
128
108
|
"name": "id",
|
|
129
109
|
"type": "uuid",
|
|
130
110
|
"unsigned": false,
|
|
131
111
|
"autoincrement": false,
|
|
132
|
-
"primary":
|
|
112
|
+
"primary": true,
|
|
133
113
|
"nullable": false,
|
|
114
|
+
"unique": false,
|
|
115
|
+
"length": null,
|
|
116
|
+
"precision": null,
|
|
117
|
+
"scale": null,
|
|
134
118
|
"default": "gen_random_uuid()",
|
|
119
|
+
"comment": null,
|
|
120
|
+
"enumItems": [],
|
|
135
121
|
"mappedType": "uuid"
|
|
136
122
|
},
|
|
137
|
-
"
|
|
138
|
-
"name": "
|
|
123
|
+
"member_id": {
|
|
124
|
+
"name": "member_id",
|
|
139
125
|
"type": "uuid",
|
|
140
126
|
"unsigned": false,
|
|
141
127
|
"autoincrement": false,
|
|
142
128
|
"primary": false,
|
|
143
129
|
"nullable": false,
|
|
130
|
+
"unique": false,
|
|
131
|
+
"length": null,
|
|
132
|
+
"precision": null,
|
|
133
|
+
"scale": null,
|
|
134
|
+
"default": null,
|
|
135
|
+
"comment": null,
|
|
136
|
+
"enumItems": [],
|
|
144
137
|
"mappedType": "uuid"
|
|
145
138
|
},
|
|
146
|
-
"
|
|
147
|
-
"name": "
|
|
148
|
-
"type": "
|
|
139
|
+
"note": {
|
|
140
|
+
"name": "note",
|
|
141
|
+
"type": "text",
|
|
149
142
|
"unsigned": false,
|
|
150
143
|
"autoincrement": false,
|
|
151
144
|
"primary": false,
|
|
152
|
-
"nullable":
|
|
153
|
-
"
|
|
145
|
+
"nullable": true,
|
|
146
|
+
"unique": false,
|
|
147
|
+
"length": null,
|
|
148
|
+
"precision": null,
|
|
149
|
+
"scale": null,
|
|
150
|
+
"default": null,
|
|
151
|
+
"comment": null,
|
|
152
|
+
"enumItems": [],
|
|
153
|
+
"mappedType": "text"
|
|
154
154
|
},
|
|
155
|
-
"
|
|
156
|
-
"name": "
|
|
155
|
+
"organization_id": {
|
|
156
|
+
"name": "organization_id",
|
|
157
157
|
"type": "uuid",
|
|
158
158
|
"unsigned": false,
|
|
159
159
|
"autoincrement": false,
|
|
160
160
|
"primary": false,
|
|
161
|
-
"nullable":
|
|
161
|
+
"nullable": false,
|
|
162
|
+
"unique": false,
|
|
163
|
+
"length": null,
|
|
164
|
+
"precision": null,
|
|
165
|
+
"scale": null,
|
|
166
|
+
"default": null,
|
|
167
|
+
"comment": null,
|
|
168
|
+
"enumItems": [],
|
|
162
169
|
"mappedType": "uuid"
|
|
163
170
|
},
|
|
164
|
-
"
|
|
165
|
-
"name": "
|
|
166
|
-
"type": "
|
|
171
|
+
"start_date": {
|
|
172
|
+
"name": "start_date",
|
|
173
|
+
"type": "timestamptz(6)",
|
|
167
174
|
"unsigned": false,
|
|
168
175
|
"autoincrement": false,
|
|
169
176
|
"primary": false,
|
|
170
177
|
"nullable": false,
|
|
171
|
-
"
|
|
178
|
+
"unique": false,
|
|
179
|
+
"length": 6,
|
|
180
|
+
"precision": null,
|
|
181
|
+
"scale": null,
|
|
182
|
+
"default": null,
|
|
183
|
+
"comment": null,
|
|
184
|
+
"enumItems": [],
|
|
185
|
+
"mappedType": "datetime"
|
|
172
186
|
},
|
|
173
|
-
"
|
|
174
|
-
"name": "
|
|
187
|
+
"status": {
|
|
188
|
+
"name": "status",
|
|
175
189
|
"type": "text",
|
|
176
190
|
"unsigned": false,
|
|
177
191
|
"autoincrement": false,
|
|
178
192
|
"primary": false,
|
|
179
|
-
"nullable":
|
|
180
|
-
"
|
|
193
|
+
"nullable": false,
|
|
194
|
+
"unique": false,
|
|
195
|
+
"length": null,
|
|
196
|
+
"precision": null,
|
|
197
|
+
"scale": null,
|
|
198
|
+
"default": "'pending'",
|
|
199
|
+
"comment": null,
|
|
200
|
+
"enumItems": [
|
|
201
|
+
"pending",
|
|
202
|
+
"approved",
|
|
203
|
+
"rejected"
|
|
204
|
+
],
|
|
205
|
+
"mappedType": "enum"
|
|
181
206
|
},
|
|
182
|
-
"
|
|
183
|
-
"name": "
|
|
207
|
+
"submitted_by_user_id": {
|
|
208
|
+
"name": "submitted_by_user_id",
|
|
184
209
|
"type": "uuid",
|
|
185
210
|
"unsigned": false,
|
|
186
211
|
"autoincrement": false,
|
|
187
212
|
"primary": false,
|
|
188
213
|
"nullable": true,
|
|
214
|
+
"unique": false,
|
|
215
|
+
"length": null,
|
|
216
|
+
"precision": null,
|
|
217
|
+
"scale": null,
|
|
218
|
+
"default": null,
|
|
219
|
+
"comment": null,
|
|
220
|
+
"enumItems": [],
|
|
189
221
|
"mappedType": "uuid"
|
|
190
222
|
},
|
|
191
|
-
"
|
|
192
|
-
"name": "
|
|
193
|
-
"type": "
|
|
223
|
+
"tenant_id": {
|
|
224
|
+
"name": "tenant_id",
|
|
225
|
+
"type": "uuid",
|
|
194
226
|
"unsigned": false,
|
|
195
227
|
"autoincrement": false,
|
|
196
228
|
"primary": false,
|
|
197
229
|
"nullable": false,
|
|
198
|
-
"
|
|
199
|
-
"
|
|
230
|
+
"unique": false,
|
|
231
|
+
"length": null,
|
|
232
|
+
"precision": null,
|
|
233
|
+
"scale": null,
|
|
234
|
+
"default": null,
|
|
235
|
+
"comment": null,
|
|
236
|
+
"enumItems": [],
|
|
237
|
+
"mappedType": "uuid"
|
|
200
238
|
},
|
|
201
|
-
"
|
|
202
|
-
"name": "
|
|
203
|
-
"type": "
|
|
239
|
+
"timezone": {
|
|
240
|
+
"name": "timezone",
|
|
241
|
+
"type": "text",
|
|
204
242
|
"unsigned": false,
|
|
205
243
|
"autoincrement": false,
|
|
206
244
|
"primary": false,
|
|
207
245
|
"nullable": false,
|
|
208
|
-
"
|
|
209
|
-
"
|
|
246
|
+
"unique": false,
|
|
247
|
+
"length": null,
|
|
248
|
+
"precision": null,
|
|
249
|
+
"scale": null,
|
|
250
|
+
"default": null,
|
|
251
|
+
"comment": null,
|
|
252
|
+
"enumItems": [],
|
|
253
|
+
"mappedType": "text"
|
|
210
254
|
},
|
|
211
|
-
"
|
|
212
|
-
"name": "
|
|
255
|
+
"unavailability_reason_entry_id": {
|
|
256
|
+
"name": "unavailability_reason_entry_id",
|
|
213
257
|
"type": "uuid",
|
|
214
258
|
"unsigned": false,
|
|
215
259
|
"autoincrement": false,
|
|
216
260
|
"primary": false,
|
|
217
261
|
"nullable": true,
|
|
262
|
+
"unique": false,
|
|
263
|
+
"length": null,
|
|
264
|
+
"precision": null,
|
|
265
|
+
"scale": null,
|
|
266
|
+
"default": null,
|
|
267
|
+
"comment": null,
|
|
268
|
+
"enumItems": [],
|
|
218
269
|
"mappedType": "uuid"
|
|
219
270
|
},
|
|
220
|
-
"
|
|
221
|
-
"name": "
|
|
222
|
-
"type": "
|
|
223
|
-
"unsigned": false,
|
|
224
|
-
"autoincrement": false,
|
|
225
|
-
"primary": false,
|
|
226
|
-
"nullable": false,
|
|
227
|
-
"default": "true",
|
|
228
|
-
"mappedType": "boolean"
|
|
229
|
-
},
|
|
230
|
-
"created_at": {
|
|
231
|
-
"name": "created_at",
|
|
232
|
-
"type": "timestamptz",
|
|
271
|
+
"unavailability_reason_value": {
|
|
272
|
+
"name": "unavailability_reason_value",
|
|
273
|
+
"type": "text",
|
|
233
274
|
"unsigned": false,
|
|
234
275
|
"autoincrement": false,
|
|
235
276
|
"primary": false,
|
|
236
|
-
"nullable":
|
|
237
|
-
"
|
|
238
|
-
"
|
|
277
|
+
"nullable": true,
|
|
278
|
+
"unique": false,
|
|
279
|
+
"length": null,
|
|
280
|
+
"precision": null,
|
|
281
|
+
"scale": null,
|
|
282
|
+
"default": null,
|
|
283
|
+
"comment": null,
|
|
284
|
+
"enumItems": [],
|
|
285
|
+
"mappedType": "text"
|
|
239
286
|
},
|
|
240
287
|
"updated_at": {
|
|
241
288
|
"name": "updated_at",
|
|
242
|
-
"type": "timestamptz",
|
|
289
|
+
"type": "timestamptz(6)",
|
|
243
290
|
"unsigned": false,
|
|
244
291
|
"autoincrement": false,
|
|
245
292
|
"primary": false,
|
|
246
293
|
"nullable": false,
|
|
294
|
+
"unique": false,
|
|
247
295
|
"length": 6,
|
|
248
|
-
"
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
"
|
|
252
|
-
"
|
|
253
|
-
"unsigned": false,
|
|
254
|
-
"autoincrement": false,
|
|
255
|
-
"primary": false,
|
|
256
|
-
"nullable": true,
|
|
257
|
-
"length": 6,
|
|
296
|
+
"precision": null,
|
|
297
|
+
"scale": null,
|
|
298
|
+
"default": null,
|
|
299
|
+
"comment": null,
|
|
300
|
+
"enumItems": [],
|
|
258
301
|
"mappedType": "datetime"
|
|
259
302
|
}
|
|
260
303
|
},
|
|
261
|
-
"name": "staff_team_members",
|
|
262
|
-
"schema": "public",
|
|
263
304
|
"indexes": [
|
|
264
305
|
{
|
|
265
|
-
"keyName": "staff_team_members_tenant_org_idx",
|
|
266
306
|
"columnNames": [
|
|
267
|
-
"
|
|
268
|
-
"organization_id"
|
|
307
|
+
"member_id"
|
|
269
308
|
],
|
|
270
|
-
"composite":
|
|
309
|
+
"composite": false,
|
|
271
310
|
"constraint": false,
|
|
311
|
+
"keyName": "staff_leave_requests_member_idx",
|
|
272
312
|
"primary": false,
|
|
273
313
|
"unique": false
|
|
274
314
|
},
|
|
275
315
|
{
|
|
276
|
-
"keyName": "staff_team_members_pkey",
|
|
277
316
|
"columnNames": [
|
|
278
317
|
"id"
|
|
279
318
|
],
|
|
280
319
|
"composite": false,
|
|
281
320
|
"constraint": true,
|
|
321
|
+
"keyName": "staff_leave_requests_pkey",
|
|
282
322
|
"primary": true,
|
|
283
323
|
"unique": true
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"columnNames": [
|
|
327
|
+
"status",
|
|
328
|
+
"tenant_id",
|
|
329
|
+
"organization_id"
|
|
330
|
+
],
|
|
331
|
+
"composite": true,
|
|
332
|
+
"constraint": false,
|
|
333
|
+
"keyName": "staff_leave_requests_status_idx",
|
|
334
|
+
"primary": false,
|
|
335
|
+
"unique": false
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"columnNames": [
|
|
339
|
+
"tenant_id",
|
|
340
|
+
"organization_id"
|
|
341
|
+
],
|
|
342
|
+
"composite": true,
|
|
343
|
+
"constraint": false,
|
|
344
|
+
"keyName": "staff_leave_requests_tenant_org_idx",
|
|
345
|
+
"primary": false,
|
|
346
|
+
"unique": false
|
|
284
347
|
}
|
|
285
348
|
],
|
|
286
|
-
"checks": [
|
|
287
|
-
|
|
288
|
-
|
|
349
|
+
"checks": [
|
|
350
|
+
{
|
|
351
|
+
"name": "staff_leave_requests_status_check",
|
|
352
|
+
"expression": "\"status\" in ('pending', 'approved', 'rejected')",
|
|
353
|
+
"definition": "check (\"status\" in ('pending', 'approved', 'rejected'))",
|
|
354
|
+
"columnName": "status"
|
|
355
|
+
}
|
|
356
|
+
],
|
|
357
|
+
"foreignKeys": {
|
|
358
|
+
"staff_leave_requests_member_id_foreign": {
|
|
359
|
+
"columnNames": [
|
|
360
|
+
"member_id"
|
|
361
|
+
],
|
|
362
|
+
"constraintName": "staff_leave_requests_member_id_foreign",
|
|
363
|
+
"localTableName": "public.staff_leave_requests",
|
|
364
|
+
"referencedColumnNames": [
|
|
365
|
+
"id"
|
|
366
|
+
],
|
|
367
|
+
"referencedTableName": "public.staff_team_members"
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
"comment": null
|
|
289
371
|
},
|
|
290
372
|
{
|
|
373
|
+
"name": "staff_team_member_activities",
|
|
374
|
+
"schema": "public",
|
|
291
375
|
"columns": {
|
|
292
|
-
"
|
|
293
|
-
"name": "
|
|
294
|
-
"type": "
|
|
376
|
+
"activity_type": {
|
|
377
|
+
"name": "activity_type",
|
|
378
|
+
"type": "text",
|
|
295
379
|
"unsigned": false,
|
|
296
380
|
"autoincrement": false,
|
|
297
381
|
"primary": false,
|
|
298
382
|
"nullable": false,
|
|
299
|
-
"
|
|
300
|
-
"
|
|
383
|
+
"unique": false,
|
|
384
|
+
"length": null,
|
|
385
|
+
"precision": null,
|
|
386
|
+
"scale": null,
|
|
387
|
+
"default": null,
|
|
388
|
+
"comment": null,
|
|
389
|
+
"enumItems": [],
|
|
390
|
+
"mappedType": "text"
|
|
301
391
|
},
|
|
302
|
-
"
|
|
303
|
-
"name": "
|
|
304
|
-
"type": "
|
|
392
|
+
"appearance_color": {
|
|
393
|
+
"name": "appearance_color",
|
|
394
|
+
"type": "text",
|
|
305
395
|
"unsigned": false,
|
|
306
396
|
"autoincrement": false,
|
|
307
397
|
"primary": false,
|
|
308
|
-
"nullable":
|
|
309
|
-
"
|
|
398
|
+
"nullable": true,
|
|
399
|
+
"unique": false,
|
|
400
|
+
"length": null,
|
|
401
|
+
"precision": null,
|
|
402
|
+
"scale": null,
|
|
403
|
+
"default": null,
|
|
404
|
+
"comment": null,
|
|
405
|
+
"enumItems": [],
|
|
406
|
+
"mappedType": "text"
|
|
310
407
|
},
|
|
311
|
-
"
|
|
312
|
-
"name": "
|
|
313
|
-
"type": "
|
|
408
|
+
"appearance_icon": {
|
|
409
|
+
"name": "appearance_icon",
|
|
410
|
+
"type": "text",
|
|
314
411
|
"unsigned": false,
|
|
315
412
|
"autoincrement": false,
|
|
316
413
|
"primary": false,
|
|
317
|
-
"nullable":
|
|
318
|
-
"
|
|
414
|
+
"nullable": true,
|
|
415
|
+
"unique": false,
|
|
416
|
+
"length": null,
|
|
417
|
+
"precision": null,
|
|
418
|
+
"scale": null,
|
|
419
|
+
"default": null,
|
|
420
|
+
"comment": null,
|
|
421
|
+
"enumItems": [],
|
|
422
|
+
"mappedType": "text"
|
|
319
423
|
},
|
|
320
|
-
"
|
|
321
|
-
"name": "
|
|
424
|
+
"author_user_id": {
|
|
425
|
+
"name": "author_user_id",
|
|
322
426
|
"type": "uuid",
|
|
323
427
|
"unsigned": false,
|
|
324
428
|
"autoincrement": false,
|
|
325
429
|
"primary": false,
|
|
326
|
-
"nullable":
|
|
430
|
+
"nullable": true,
|
|
431
|
+
"unique": false,
|
|
432
|
+
"length": null,
|
|
433
|
+
"precision": null,
|
|
434
|
+
"scale": null,
|
|
435
|
+
"default": null,
|
|
436
|
+
"comment": null,
|
|
437
|
+
"enumItems": [],
|
|
327
438
|
"mappedType": "uuid"
|
|
328
439
|
},
|
|
329
|
-
"
|
|
330
|
-
"name": "
|
|
331
|
-
"type": "
|
|
440
|
+
"body": {
|
|
441
|
+
"name": "body",
|
|
442
|
+
"type": "text",
|
|
332
443
|
"unsigned": false,
|
|
333
444
|
"autoincrement": false,
|
|
334
445
|
"primary": false,
|
|
335
|
-
"nullable":
|
|
336
|
-
"
|
|
337
|
-
"
|
|
446
|
+
"nullable": true,
|
|
447
|
+
"unique": false,
|
|
448
|
+
"length": null,
|
|
449
|
+
"precision": null,
|
|
450
|
+
"scale": null,
|
|
451
|
+
"default": null,
|
|
452
|
+
"comment": null,
|
|
453
|
+
"enumItems": [],
|
|
454
|
+
"mappedType": "text"
|
|
338
455
|
},
|
|
339
|
-
"
|
|
340
|
-
"name": "
|
|
341
|
-
"type": "timestamptz",
|
|
456
|
+
"created_at": {
|
|
457
|
+
"name": "created_at",
|
|
458
|
+
"type": "timestamptz(6)",
|
|
342
459
|
"unsigned": false,
|
|
343
460
|
"autoincrement": false,
|
|
344
461
|
"primary": false,
|
|
345
462
|
"nullable": false,
|
|
463
|
+
"unique": false,
|
|
346
464
|
"length": 6,
|
|
465
|
+
"precision": null,
|
|
466
|
+
"scale": null,
|
|
467
|
+
"default": null,
|
|
468
|
+
"comment": null,
|
|
469
|
+
"enumItems": [],
|
|
347
470
|
"mappedType": "datetime"
|
|
348
471
|
},
|
|
349
|
-
"
|
|
350
|
-
"name": "
|
|
351
|
-
"type": "
|
|
352
|
-
"unsigned": false,
|
|
353
|
-
"autoincrement": false,
|
|
354
|
-
"primary": false,
|
|
355
|
-
"nullable": false,
|
|
356
|
-
"mappedType": "text"
|
|
357
|
-
},
|
|
358
|
-
"status": {
|
|
359
|
-
"name": "status",
|
|
360
|
-
"type": "text",
|
|
472
|
+
"id": {
|
|
473
|
+
"name": "id",
|
|
474
|
+
"type": "uuid",
|
|
361
475
|
"unsigned": false,
|
|
362
476
|
"autoincrement": false,
|
|
363
|
-
"primary":
|
|
477
|
+
"primary": true,
|
|
364
478
|
"nullable": false,
|
|
365
|
-
"
|
|
366
|
-
"
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
"
|
|
479
|
+
"unique": false,
|
|
480
|
+
"length": null,
|
|
481
|
+
"precision": null,
|
|
482
|
+
"scale": null,
|
|
483
|
+
"default": "gen_random_uuid()",
|
|
484
|
+
"comment": null,
|
|
485
|
+
"enumItems": [],
|
|
486
|
+
"mappedType": "uuid"
|
|
372
487
|
},
|
|
373
|
-
"
|
|
374
|
-
"name": "
|
|
488
|
+
"member_id": {
|
|
489
|
+
"name": "member_id",
|
|
375
490
|
"type": "uuid",
|
|
376
491
|
"unsigned": false,
|
|
377
492
|
"autoincrement": false,
|
|
378
493
|
"primary": false,
|
|
379
|
-
"nullable":
|
|
494
|
+
"nullable": false,
|
|
495
|
+
"unique": false,
|
|
496
|
+
"length": null,
|
|
497
|
+
"precision": null,
|
|
498
|
+
"scale": null,
|
|
499
|
+
"default": null,
|
|
500
|
+
"comment": null,
|
|
501
|
+
"enumItems": [],
|
|
380
502
|
"mappedType": "uuid"
|
|
381
503
|
},
|
|
382
|
-
"
|
|
383
|
-
"name": "
|
|
384
|
-
"type": "
|
|
504
|
+
"occurred_at": {
|
|
505
|
+
"name": "occurred_at",
|
|
506
|
+
"type": "timestamptz(6)",
|
|
385
507
|
"unsigned": false,
|
|
386
508
|
"autoincrement": false,
|
|
387
509
|
"primary": false,
|
|
388
510
|
"nullable": true,
|
|
389
|
-
"
|
|
511
|
+
"unique": false,
|
|
512
|
+
"length": 6,
|
|
513
|
+
"precision": null,
|
|
514
|
+
"scale": null,
|
|
515
|
+
"default": null,
|
|
516
|
+
"comment": null,
|
|
517
|
+
"enumItems": [],
|
|
518
|
+
"mappedType": "datetime"
|
|
390
519
|
},
|
|
391
|
-
"
|
|
392
|
-
"name": "
|
|
393
|
-
"type": "
|
|
520
|
+
"organization_id": {
|
|
521
|
+
"name": "organization_id",
|
|
522
|
+
"type": "uuid",
|
|
394
523
|
"unsigned": false,
|
|
395
524
|
"autoincrement": false,
|
|
396
525
|
"primary": false,
|
|
397
|
-
"nullable":
|
|
398
|
-
"
|
|
526
|
+
"nullable": false,
|
|
527
|
+
"unique": false,
|
|
528
|
+
"length": null,
|
|
529
|
+
"precision": null,
|
|
530
|
+
"scale": null,
|
|
531
|
+
"default": null,
|
|
532
|
+
"comment": null,
|
|
533
|
+
"enumItems": [],
|
|
534
|
+
"mappedType": "uuid"
|
|
399
535
|
},
|
|
400
|
-
"
|
|
401
|
-
"name": "
|
|
536
|
+
"subject": {
|
|
537
|
+
"name": "subject",
|
|
402
538
|
"type": "text",
|
|
403
539
|
"unsigned": false,
|
|
404
540
|
"autoincrement": false,
|
|
405
541
|
"primary": false,
|
|
406
542
|
"nullable": true,
|
|
543
|
+
"unique": false,
|
|
544
|
+
"length": null,
|
|
545
|
+
"precision": null,
|
|
546
|
+
"scale": null,
|
|
547
|
+
"default": null,
|
|
548
|
+
"comment": null,
|
|
549
|
+
"enumItems": [],
|
|
407
550
|
"mappedType": "text"
|
|
408
551
|
},
|
|
409
|
-
"
|
|
410
|
-
"name": "
|
|
411
|
-
"type": "uuid",
|
|
412
|
-
"unsigned": false,
|
|
413
|
-
"autoincrement": false,
|
|
414
|
-
"primary": false,
|
|
415
|
-
"nullable": true,
|
|
416
|
-
"mappedType": "uuid"
|
|
417
|
-
},
|
|
418
|
-
"decided_by_user_id": {
|
|
419
|
-
"name": "decided_by_user_id",
|
|
552
|
+
"tenant_id": {
|
|
553
|
+
"name": "tenant_id",
|
|
420
554
|
"type": "uuid",
|
|
421
555
|
"unsigned": false,
|
|
422
556
|
"autoincrement": false,
|
|
423
557
|
"primary": false,
|
|
424
|
-
"nullable": true,
|
|
425
|
-
"mappedType": "uuid"
|
|
426
|
-
},
|
|
427
|
-
"decided_at": {
|
|
428
|
-
"name": "decided_at",
|
|
429
|
-
"type": "timestamptz",
|
|
430
|
-
"unsigned": false,
|
|
431
|
-
"autoincrement": false,
|
|
432
|
-
"primary": false,
|
|
433
|
-
"nullable": true,
|
|
434
|
-
"length": 6,
|
|
435
|
-
"mappedType": "datetime"
|
|
436
|
-
},
|
|
437
|
-
"created_at": {
|
|
438
|
-
"name": "created_at",
|
|
439
|
-
"type": "timestamptz",
|
|
440
|
-
"unsigned": false,
|
|
441
|
-
"autoincrement": false,
|
|
442
|
-
"primary": false,
|
|
443
558
|
"nullable": false,
|
|
444
|
-
"
|
|
445
|
-
"
|
|
559
|
+
"unique": false,
|
|
560
|
+
"length": null,
|
|
561
|
+
"precision": null,
|
|
562
|
+
"scale": null,
|
|
563
|
+
"default": null,
|
|
564
|
+
"comment": null,
|
|
565
|
+
"enumItems": [],
|
|
566
|
+
"mappedType": "uuid"
|
|
446
567
|
},
|
|
447
568
|
"updated_at": {
|
|
448
569
|
"name": "updated_at",
|
|
449
|
-
"type": "timestamptz",
|
|
570
|
+
"type": "timestamptz(6)",
|
|
450
571
|
"unsigned": false,
|
|
451
572
|
"autoincrement": false,
|
|
452
573
|
"primary": false,
|
|
453
574
|
"nullable": false,
|
|
575
|
+
"unique": false,
|
|
454
576
|
"length": 6,
|
|
455
|
-
"
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
"
|
|
459
|
-
"
|
|
460
|
-
"unsigned": false,
|
|
461
|
-
"autoincrement": false,
|
|
462
|
-
"primary": false,
|
|
463
|
-
"nullable": true,
|
|
464
|
-
"length": 6,
|
|
577
|
+
"precision": null,
|
|
578
|
+
"scale": null,
|
|
579
|
+
"default": null,
|
|
580
|
+
"comment": null,
|
|
581
|
+
"enumItems": [],
|
|
465
582
|
"mappedType": "datetime"
|
|
466
583
|
}
|
|
467
584
|
},
|
|
468
|
-
"name": "staff_leave_requests",
|
|
469
|
-
"schema": "public",
|
|
470
585
|
"indexes": [
|
|
471
586
|
{
|
|
472
|
-
"keyName": "staff_leave_requests_status_idx",
|
|
473
|
-
"columnNames": [
|
|
474
|
-
"status",
|
|
475
|
-
"tenant_id",
|
|
476
|
-
"organization_id"
|
|
477
|
-
],
|
|
478
|
-
"composite": true,
|
|
479
|
-
"constraint": false,
|
|
480
|
-
"primary": false,
|
|
481
|
-
"unique": false
|
|
482
|
-
},
|
|
483
|
-
{
|
|
484
|
-
"keyName": "staff_leave_requests_member_idx",
|
|
485
587
|
"columnNames": [
|
|
486
588
|
"member_id"
|
|
487
589
|
],
|
|
488
590
|
"composite": false,
|
|
489
591
|
"constraint": false,
|
|
592
|
+
"keyName": "staff_team_member_activities_member_idx",
|
|
490
593
|
"primary": false,
|
|
491
594
|
"unique": false
|
|
492
595
|
},
|
|
493
596
|
{
|
|
494
|
-
"keyName": "staff_leave_requests_tenant_org_idx",
|
|
495
597
|
"columnNames": [
|
|
496
|
-
"
|
|
497
|
-
"
|
|
598
|
+
"member_id",
|
|
599
|
+
"occurred_at",
|
|
600
|
+
"created_at"
|
|
498
601
|
],
|
|
499
602
|
"composite": true,
|
|
500
603
|
"constraint": false,
|
|
604
|
+
"keyName": "staff_team_member_activities_member_occurred_created_idx",
|
|
501
605
|
"primary": false,
|
|
502
606
|
"unique": false
|
|
503
607
|
},
|
|
504
608
|
{
|
|
505
|
-
"keyName": "staff_leave_requests_pkey",
|
|
506
609
|
"columnNames": [
|
|
507
610
|
"id"
|
|
508
611
|
],
|
|
509
612
|
"composite": false,
|
|
510
613
|
"constraint": true,
|
|
614
|
+
"keyName": "staff_team_member_activities_pkey",
|
|
511
615
|
"primary": true,
|
|
512
616
|
"unique": true
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
"columnNames": [
|
|
620
|
+
"tenant_id",
|
|
621
|
+
"organization_id"
|
|
622
|
+
],
|
|
623
|
+
"composite": true,
|
|
624
|
+
"constraint": false,
|
|
625
|
+
"keyName": "staff_team_member_activities_tenant_org_idx",
|
|
626
|
+
"primary": false,
|
|
627
|
+
"unique": false
|
|
513
628
|
}
|
|
514
629
|
],
|
|
515
630
|
"checks": [],
|
|
516
631
|
"foreignKeys": {
|
|
517
|
-
"
|
|
518
|
-
"constraintName": "staff_leave_requests_member_id_foreign",
|
|
632
|
+
"staff_team_member_activities_member_id_foreign": {
|
|
519
633
|
"columnNames": [
|
|
520
634
|
"member_id"
|
|
521
635
|
],
|
|
522
|
-
"
|
|
636
|
+
"constraintName": "staff_team_member_activities_member_id_foreign",
|
|
637
|
+
"localTableName": "public.staff_team_member_activities",
|
|
523
638
|
"referencedColumnNames": [
|
|
524
639
|
"id"
|
|
525
640
|
],
|
|
526
|
-
"referencedTableName": "public.staff_team_members"
|
|
527
|
-
"updateRule": "cascade"
|
|
641
|
+
"referencedTableName": "public.staff_team_members"
|
|
528
642
|
}
|
|
529
643
|
},
|
|
530
|
-
"
|
|
644
|
+
"comment": null
|
|
531
645
|
},
|
|
532
646
|
{
|
|
647
|
+
"name": "staff_team_member_addresses",
|
|
648
|
+
"schema": "public",
|
|
533
649
|
"columns": {
|
|
534
|
-
"
|
|
535
|
-
"name": "
|
|
536
|
-
"type": "uuid",
|
|
537
|
-
"unsigned": false,
|
|
538
|
-
"autoincrement": false,
|
|
539
|
-
"primary": false,
|
|
540
|
-
"nullable": false,
|
|
541
|
-
"default": "gen_random_uuid()",
|
|
542
|
-
"mappedType": "uuid"
|
|
543
|
-
},
|
|
544
|
-
"tenant_id": {
|
|
545
|
-
"name": "tenant_id",
|
|
546
|
-
"type": "uuid",
|
|
547
|
-
"unsigned": false,
|
|
548
|
-
"autoincrement": false,
|
|
549
|
-
"primary": false,
|
|
550
|
-
"nullable": false,
|
|
551
|
-
"mappedType": "uuid"
|
|
552
|
-
},
|
|
553
|
-
"organization_id": {
|
|
554
|
-
"name": "organization_id",
|
|
555
|
-
"type": "uuid",
|
|
556
|
-
"unsigned": false,
|
|
557
|
-
"autoincrement": false,
|
|
558
|
-
"primary": false,
|
|
559
|
-
"nullable": false,
|
|
560
|
-
"mappedType": "uuid"
|
|
561
|
-
},
|
|
562
|
-
"activity_type": {
|
|
563
|
-
"name": "activity_type",
|
|
650
|
+
"address_line1": {
|
|
651
|
+
"name": "address_line1",
|
|
564
652
|
"type": "text",
|
|
565
653
|
"unsigned": false,
|
|
566
654
|
"autoincrement": false,
|
|
567
655
|
"primary": false,
|
|
568
656
|
"nullable": false,
|
|
657
|
+
"unique": false,
|
|
658
|
+
"length": null,
|
|
659
|
+
"precision": null,
|
|
660
|
+
"scale": null,
|
|
661
|
+
"default": null,
|
|
662
|
+
"comment": null,
|
|
663
|
+
"enumItems": [],
|
|
569
664
|
"mappedType": "text"
|
|
570
665
|
},
|
|
571
|
-
"
|
|
572
|
-
"name": "
|
|
666
|
+
"address_line2": {
|
|
667
|
+
"name": "address_line2",
|
|
573
668
|
"type": "text",
|
|
574
669
|
"unsigned": false,
|
|
575
670
|
"autoincrement": false,
|
|
576
671
|
"primary": false,
|
|
577
672
|
"nullable": true,
|
|
673
|
+
"unique": false,
|
|
674
|
+
"length": null,
|
|
675
|
+
"precision": null,
|
|
676
|
+
"scale": null,
|
|
677
|
+
"default": null,
|
|
678
|
+
"comment": null,
|
|
679
|
+
"enumItems": [],
|
|
578
680
|
"mappedType": "text"
|
|
579
681
|
},
|
|
580
|
-
"
|
|
581
|
-
"name": "
|
|
682
|
+
"building_number": {
|
|
683
|
+
"name": "building_number",
|
|
582
684
|
"type": "text",
|
|
583
685
|
"unsigned": false,
|
|
584
686
|
"autoincrement": false,
|
|
585
687
|
"primary": false,
|
|
586
688
|
"nullable": true,
|
|
689
|
+
"unique": false,
|
|
690
|
+
"length": null,
|
|
691
|
+
"precision": null,
|
|
692
|
+
"scale": null,
|
|
693
|
+
"default": null,
|
|
694
|
+
"comment": null,
|
|
695
|
+
"enumItems": [],
|
|
587
696
|
"mappedType": "text"
|
|
588
697
|
},
|
|
589
|
-
"
|
|
590
|
-
"name": "
|
|
591
|
-
"type": "
|
|
592
|
-
"unsigned": false,
|
|
593
|
-
"autoincrement": false,
|
|
594
|
-
"primary": false,
|
|
595
|
-
"nullable": true,
|
|
596
|
-
"length": 6,
|
|
597
|
-
"mappedType": "datetime"
|
|
598
|
-
},
|
|
599
|
-
"author_user_id": {
|
|
600
|
-
"name": "author_user_id",
|
|
601
|
-
"type": "uuid",
|
|
698
|
+
"city": {
|
|
699
|
+
"name": "city",
|
|
700
|
+
"type": "text",
|
|
602
701
|
"unsigned": false,
|
|
603
702
|
"autoincrement": false,
|
|
604
703
|
"primary": false,
|
|
605
704
|
"nullable": true,
|
|
606
|
-
"
|
|
705
|
+
"unique": false,
|
|
706
|
+
"length": null,
|
|
707
|
+
"precision": null,
|
|
708
|
+
"scale": null,
|
|
709
|
+
"default": null,
|
|
710
|
+
"comment": null,
|
|
711
|
+
"enumItems": [],
|
|
712
|
+
"mappedType": "text"
|
|
607
713
|
},
|
|
608
|
-
"
|
|
609
|
-
"name": "
|
|
714
|
+
"company_name": {
|
|
715
|
+
"name": "company_name",
|
|
610
716
|
"type": "text",
|
|
611
717
|
"unsigned": false,
|
|
612
718
|
"autoincrement": false,
|
|
613
719
|
"primary": false,
|
|
614
720
|
"nullable": true,
|
|
721
|
+
"unique": false,
|
|
722
|
+
"length": null,
|
|
723
|
+
"precision": null,
|
|
724
|
+
"scale": null,
|
|
725
|
+
"default": null,
|
|
726
|
+
"comment": null,
|
|
727
|
+
"enumItems": [],
|
|
615
728
|
"mappedType": "text"
|
|
616
729
|
},
|
|
617
|
-
"
|
|
618
|
-
"name": "
|
|
730
|
+
"country": {
|
|
731
|
+
"name": "country",
|
|
619
732
|
"type": "text",
|
|
620
733
|
"unsigned": false,
|
|
621
734
|
"autoincrement": false,
|
|
622
735
|
"primary": false,
|
|
623
736
|
"nullable": true,
|
|
737
|
+
"unique": false,
|
|
738
|
+
"length": null,
|
|
739
|
+
"precision": null,
|
|
740
|
+
"scale": null,
|
|
741
|
+
"default": null,
|
|
742
|
+
"comment": null,
|
|
743
|
+
"enumItems": [],
|
|
624
744
|
"mappedType": "text"
|
|
625
745
|
},
|
|
626
746
|
"created_at": {
|
|
627
747
|
"name": "created_at",
|
|
628
|
-
"type": "timestamptz",
|
|
748
|
+
"type": "timestamptz(6)",
|
|
629
749
|
"unsigned": false,
|
|
630
750
|
"autoincrement": false,
|
|
631
751
|
"primary": false,
|
|
632
752
|
"nullable": false,
|
|
753
|
+
"unique": false,
|
|
633
754
|
"length": 6,
|
|
755
|
+
"precision": null,
|
|
756
|
+
"scale": null,
|
|
757
|
+
"default": null,
|
|
758
|
+
"comment": null,
|
|
759
|
+
"enumItems": [],
|
|
634
760
|
"mappedType": "datetime"
|
|
635
761
|
},
|
|
636
|
-
"
|
|
637
|
-
"name": "
|
|
638
|
-
"type": "
|
|
639
|
-
"unsigned": false,
|
|
640
|
-
"autoincrement": false,
|
|
762
|
+
"flat_number": {
|
|
763
|
+
"name": "flat_number",
|
|
764
|
+
"type": "text",
|
|
765
|
+
"unsigned": false,
|
|
766
|
+
"autoincrement": false,
|
|
641
767
|
"primary": false,
|
|
768
|
+
"nullable": true,
|
|
769
|
+
"unique": false,
|
|
770
|
+
"length": null,
|
|
771
|
+
"precision": null,
|
|
772
|
+
"scale": null,
|
|
773
|
+
"default": null,
|
|
774
|
+
"comment": null,
|
|
775
|
+
"enumItems": [],
|
|
776
|
+
"mappedType": "text"
|
|
777
|
+
},
|
|
778
|
+
"id": {
|
|
779
|
+
"name": "id",
|
|
780
|
+
"type": "uuid",
|
|
781
|
+
"unsigned": false,
|
|
782
|
+
"autoincrement": false,
|
|
783
|
+
"primary": true,
|
|
642
784
|
"nullable": false,
|
|
643
|
-
"
|
|
644
|
-
"
|
|
785
|
+
"unique": false,
|
|
786
|
+
"length": null,
|
|
787
|
+
"precision": null,
|
|
788
|
+
"scale": null,
|
|
789
|
+
"default": "gen_random_uuid()",
|
|
790
|
+
"comment": null,
|
|
791
|
+
"enumItems": [],
|
|
792
|
+
"mappedType": "uuid"
|
|
793
|
+
},
|
|
794
|
+
"is_primary": {
|
|
795
|
+
"name": "is_primary",
|
|
796
|
+
"type": "boolean",
|
|
797
|
+
"unsigned": false,
|
|
798
|
+
"autoincrement": false,
|
|
799
|
+
"primary": false,
|
|
800
|
+
"nullable": false,
|
|
801
|
+
"unique": false,
|
|
802
|
+
"length": null,
|
|
803
|
+
"precision": null,
|
|
804
|
+
"scale": null,
|
|
805
|
+
"default": "false",
|
|
806
|
+
"comment": null,
|
|
807
|
+
"enumItems": [],
|
|
808
|
+
"mappedType": "boolean"
|
|
809
|
+
},
|
|
810
|
+
"latitude": {
|
|
811
|
+
"name": "latitude",
|
|
812
|
+
"type": "real",
|
|
813
|
+
"unsigned": false,
|
|
814
|
+
"autoincrement": false,
|
|
815
|
+
"primary": false,
|
|
816
|
+
"nullable": true,
|
|
817
|
+
"unique": false,
|
|
818
|
+
"length": null,
|
|
819
|
+
"precision": null,
|
|
820
|
+
"scale": null,
|
|
821
|
+
"default": null,
|
|
822
|
+
"comment": null,
|
|
823
|
+
"enumItems": [],
|
|
824
|
+
"mappedType": "float"
|
|
825
|
+
},
|
|
826
|
+
"longitude": {
|
|
827
|
+
"name": "longitude",
|
|
828
|
+
"type": "real",
|
|
829
|
+
"unsigned": false,
|
|
830
|
+
"autoincrement": false,
|
|
831
|
+
"primary": false,
|
|
832
|
+
"nullable": true,
|
|
833
|
+
"unique": false,
|
|
834
|
+
"length": null,
|
|
835
|
+
"precision": null,
|
|
836
|
+
"scale": null,
|
|
837
|
+
"default": null,
|
|
838
|
+
"comment": null,
|
|
839
|
+
"enumItems": [],
|
|
840
|
+
"mappedType": "float"
|
|
645
841
|
},
|
|
646
842
|
"member_id": {
|
|
647
843
|
"name": "member_id",
|
|
@@ -650,92 +846,307 @@
|
|
|
650
846
|
"autoincrement": false,
|
|
651
847
|
"primary": false,
|
|
652
848
|
"nullable": false,
|
|
849
|
+
"unique": false,
|
|
850
|
+
"length": null,
|
|
851
|
+
"precision": null,
|
|
852
|
+
"scale": null,
|
|
853
|
+
"default": null,
|
|
854
|
+
"comment": null,
|
|
855
|
+
"enumItems": [],
|
|
653
856
|
"mappedType": "uuid"
|
|
654
|
-
}
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
"keyName": "staff_team_member_activities_member_occurred_created_idx",
|
|
661
|
-
"columnNames": [
|
|
662
|
-
"member_id",
|
|
663
|
-
"occurred_at",
|
|
664
|
-
"created_at"
|
|
665
|
-
],
|
|
666
|
-
"composite": true,
|
|
667
|
-
"constraint": false,
|
|
857
|
+
},
|
|
858
|
+
"name": {
|
|
859
|
+
"name": "name",
|
|
860
|
+
"type": "text",
|
|
861
|
+
"unsigned": false,
|
|
862
|
+
"autoincrement": false,
|
|
668
863
|
"primary": false,
|
|
669
|
-
"
|
|
864
|
+
"nullable": true,
|
|
865
|
+
"unique": false,
|
|
866
|
+
"length": null,
|
|
867
|
+
"precision": null,
|
|
868
|
+
"scale": null,
|
|
869
|
+
"default": null,
|
|
870
|
+
"comment": null,
|
|
871
|
+
"enumItems": [],
|
|
872
|
+
"mappedType": "text"
|
|
670
873
|
},
|
|
671
|
-
{
|
|
672
|
-
"
|
|
673
|
-
"
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
],
|
|
677
|
-
"composite": true,
|
|
678
|
-
"constraint": false,
|
|
874
|
+
"organization_id": {
|
|
875
|
+
"name": "organization_id",
|
|
876
|
+
"type": "uuid",
|
|
877
|
+
"unsigned": false,
|
|
878
|
+
"autoincrement": false,
|
|
679
879
|
"primary": false,
|
|
680
|
-
"
|
|
880
|
+
"nullable": false,
|
|
881
|
+
"unique": false,
|
|
882
|
+
"length": null,
|
|
883
|
+
"precision": null,
|
|
884
|
+
"scale": null,
|
|
885
|
+
"default": null,
|
|
886
|
+
"comment": null,
|
|
887
|
+
"enumItems": [],
|
|
888
|
+
"mappedType": "uuid"
|
|
889
|
+
},
|
|
890
|
+
"postal_code": {
|
|
891
|
+
"name": "postal_code",
|
|
892
|
+
"type": "text",
|
|
893
|
+
"unsigned": false,
|
|
894
|
+
"autoincrement": false,
|
|
895
|
+
"primary": false,
|
|
896
|
+
"nullable": true,
|
|
897
|
+
"unique": false,
|
|
898
|
+
"length": null,
|
|
899
|
+
"precision": null,
|
|
900
|
+
"scale": null,
|
|
901
|
+
"default": null,
|
|
902
|
+
"comment": null,
|
|
903
|
+
"enumItems": [],
|
|
904
|
+
"mappedType": "text"
|
|
905
|
+
},
|
|
906
|
+
"purpose": {
|
|
907
|
+
"name": "purpose",
|
|
908
|
+
"type": "text",
|
|
909
|
+
"unsigned": false,
|
|
910
|
+
"autoincrement": false,
|
|
911
|
+
"primary": false,
|
|
912
|
+
"nullable": true,
|
|
913
|
+
"unique": false,
|
|
914
|
+
"length": null,
|
|
915
|
+
"precision": null,
|
|
916
|
+
"scale": null,
|
|
917
|
+
"default": null,
|
|
918
|
+
"comment": null,
|
|
919
|
+
"enumItems": [],
|
|
920
|
+
"mappedType": "text"
|
|
681
921
|
},
|
|
922
|
+
"region": {
|
|
923
|
+
"name": "region",
|
|
924
|
+
"type": "text",
|
|
925
|
+
"unsigned": false,
|
|
926
|
+
"autoincrement": false,
|
|
927
|
+
"primary": false,
|
|
928
|
+
"nullable": true,
|
|
929
|
+
"unique": false,
|
|
930
|
+
"length": null,
|
|
931
|
+
"precision": null,
|
|
932
|
+
"scale": null,
|
|
933
|
+
"default": null,
|
|
934
|
+
"comment": null,
|
|
935
|
+
"enumItems": [],
|
|
936
|
+
"mappedType": "text"
|
|
937
|
+
},
|
|
938
|
+
"tenant_id": {
|
|
939
|
+
"name": "tenant_id",
|
|
940
|
+
"type": "uuid",
|
|
941
|
+
"unsigned": false,
|
|
942
|
+
"autoincrement": false,
|
|
943
|
+
"primary": false,
|
|
944
|
+
"nullable": false,
|
|
945
|
+
"unique": false,
|
|
946
|
+
"length": null,
|
|
947
|
+
"precision": null,
|
|
948
|
+
"scale": null,
|
|
949
|
+
"default": null,
|
|
950
|
+
"comment": null,
|
|
951
|
+
"enumItems": [],
|
|
952
|
+
"mappedType": "uuid"
|
|
953
|
+
},
|
|
954
|
+
"updated_at": {
|
|
955
|
+
"name": "updated_at",
|
|
956
|
+
"type": "timestamptz(6)",
|
|
957
|
+
"unsigned": false,
|
|
958
|
+
"autoincrement": false,
|
|
959
|
+
"primary": false,
|
|
960
|
+
"nullable": false,
|
|
961
|
+
"unique": false,
|
|
962
|
+
"length": 6,
|
|
963
|
+
"precision": null,
|
|
964
|
+
"scale": null,
|
|
965
|
+
"default": null,
|
|
966
|
+
"comment": null,
|
|
967
|
+
"enumItems": [],
|
|
968
|
+
"mappedType": "datetime"
|
|
969
|
+
}
|
|
970
|
+
},
|
|
971
|
+
"indexes": [
|
|
682
972
|
{
|
|
683
|
-
"keyName": "staff_team_member_activities_member_idx",
|
|
684
973
|
"columnNames": [
|
|
685
974
|
"member_id"
|
|
686
975
|
],
|
|
687
976
|
"composite": false,
|
|
688
977
|
"constraint": false,
|
|
978
|
+
"keyName": "staff_team_member_addresses_member_idx",
|
|
689
979
|
"primary": false,
|
|
690
980
|
"unique": false
|
|
691
981
|
},
|
|
692
982
|
{
|
|
693
|
-
"keyName": "staff_team_member_activities_pkey",
|
|
694
983
|
"columnNames": [
|
|
695
984
|
"id"
|
|
696
985
|
],
|
|
697
986
|
"composite": false,
|
|
698
987
|
"constraint": true,
|
|
988
|
+
"keyName": "staff_team_member_addresses_pkey",
|
|
699
989
|
"primary": true,
|
|
700
990
|
"unique": true
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
"columnNames": [
|
|
994
|
+
"tenant_id",
|
|
995
|
+
"organization_id"
|
|
996
|
+
],
|
|
997
|
+
"composite": true,
|
|
998
|
+
"constraint": false,
|
|
999
|
+
"keyName": "staff_team_member_addresses_tenant_org_idx",
|
|
1000
|
+
"primary": false,
|
|
1001
|
+
"unique": false
|
|
701
1002
|
}
|
|
702
1003
|
],
|
|
703
1004
|
"checks": [],
|
|
704
1005
|
"foreignKeys": {
|
|
705
|
-
"
|
|
706
|
-
"constraintName": "staff_team_member_activities_member_id_foreign",
|
|
1006
|
+
"staff_team_member_addresses_member_id_foreign": {
|
|
707
1007
|
"columnNames": [
|
|
708
1008
|
"member_id"
|
|
709
1009
|
],
|
|
710
|
-
"
|
|
1010
|
+
"constraintName": "staff_team_member_addresses_member_id_foreign",
|
|
1011
|
+
"localTableName": "public.staff_team_member_addresses",
|
|
711
1012
|
"referencedColumnNames": [
|
|
712
1013
|
"id"
|
|
713
1014
|
],
|
|
714
|
-
"referencedTableName": "public.staff_team_members"
|
|
715
|
-
"updateRule": "cascade"
|
|
1015
|
+
"referencedTableName": "public.staff_team_members"
|
|
716
1016
|
}
|
|
717
1017
|
},
|
|
718
|
-
"
|
|
1018
|
+
"comment": null
|
|
719
1019
|
},
|
|
720
1020
|
{
|
|
1021
|
+
"name": "staff_team_member_comments",
|
|
1022
|
+
"schema": "public",
|
|
721
1023
|
"columns": {
|
|
1024
|
+
"appearance_color": {
|
|
1025
|
+
"name": "appearance_color",
|
|
1026
|
+
"type": "text",
|
|
1027
|
+
"unsigned": false,
|
|
1028
|
+
"autoincrement": false,
|
|
1029
|
+
"primary": false,
|
|
1030
|
+
"nullable": true,
|
|
1031
|
+
"unique": false,
|
|
1032
|
+
"length": null,
|
|
1033
|
+
"precision": null,
|
|
1034
|
+
"scale": null,
|
|
1035
|
+
"default": null,
|
|
1036
|
+
"comment": null,
|
|
1037
|
+
"enumItems": [],
|
|
1038
|
+
"mappedType": "text"
|
|
1039
|
+
},
|
|
1040
|
+
"appearance_icon": {
|
|
1041
|
+
"name": "appearance_icon",
|
|
1042
|
+
"type": "text",
|
|
1043
|
+
"unsigned": false,
|
|
1044
|
+
"autoincrement": false,
|
|
1045
|
+
"primary": false,
|
|
1046
|
+
"nullable": true,
|
|
1047
|
+
"unique": false,
|
|
1048
|
+
"length": null,
|
|
1049
|
+
"precision": null,
|
|
1050
|
+
"scale": null,
|
|
1051
|
+
"default": null,
|
|
1052
|
+
"comment": null,
|
|
1053
|
+
"enumItems": [],
|
|
1054
|
+
"mappedType": "text"
|
|
1055
|
+
},
|
|
1056
|
+
"author_user_id": {
|
|
1057
|
+
"name": "author_user_id",
|
|
1058
|
+
"type": "uuid",
|
|
1059
|
+
"unsigned": false,
|
|
1060
|
+
"autoincrement": false,
|
|
1061
|
+
"primary": false,
|
|
1062
|
+
"nullable": true,
|
|
1063
|
+
"unique": false,
|
|
1064
|
+
"length": null,
|
|
1065
|
+
"precision": null,
|
|
1066
|
+
"scale": null,
|
|
1067
|
+
"default": null,
|
|
1068
|
+
"comment": null,
|
|
1069
|
+
"enumItems": [],
|
|
1070
|
+
"mappedType": "uuid"
|
|
1071
|
+
},
|
|
1072
|
+
"body": {
|
|
1073
|
+
"name": "body",
|
|
1074
|
+
"type": "text",
|
|
1075
|
+
"unsigned": false,
|
|
1076
|
+
"autoincrement": false,
|
|
1077
|
+
"primary": false,
|
|
1078
|
+
"nullable": false,
|
|
1079
|
+
"unique": false,
|
|
1080
|
+
"length": null,
|
|
1081
|
+
"precision": null,
|
|
1082
|
+
"scale": null,
|
|
1083
|
+
"default": null,
|
|
1084
|
+
"comment": null,
|
|
1085
|
+
"enumItems": [],
|
|
1086
|
+
"mappedType": "text"
|
|
1087
|
+
},
|
|
1088
|
+
"created_at": {
|
|
1089
|
+
"name": "created_at",
|
|
1090
|
+
"type": "timestamptz(6)",
|
|
1091
|
+
"unsigned": false,
|
|
1092
|
+
"autoincrement": false,
|
|
1093
|
+
"primary": false,
|
|
1094
|
+
"nullable": false,
|
|
1095
|
+
"unique": false,
|
|
1096
|
+
"length": 6,
|
|
1097
|
+
"precision": null,
|
|
1098
|
+
"scale": null,
|
|
1099
|
+
"default": null,
|
|
1100
|
+
"comment": null,
|
|
1101
|
+
"enumItems": [],
|
|
1102
|
+
"mappedType": "datetime"
|
|
1103
|
+
},
|
|
1104
|
+
"deleted_at": {
|
|
1105
|
+
"name": "deleted_at",
|
|
1106
|
+
"type": "timestamptz(6)",
|
|
1107
|
+
"unsigned": false,
|
|
1108
|
+
"autoincrement": false,
|
|
1109
|
+
"primary": false,
|
|
1110
|
+
"nullable": true,
|
|
1111
|
+
"unique": false,
|
|
1112
|
+
"length": 6,
|
|
1113
|
+
"precision": null,
|
|
1114
|
+
"scale": null,
|
|
1115
|
+
"default": null,
|
|
1116
|
+
"comment": null,
|
|
1117
|
+
"enumItems": [],
|
|
1118
|
+
"mappedType": "datetime"
|
|
1119
|
+
},
|
|
722
1120
|
"id": {
|
|
723
1121
|
"name": "id",
|
|
724
1122
|
"type": "uuid",
|
|
725
1123
|
"unsigned": false,
|
|
726
1124
|
"autoincrement": false,
|
|
727
|
-
"primary":
|
|
1125
|
+
"primary": true,
|
|
728
1126
|
"nullable": false,
|
|
1127
|
+
"unique": false,
|
|
1128
|
+
"length": null,
|
|
1129
|
+
"precision": null,
|
|
1130
|
+
"scale": null,
|
|
729
1131
|
"default": "gen_random_uuid()",
|
|
1132
|
+
"comment": null,
|
|
1133
|
+
"enumItems": [],
|
|
730
1134
|
"mappedType": "uuid"
|
|
731
1135
|
},
|
|
732
|
-
"
|
|
733
|
-
"name": "
|
|
1136
|
+
"member_id": {
|
|
1137
|
+
"name": "member_id",
|
|
734
1138
|
"type": "uuid",
|
|
735
1139
|
"unsigned": false,
|
|
736
1140
|
"autoincrement": false,
|
|
737
1141
|
"primary": false,
|
|
738
1142
|
"nullable": false,
|
|
1143
|
+
"unique": false,
|
|
1144
|
+
"length": null,
|
|
1145
|
+
"precision": null,
|
|
1146
|
+
"scale": null,
|
|
1147
|
+
"default": null,
|
|
1148
|
+
"comment": null,
|
|
1149
|
+
"enumItems": [],
|
|
739
1150
|
"mappedType": "uuid"
|
|
740
1151
|
},
|
|
741
1152
|
"organization_id": {
|
|
@@ -745,26 +1156,101 @@
|
|
|
745
1156
|
"autoincrement": false,
|
|
746
1157
|
"primary": false,
|
|
747
1158
|
"nullable": false,
|
|
1159
|
+
"unique": false,
|
|
1160
|
+
"length": null,
|
|
1161
|
+
"precision": null,
|
|
1162
|
+
"scale": null,
|
|
1163
|
+
"default": null,
|
|
1164
|
+
"comment": null,
|
|
1165
|
+
"enumItems": [],
|
|
748
1166
|
"mappedType": "uuid"
|
|
749
1167
|
},
|
|
750
|
-
"
|
|
751
|
-
"name": "
|
|
752
|
-
"type": "
|
|
1168
|
+
"tenant_id": {
|
|
1169
|
+
"name": "tenant_id",
|
|
1170
|
+
"type": "uuid",
|
|
753
1171
|
"unsigned": false,
|
|
754
1172
|
"autoincrement": false,
|
|
755
1173
|
"primary": false,
|
|
756
|
-
"nullable":
|
|
757
|
-
"
|
|
1174
|
+
"nullable": false,
|
|
1175
|
+
"unique": false,
|
|
1176
|
+
"length": null,
|
|
1177
|
+
"precision": null,
|
|
1178
|
+
"scale": null,
|
|
1179
|
+
"default": null,
|
|
1180
|
+
"comment": null,
|
|
1181
|
+
"enumItems": [],
|
|
1182
|
+
"mappedType": "uuid"
|
|
758
1183
|
},
|
|
759
|
-
"
|
|
760
|
-
"name": "
|
|
761
|
-
"type": "
|
|
1184
|
+
"updated_at": {
|
|
1185
|
+
"name": "updated_at",
|
|
1186
|
+
"type": "timestamptz(6)",
|
|
762
1187
|
"unsigned": false,
|
|
763
1188
|
"autoincrement": false,
|
|
764
1189
|
"primary": false,
|
|
765
|
-
"nullable":
|
|
766
|
-
"
|
|
1190
|
+
"nullable": false,
|
|
1191
|
+
"unique": false,
|
|
1192
|
+
"length": 6,
|
|
1193
|
+
"precision": null,
|
|
1194
|
+
"scale": null,
|
|
1195
|
+
"default": null,
|
|
1196
|
+
"comment": null,
|
|
1197
|
+
"enumItems": [],
|
|
1198
|
+
"mappedType": "datetime"
|
|
1199
|
+
}
|
|
1200
|
+
},
|
|
1201
|
+
"indexes": [
|
|
1202
|
+
{
|
|
1203
|
+
"columnNames": [
|
|
1204
|
+
"member_id"
|
|
1205
|
+
],
|
|
1206
|
+
"composite": false,
|
|
1207
|
+
"constraint": false,
|
|
1208
|
+
"keyName": "staff_team_member_comments_member_idx",
|
|
1209
|
+
"primary": false,
|
|
1210
|
+
"unique": false
|
|
767
1211
|
},
|
|
1212
|
+
{
|
|
1213
|
+
"columnNames": [
|
|
1214
|
+
"id"
|
|
1215
|
+
],
|
|
1216
|
+
"composite": false,
|
|
1217
|
+
"constraint": true,
|
|
1218
|
+
"keyName": "staff_team_member_comments_pkey",
|
|
1219
|
+
"primary": true,
|
|
1220
|
+
"unique": true
|
|
1221
|
+
},
|
|
1222
|
+
{
|
|
1223
|
+
"columnNames": [
|
|
1224
|
+
"tenant_id",
|
|
1225
|
+
"organization_id"
|
|
1226
|
+
],
|
|
1227
|
+
"composite": true,
|
|
1228
|
+
"constraint": false,
|
|
1229
|
+
"keyName": "staff_team_member_comments_tenant_org_idx",
|
|
1230
|
+
"primary": false,
|
|
1231
|
+
"unique": false
|
|
1232
|
+
}
|
|
1233
|
+
],
|
|
1234
|
+
"checks": [],
|
|
1235
|
+
"foreignKeys": {
|
|
1236
|
+
"staff_team_member_comments_member_id_foreign": {
|
|
1237
|
+
"columnNames": [
|
|
1238
|
+
"member_id"
|
|
1239
|
+
],
|
|
1240
|
+
"constraintName": "staff_team_member_comments_member_id_foreign",
|
|
1241
|
+
"localTableName": "public.staff_team_member_comments",
|
|
1242
|
+
"referencedColumnNames": [
|
|
1243
|
+
"id"
|
|
1244
|
+
],
|
|
1245
|
+
"referencedTableName": "public.staff_team_members"
|
|
1246
|
+
}
|
|
1247
|
+
},
|
|
1248
|
+
"comment": null
|
|
1249
|
+
},
|
|
1250
|
+
{
|
|
1251
|
+
"name": "staff_team_member_job_histories",
|
|
1252
|
+
"schema": "public",
|
|
1253
|
+
"columns": {
|
|
768
1254
|
"company_name": {
|
|
769
1255
|
"name": "company_name",
|
|
770
1256
|
"type": "text",
|
|
@@ -772,653 +1258,877 @@
|
|
|
772
1258
|
"autoincrement": false,
|
|
773
1259
|
"primary": false,
|
|
774
1260
|
"nullable": true,
|
|
1261
|
+
"unique": false,
|
|
1262
|
+
"length": null,
|
|
1263
|
+
"precision": null,
|
|
1264
|
+
"scale": null,
|
|
1265
|
+
"default": null,
|
|
1266
|
+
"comment": null,
|
|
1267
|
+
"enumItems": [],
|
|
775
1268
|
"mappedType": "text"
|
|
776
1269
|
},
|
|
777
|
-
"
|
|
778
|
-
"name": "
|
|
779
|
-
"type": "
|
|
1270
|
+
"created_at": {
|
|
1271
|
+
"name": "created_at",
|
|
1272
|
+
"type": "timestamptz(6)",
|
|
780
1273
|
"unsigned": false,
|
|
781
1274
|
"autoincrement": false,
|
|
782
1275
|
"primary": false,
|
|
783
1276
|
"nullable": false,
|
|
784
|
-
"
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
"
|
|
788
|
-
"
|
|
789
|
-
"
|
|
790
|
-
"
|
|
791
|
-
"
|
|
792
|
-
"nullable": true,
|
|
793
|
-
"mappedType": "text"
|
|
794
|
-
},
|
|
795
|
-
"city": {
|
|
796
|
-
"name": "city",
|
|
797
|
-
"type": "text",
|
|
798
|
-
"unsigned": false,
|
|
799
|
-
"autoincrement": false,
|
|
800
|
-
"primary": false,
|
|
801
|
-
"nullable": true,
|
|
802
|
-
"mappedType": "text"
|
|
1277
|
+
"unique": false,
|
|
1278
|
+
"length": 6,
|
|
1279
|
+
"precision": null,
|
|
1280
|
+
"scale": null,
|
|
1281
|
+
"default": null,
|
|
1282
|
+
"comment": null,
|
|
1283
|
+
"enumItems": [],
|
|
1284
|
+
"mappedType": "datetime"
|
|
803
1285
|
},
|
|
804
|
-
"
|
|
805
|
-
"name": "
|
|
1286
|
+
"description": {
|
|
1287
|
+
"name": "description",
|
|
806
1288
|
"type": "text",
|
|
807
1289
|
"unsigned": false,
|
|
808
1290
|
"autoincrement": false,
|
|
809
1291
|
"primary": false,
|
|
810
1292
|
"nullable": true,
|
|
1293
|
+
"unique": false,
|
|
1294
|
+
"length": null,
|
|
1295
|
+
"precision": null,
|
|
1296
|
+
"scale": null,
|
|
1297
|
+
"default": null,
|
|
1298
|
+
"comment": null,
|
|
1299
|
+
"enumItems": [],
|
|
811
1300
|
"mappedType": "text"
|
|
812
1301
|
},
|
|
813
|
-
"
|
|
814
|
-
"name": "
|
|
815
|
-
"type": "
|
|
1302
|
+
"end_date": {
|
|
1303
|
+
"name": "end_date",
|
|
1304
|
+
"type": "timestamptz(6)",
|
|
816
1305
|
"unsigned": false,
|
|
817
1306
|
"autoincrement": false,
|
|
818
1307
|
"primary": false,
|
|
819
1308
|
"nullable": true,
|
|
820
|
-
"
|
|
1309
|
+
"unique": false,
|
|
1310
|
+
"length": 6,
|
|
1311
|
+
"precision": null,
|
|
1312
|
+
"scale": null,
|
|
1313
|
+
"default": null,
|
|
1314
|
+
"comment": null,
|
|
1315
|
+
"enumItems": [],
|
|
1316
|
+
"mappedType": "datetime"
|
|
821
1317
|
},
|
|
822
|
-
"
|
|
823
|
-
"name": "
|
|
824
|
-
"type": "
|
|
1318
|
+
"id": {
|
|
1319
|
+
"name": "id",
|
|
1320
|
+
"type": "uuid",
|
|
825
1321
|
"unsigned": false,
|
|
826
1322
|
"autoincrement": false,
|
|
827
|
-
"primary":
|
|
828
|
-
"nullable":
|
|
829
|
-
"
|
|
1323
|
+
"primary": true,
|
|
1324
|
+
"nullable": false,
|
|
1325
|
+
"unique": false,
|
|
1326
|
+
"length": null,
|
|
1327
|
+
"precision": null,
|
|
1328
|
+
"scale": null,
|
|
1329
|
+
"default": "gen_random_uuid()",
|
|
1330
|
+
"comment": null,
|
|
1331
|
+
"enumItems": [],
|
|
1332
|
+
"mappedType": "uuid"
|
|
830
1333
|
},
|
|
831
|
-
"
|
|
832
|
-
"name": "
|
|
833
|
-
"type": "
|
|
1334
|
+
"member_id": {
|
|
1335
|
+
"name": "member_id",
|
|
1336
|
+
"type": "uuid",
|
|
834
1337
|
"unsigned": false,
|
|
835
1338
|
"autoincrement": false,
|
|
836
1339
|
"primary": false,
|
|
837
|
-
"nullable":
|
|
838
|
-
"
|
|
1340
|
+
"nullable": false,
|
|
1341
|
+
"unique": false,
|
|
1342
|
+
"length": null,
|
|
1343
|
+
"precision": null,
|
|
1344
|
+
"scale": null,
|
|
1345
|
+
"default": null,
|
|
1346
|
+
"comment": null,
|
|
1347
|
+
"enumItems": [],
|
|
1348
|
+
"mappedType": "uuid"
|
|
839
1349
|
},
|
|
840
|
-
"
|
|
841
|
-
"name": "
|
|
1350
|
+
"name": {
|
|
1351
|
+
"name": "name",
|
|
842
1352
|
"type": "text",
|
|
843
1353
|
"unsigned": false,
|
|
844
1354
|
"autoincrement": false,
|
|
845
1355
|
"primary": false,
|
|
846
|
-
"nullable":
|
|
1356
|
+
"nullable": false,
|
|
1357
|
+
"unique": false,
|
|
1358
|
+
"length": null,
|
|
1359
|
+
"precision": null,
|
|
1360
|
+
"scale": null,
|
|
1361
|
+
"default": null,
|
|
1362
|
+
"comment": null,
|
|
1363
|
+
"enumItems": [],
|
|
847
1364
|
"mappedType": "text"
|
|
848
1365
|
},
|
|
849
|
-
"
|
|
850
|
-
"name": "
|
|
851
|
-
"type": "
|
|
852
|
-
"unsigned": false,
|
|
853
|
-
"autoincrement": false,
|
|
854
|
-
"primary": false,
|
|
855
|
-
"nullable": true,
|
|
856
|
-
"mappedType": "float"
|
|
857
|
-
},
|
|
858
|
-
"longitude": {
|
|
859
|
-
"name": "longitude",
|
|
860
|
-
"type": "real",
|
|
1366
|
+
"organization_id": {
|
|
1367
|
+
"name": "organization_id",
|
|
1368
|
+
"type": "uuid",
|
|
861
1369
|
"unsigned": false,
|
|
862
1370
|
"autoincrement": false,
|
|
863
1371
|
"primary": false,
|
|
864
|
-
"nullable":
|
|
865
|
-
"
|
|
1372
|
+
"nullable": false,
|
|
1373
|
+
"unique": false,
|
|
1374
|
+
"length": null,
|
|
1375
|
+
"precision": null,
|
|
1376
|
+
"scale": null,
|
|
1377
|
+
"default": null,
|
|
1378
|
+
"comment": null,
|
|
1379
|
+
"enumItems": [],
|
|
1380
|
+
"mappedType": "uuid"
|
|
866
1381
|
},
|
|
867
|
-
"
|
|
868
|
-
"name": "
|
|
869
|
-
"type": "
|
|
1382
|
+
"start_date": {
|
|
1383
|
+
"name": "start_date",
|
|
1384
|
+
"type": "timestamptz(6)",
|
|
870
1385
|
"unsigned": false,
|
|
871
1386
|
"autoincrement": false,
|
|
872
1387
|
"primary": false,
|
|
873
1388
|
"nullable": false,
|
|
874
|
-
"
|
|
875
|
-
"
|
|
1389
|
+
"unique": false,
|
|
1390
|
+
"length": 6,
|
|
1391
|
+
"precision": null,
|
|
1392
|
+
"scale": null,
|
|
1393
|
+
"default": null,
|
|
1394
|
+
"comment": null,
|
|
1395
|
+
"enumItems": [],
|
|
1396
|
+
"mappedType": "datetime"
|
|
876
1397
|
},
|
|
877
|
-
"
|
|
878
|
-
"name": "
|
|
879
|
-
"type": "
|
|
1398
|
+
"tenant_id": {
|
|
1399
|
+
"name": "tenant_id",
|
|
1400
|
+
"type": "uuid",
|
|
880
1401
|
"unsigned": false,
|
|
881
1402
|
"autoincrement": false,
|
|
882
1403
|
"primary": false,
|
|
883
1404
|
"nullable": false,
|
|
884
|
-
"
|
|
885
|
-
"
|
|
1405
|
+
"unique": false,
|
|
1406
|
+
"length": null,
|
|
1407
|
+
"precision": null,
|
|
1408
|
+
"scale": null,
|
|
1409
|
+
"default": null,
|
|
1410
|
+
"comment": null,
|
|
1411
|
+
"enumItems": [],
|
|
1412
|
+
"mappedType": "uuid"
|
|
886
1413
|
},
|
|
887
1414
|
"updated_at": {
|
|
888
1415
|
"name": "updated_at",
|
|
889
|
-
"type": "timestamptz",
|
|
1416
|
+
"type": "timestamptz(6)",
|
|
890
1417
|
"unsigned": false,
|
|
891
1418
|
"autoincrement": false,
|
|
892
1419
|
"primary": false,
|
|
893
1420
|
"nullable": false,
|
|
1421
|
+
"unique": false,
|
|
894
1422
|
"length": 6,
|
|
1423
|
+
"precision": null,
|
|
1424
|
+
"scale": null,
|
|
1425
|
+
"default": null,
|
|
1426
|
+
"comment": null,
|
|
1427
|
+
"enumItems": [],
|
|
895
1428
|
"mappedType": "datetime"
|
|
896
|
-
},
|
|
897
|
-
"member_id": {
|
|
898
|
-
"name": "member_id",
|
|
899
|
-
"type": "uuid",
|
|
900
|
-
"unsigned": false,
|
|
901
|
-
"autoincrement": false,
|
|
902
|
-
"primary": false,
|
|
903
|
-
"nullable": false,
|
|
904
|
-
"mappedType": "uuid"
|
|
905
1429
|
}
|
|
906
1430
|
},
|
|
907
|
-
"name": "staff_team_member_addresses",
|
|
908
|
-
"schema": "public",
|
|
909
1431
|
"indexes": [
|
|
910
1432
|
{
|
|
911
|
-
"keyName": "staff_team_member_addresses_tenant_org_idx",
|
|
912
1433
|
"columnNames": [
|
|
913
|
-
"
|
|
914
|
-
"organization_id"
|
|
1434
|
+
"member_id"
|
|
915
1435
|
],
|
|
916
|
-
"composite":
|
|
1436
|
+
"composite": false,
|
|
917
1437
|
"constraint": false,
|
|
1438
|
+
"keyName": "staff_team_member_job_histories_member_idx",
|
|
918
1439
|
"primary": false,
|
|
919
1440
|
"unique": false
|
|
920
1441
|
},
|
|
921
1442
|
{
|
|
922
|
-
"keyName": "staff_team_member_addresses_member_idx",
|
|
923
1443
|
"columnNames": [
|
|
924
|
-
"member_id"
|
|
1444
|
+
"member_id",
|
|
1445
|
+
"start_date"
|
|
925
1446
|
],
|
|
926
|
-
"composite":
|
|
1447
|
+
"composite": true,
|
|
927
1448
|
"constraint": false,
|
|
1449
|
+
"keyName": "staff_team_member_job_histories_member_start_idx",
|
|
928
1450
|
"primary": false,
|
|
929
1451
|
"unique": false
|
|
930
1452
|
},
|
|
931
1453
|
{
|
|
932
|
-
"keyName": "staff_team_member_addresses_pkey",
|
|
933
1454
|
"columnNames": [
|
|
934
1455
|
"id"
|
|
935
1456
|
],
|
|
936
1457
|
"composite": false,
|
|
937
1458
|
"constraint": true,
|
|
1459
|
+
"keyName": "staff_team_member_job_histories_pkey",
|
|
938
1460
|
"primary": true,
|
|
939
1461
|
"unique": true
|
|
1462
|
+
},
|
|
1463
|
+
{
|
|
1464
|
+
"columnNames": [
|
|
1465
|
+
"tenant_id",
|
|
1466
|
+
"organization_id"
|
|
1467
|
+
],
|
|
1468
|
+
"composite": true,
|
|
1469
|
+
"constraint": false,
|
|
1470
|
+
"keyName": "staff_team_member_job_histories_tenant_org_idx",
|
|
1471
|
+
"primary": false,
|
|
1472
|
+
"unique": false
|
|
940
1473
|
}
|
|
941
1474
|
],
|
|
942
1475
|
"checks": [],
|
|
943
1476
|
"foreignKeys": {
|
|
944
|
-
"
|
|
945
|
-
"constraintName": "staff_team_member_addresses_member_id_foreign",
|
|
1477
|
+
"staff_team_member_job_histories_member_id_foreign": {
|
|
946
1478
|
"columnNames": [
|
|
947
1479
|
"member_id"
|
|
948
1480
|
],
|
|
949
|
-
"
|
|
1481
|
+
"constraintName": "staff_team_member_job_histories_member_id_foreign",
|
|
1482
|
+
"localTableName": "public.staff_team_member_job_histories",
|
|
950
1483
|
"referencedColumnNames": [
|
|
951
1484
|
"id"
|
|
952
1485
|
],
|
|
953
|
-
"referencedTableName": "public.staff_team_members"
|
|
954
|
-
"updateRule": "cascade"
|
|
1486
|
+
"referencedTableName": "public.staff_team_members"
|
|
955
1487
|
}
|
|
956
1488
|
},
|
|
957
|
-
"
|
|
1489
|
+
"comment": null
|
|
958
1490
|
},
|
|
959
1491
|
{
|
|
1492
|
+
"name": "staff_team_members",
|
|
1493
|
+
"schema": "public",
|
|
960
1494
|
"columns": {
|
|
961
|
-
"
|
|
962
|
-
"name": "
|
|
1495
|
+
"availability_rule_set_id": {
|
|
1496
|
+
"name": "availability_rule_set_id",
|
|
963
1497
|
"type": "uuid",
|
|
964
1498
|
"unsigned": false,
|
|
965
1499
|
"autoincrement": false,
|
|
966
1500
|
"primary": false,
|
|
967
|
-
"nullable":
|
|
968
|
-
"
|
|
1501
|
+
"nullable": true,
|
|
1502
|
+
"unique": false,
|
|
1503
|
+
"length": null,
|
|
1504
|
+
"precision": null,
|
|
1505
|
+
"scale": null,
|
|
1506
|
+
"default": null,
|
|
1507
|
+
"comment": null,
|
|
1508
|
+
"enumItems": [],
|
|
969
1509
|
"mappedType": "uuid"
|
|
970
1510
|
},
|
|
971
|
-
"
|
|
972
|
-
"name": "
|
|
973
|
-
"type": "
|
|
1511
|
+
"created_at": {
|
|
1512
|
+
"name": "created_at",
|
|
1513
|
+
"type": "timestamptz(6)",
|
|
974
1514
|
"unsigned": false,
|
|
975
1515
|
"autoincrement": false,
|
|
976
1516
|
"primary": false,
|
|
977
1517
|
"nullable": false,
|
|
978
|
-
"
|
|
1518
|
+
"unique": false,
|
|
1519
|
+
"length": 6,
|
|
1520
|
+
"precision": null,
|
|
1521
|
+
"scale": null,
|
|
1522
|
+
"default": null,
|
|
1523
|
+
"comment": null,
|
|
1524
|
+
"enumItems": [],
|
|
1525
|
+
"mappedType": "datetime"
|
|
979
1526
|
},
|
|
980
|
-
"
|
|
981
|
-
"name": "
|
|
982
|
-
"type": "
|
|
1527
|
+
"deleted_at": {
|
|
1528
|
+
"name": "deleted_at",
|
|
1529
|
+
"type": "timestamptz(6)",
|
|
983
1530
|
"unsigned": false,
|
|
984
1531
|
"autoincrement": false,
|
|
985
1532
|
"primary": false,
|
|
986
|
-
"nullable":
|
|
987
|
-
"
|
|
1533
|
+
"nullable": true,
|
|
1534
|
+
"unique": false,
|
|
1535
|
+
"length": 6,
|
|
1536
|
+
"precision": null,
|
|
1537
|
+
"scale": null,
|
|
1538
|
+
"default": null,
|
|
1539
|
+
"comment": null,
|
|
1540
|
+
"enumItems": [],
|
|
1541
|
+
"mappedType": "datetime"
|
|
988
1542
|
},
|
|
989
|
-
"
|
|
990
|
-
"name": "
|
|
1543
|
+
"description": {
|
|
1544
|
+
"name": "description",
|
|
1545
|
+
"type": "text",
|
|
1546
|
+
"unsigned": false,
|
|
1547
|
+
"autoincrement": false,
|
|
1548
|
+
"primary": false,
|
|
1549
|
+
"nullable": true,
|
|
1550
|
+
"unique": false,
|
|
1551
|
+
"length": null,
|
|
1552
|
+
"precision": null,
|
|
1553
|
+
"scale": null,
|
|
1554
|
+
"default": null,
|
|
1555
|
+
"comment": null,
|
|
1556
|
+
"enumItems": [],
|
|
1557
|
+
"mappedType": "text"
|
|
1558
|
+
},
|
|
1559
|
+
"display_name": {
|
|
1560
|
+
"name": "display_name",
|
|
991
1561
|
"type": "text",
|
|
992
1562
|
"unsigned": false,
|
|
993
1563
|
"autoincrement": false,
|
|
994
1564
|
"primary": false,
|
|
995
1565
|
"nullable": false,
|
|
1566
|
+
"unique": false,
|
|
1567
|
+
"length": null,
|
|
1568
|
+
"precision": null,
|
|
1569
|
+
"scale": null,
|
|
1570
|
+
"default": null,
|
|
1571
|
+
"comment": null,
|
|
1572
|
+
"enumItems": [],
|
|
996
1573
|
"mappedType": "text"
|
|
997
1574
|
},
|
|
998
|
-
"
|
|
999
|
-
"name": "
|
|
1575
|
+
"id": {
|
|
1576
|
+
"name": "id",
|
|
1000
1577
|
"type": "uuid",
|
|
1001
1578
|
"unsigned": false,
|
|
1002
1579
|
"autoincrement": false,
|
|
1003
|
-
"primary":
|
|
1004
|
-
"nullable":
|
|
1580
|
+
"primary": true,
|
|
1581
|
+
"nullable": false,
|
|
1582
|
+
"unique": false,
|
|
1583
|
+
"length": null,
|
|
1584
|
+
"precision": null,
|
|
1585
|
+
"scale": null,
|
|
1586
|
+
"default": "gen_random_uuid()",
|
|
1587
|
+
"comment": null,
|
|
1588
|
+
"enumItems": [],
|
|
1005
1589
|
"mappedType": "uuid"
|
|
1006
1590
|
},
|
|
1007
|
-
"
|
|
1008
|
-
"name": "
|
|
1009
|
-
"type": "
|
|
1591
|
+
"is_active": {
|
|
1592
|
+
"name": "is_active",
|
|
1593
|
+
"type": "boolean",
|
|
1010
1594
|
"unsigned": false,
|
|
1011
1595
|
"autoincrement": false,
|
|
1012
1596
|
"primary": false,
|
|
1013
|
-
"nullable":
|
|
1014
|
-
"
|
|
1597
|
+
"nullable": false,
|
|
1598
|
+
"unique": false,
|
|
1599
|
+
"length": null,
|
|
1600
|
+
"precision": null,
|
|
1601
|
+
"scale": null,
|
|
1602
|
+
"default": "true",
|
|
1603
|
+
"comment": null,
|
|
1604
|
+
"enumItems": [],
|
|
1605
|
+
"mappedType": "boolean"
|
|
1015
1606
|
},
|
|
1016
|
-
"
|
|
1017
|
-
"name": "
|
|
1018
|
-
"type": "
|
|
1607
|
+
"organization_id": {
|
|
1608
|
+
"name": "organization_id",
|
|
1609
|
+
"type": "uuid",
|
|
1019
1610
|
"unsigned": false,
|
|
1020
1611
|
"autoincrement": false,
|
|
1021
1612
|
"primary": false,
|
|
1022
|
-
"nullable":
|
|
1023
|
-
"
|
|
1613
|
+
"nullable": false,
|
|
1614
|
+
"unique": false,
|
|
1615
|
+
"length": null,
|
|
1616
|
+
"precision": null,
|
|
1617
|
+
"scale": null,
|
|
1618
|
+
"default": null,
|
|
1619
|
+
"comment": null,
|
|
1620
|
+
"enumItems": [],
|
|
1621
|
+
"mappedType": "uuid"
|
|
1024
1622
|
},
|
|
1025
|
-
"
|
|
1026
|
-
"name": "
|
|
1027
|
-
"type": "
|
|
1623
|
+
"role_ids": {
|
|
1624
|
+
"name": "role_ids",
|
|
1625
|
+
"type": "jsonb",
|
|
1028
1626
|
"unsigned": false,
|
|
1029
1627
|
"autoincrement": false,
|
|
1030
1628
|
"primary": false,
|
|
1031
1629
|
"nullable": false,
|
|
1032
|
-
"
|
|
1033
|
-
"
|
|
1630
|
+
"unique": false,
|
|
1631
|
+
"length": null,
|
|
1632
|
+
"precision": null,
|
|
1633
|
+
"scale": null,
|
|
1634
|
+
"default": "'[]'",
|
|
1635
|
+
"comment": null,
|
|
1636
|
+
"enumItems": [],
|
|
1637
|
+
"mappedType": "json"
|
|
1034
1638
|
},
|
|
1035
|
-
"
|
|
1036
|
-
"name": "
|
|
1037
|
-
"type": "
|
|
1639
|
+
"tags": {
|
|
1640
|
+
"name": "tags",
|
|
1641
|
+
"type": "jsonb",
|
|
1038
1642
|
"unsigned": false,
|
|
1039
1643
|
"autoincrement": false,
|
|
1040
1644
|
"primary": false,
|
|
1041
1645
|
"nullable": false,
|
|
1042
|
-
"
|
|
1043
|
-
"
|
|
1646
|
+
"unique": false,
|
|
1647
|
+
"length": null,
|
|
1648
|
+
"precision": null,
|
|
1649
|
+
"scale": null,
|
|
1650
|
+
"default": "'[]'",
|
|
1651
|
+
"comment": null,
|
|
1652
|
+
"enumItems": [],
|
|
1653
|
+
"mappedType": "json"
|
|
1044
1654
|
},
|
|
1045
|
-
"
|
|
1046
|
-
"name": "
|
|
1047
|
-
"type": "
|
|
1655
|
+
"team_id": {
|
|
1656
|
+
"name": "team_id",
|
|
1657
|
+
"type": "uuid",
|
|
1048
1658
|
"unsigned": false,
|
|
1049
1659
|
"autoincrement": false,
|
|
1050
1660
|
"primary": false,
|
|
1051
1661
|
"nullable": true,
|
|
1662
|
+
"unique": false,
|
|
1663
|
+
"length": null,
|
|
1664
|
+
"precision": null,
|
|
1665
|
+
"scale": null,
|
|
1666
|
+
"default": null,
|
|
1667
|
+
"comment": null,
|
|
1668
|
+
"enumItems": [],
|
|
1669
|
+
"mappedType": "uuid"
|
|
1670
|
+
},
|
|
1671
|
+
"tenant_id": {
|
|
1672
|
+
"name": "tenant_id",
|
|
1673
|
+
"type": "uuid",
|
|
1674
|
+
"unsigned": false,
|
|
1675
|
+
"autoincrement": false,
|
|
1676
|
+
"primary": false,
|
|
1677
|
+
"nullable": false,
|
|
1678
|
+
"unique": false,
|
|
1679
|
+
"length": null,
|
|
1680
|
+
"precision": null,
|
|
1681
|
+
"scale": null,
|
|
1682
|
+
"default": null,
|
|
1683
|
+
"comment": null,
|
|
1684
|
+
"enumItems": [],
|
|
1685
|
+
"mappedType": "uuid"
|
|
1686
|
+
},
|
|
1687
|
+
"updated_at": {
|
|
1688
|
+
"name": "updated_at",
|
|
1689
|
+
"type": "timestamptz(6)",
|
|
1690
|
+
"unsigned": false,
|
|
1691
|
+
"autoincrement": false,
|
|
1692
|
+
"primary": false,
|
|
1693
|
+
"nullable": false,
|
|
1694
|
+
"unique": false,
|
|
1052
1695
|
"length": 6,
|
|
1696
|
+
"precision": null,
|
|
1697
|
+
"scale": null,
|
|
1698
|
+
"default": null,
|
|
1699
|
+
"comment": null,
|
|
1700
|
+
"enumItems": [],
|
|
1053
1701
|
"mappedType": "datetime"
|
|
1054
1702
|
},
|
|
1055
|
-
"
|
|
1056
|
-
"name": "
|
|
1703
|
+
"user_id": {
|
|
1704
|
+
"name": "user_id",
|
|
1057
1705
|
"type": "uuid",
|
|
1058
1706
|
"unsigned": false,
|
|
1059
1707
|
"autoincrement": false,
|
|
1060
1708
|
"primary": false,
|
|
1061
|
-
"nullable":
|
|
1709
|
+
"nullable": true,
|
|
1710
|
+
"unique": false,
|
|
1711
|
+
"length": null,
|
|
1712
|
+
"precision": null,
|
|
1713
|
+
"scale": null,
|
|
1714
|
+
"default": null,
|
|
1715
|
+
"comment": null,
|
|
1716
|
+
"enumItems": [],
|
|
1062
1717
|
"mappedType": "uuid"
|
|
1063
1718
|
}
|
|
1064
1719
|
},
|
|
1065
|
-
"name": "staff_team_member_comments",
|
|
1066
|
-
"schema": "public",
|
|
1067
1720
|
"indexes": [
|
|
1068
1721
|
{
|
|
1069
|
-
"keyName": "staff_team_member_comments_tenant_org_idx",
|
|
1070
1722
|
"columnNames": [
|
|
1071
|
-
"
|
|
1072
|
-
"organization_id"
|
|
1723
|
+
"id"
|
|
1073
1724
|
],
|
|
1074
|
-
"composite":
|
|
1075
|
-
"constraint":
|
|
1076
|
-
"
|
|
1077
|
-
"
|
|
1725
|
+
"composite": false,
|
|
1726
|
+
"constraint": true,
|
|
1727
|
+
"keyName": "staff_team_members_pkey",
|
|
1728
|
+
"primary": true,
|
|
1729
|
+
"unique": true
|
|
1078
1730
|
},
|
|
1079
1731
|
{
|
|
1080
|
-
"keyName": "staff_team_member_comments_member_idx",
|
|
1081
1732
|
"columnNames": [
|
|
1082
|
-
"
|
|
1733
|
+
"tenant_id",
|
|
1734
|
+
"organization_id"
|
|
1083
1735
|
],
|
|
1084
|
-
"composite":
|
|
1736
|
+
"composite": true,
|
|
1085
1737
|
"constraint": false,
|
|
1738
|
+
"keyName": "staff_team_members_tenant_org_idx",
|
|
1086
1739
|
"primary": false,
|
|
1087
1740
|
"unique": false
|
|
1088
|
-
},
|
|
1089
|
-
{
|
|
1090
|
-
"keyName": "staff_team_member_comments_pkey",
|
|
1091
|
-
"columnNames": [
|
|
1092
|
-
"id"
|
|
1093
|
-
],
|
|
1094
|
-
"composite": false,
|
|
1095
|
-
"constraint": true,
|
|
1096
|
-
"primary": true,
|
|
1097
|
-
"unique": true
|
|
1098
1741
|
}
|
|
1099
1742
|
],
|
|
1100
1743
|
"checks": [],
|
|
1101
|
-
"foreignKeys": {
|
|
1102
|
-
|
|
1103
|
-
"constraintName": "staff_team_member_comments_member_id_foreign",
|
|
1104
|
-
"columnNames": [
|
|
1105
|
-
"member_id"
|
|
1106
|
-
],
|
|
1107
|
-
"localTableName": "public.staff_team_member_comments",
|
|
1108
|
-
"referencedColumnNames": [
|
|
1109
|
-
"id"
|
|
1110
|
-
],
|
|
1111
|
-
"referencedTableName": "public.staff_team_members",
|
|
1112
|
-
"updateRule": "cascade"
|
|
1113
|
-
}
|
|
1114
|
-
},
|
|
1115
|
-
"nativeEnums": {}
|
|
1744
|
+
"foreignKeys": {},
|
|
1745
|
+
"comment": null
|
|
1116
1746
|
},
|
|
1117
1747
|
{
|
|
1118
|
-
"
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1748
|
+
"name": "staff_team_roles",
|
|
1749
|
+
"schema": "public",
|
|
1750
|
+
"columns": {
|
|
1751
|
+
"appearance_color": {
|
|
1752
|
+
"name": "appearance_color",
|
|
1753
|
+
"type": "text",
|
|
1122
1754
|
"unsigned": false,
|
|
1123
1755
|
"autoincrement": false,
|
|
1124
1756
|
"primary": false,
|
|
1125
|
-
"nullable":
|
|
1126
|
-
"
|
|
1127
|
-
"
|
|
1757
|
+
"nullable": true,
|
|
1758
|
+
"unique": false,
|
|
1759
|
+
"length": null,
|
|
1760
|
+
"precision": null,
|
|
1761
|
+
"scale": null,
|
|
1762
|
+
"default": null,
|
|
1763
|
+
"comment": null,
|
|
1764
|
+
"enumItems": [],
|
|
1765
|
+
"mappedType": "text"
|
|
1128
1766
|
},
|
|
1129
|
-
"
|
|
1130
|
-
"name": "
|
|
1131
|
-
"type": "
|
|
1767
|
+
"appearance_icon": {
|
|
1768
|
+
"name": "appearance_icon",
|
|
1769
|
+
"type": "text",
|
|
1132
1770
|
"unsigned": false,
|
|
1133
1771
|
"autoincrement": false,
|
|
1134
1772
|
"primary": false,
|
|
1135
|
-
"nullable":
|
|
1136
|
-
"
|
|
1773
|
+
"nullable": true,
|
|
1774
|
+
"unique": false,
|
|
1775
|
+
"length": null,
|
|
1776
|
+
"precision": null,
|
|
1777
|
+
"scale": null,
|
|
1778
|
+
"default": null,
|
|
1779
|
+
"comment": null,
|
|
1780
|
+
"enumItems": [],
|
|
1781
|
+
"mappedType": "text"
|
|
1137
1782
|
},
|
|
1138
|
-
"
|
|
1139
|
-
"name": "
|
|
1140
|
-
"type": "
|
|
1783
|
+
"created_at": {
|
|
1784
|
+
"name": "created_at",
|
|
1785
|
+
"type": "timestamptz(6)",
|
|
1141
1786
|
"unsigned": false,
|
|
1142
1787
|
"autoincrement": false,
|
|
1143
1788
|
"primary": false,
|
|
1144
1789
|
"nullable": false,
|
|
1145
|
-
"
|
|
1790
|
+
"unique": false,
|
|
1791
|
+
"length": 6,
|
|
1792
|
+
"precision": null,
|
|
1793
|
+
"scale": null,
|
|
1794
|
+
"default": null,
|
|
1795
|
+
"comment": null,
|
|
1796
|
+
"enumItems": [],
|
|
1797
|
+
"mappedType": "datetime"
|
|
1146
1798
|
},
|
|
1147
|
-
"
|
|
1148
|
-
"name": "
|
|
1149
|
-
"type": "
|
|
1799
|
+
"deleted_at": {
|
|
1800
|
+
"name": "deleted_at",
|
|
1801
|
+
"type": "timestamptz(6)",
|
|
1150
1802
|
"unsigned": false,
|
|
1151
1803
|
"autoincrement": false,
|
|
1152
1804
|
"primary": false,
|
|
1153
|
-
"nullable":
|
|
1154
|
-
"
|
|
1805
|
+
"nullable": true,
|
|
1806
|
+
"unique": false,
|
|
1807
|
+
"length": 6,
|
|
1808
|
+
"precision": null,
|
|
1809
|
+
"scale": null,
|
|
1810
|
+
"default": null,
|
|
1811
|
+
"comment": null,
|
|
1812
|
+
"enumItems": [],
|
|
1813
|
+
"mappedType": "datetime"
|
|
1155
1814
|
},
|
|
1156
|
-
"
|
|
1157
|
-
"name": "
|
|
1815
|
+
"description": {
|
|
1816
|
+
"name": "description",
|
|
1158
1817
|
"type": "text",
|
|
1159
1818
|
"unsigned": false,
|
|
1160
1819
|
"autoincrement": false,
|
|
1161
1820
|
"primary": false,
|
|
1162
1821
|
"nullable": true,
|
|
1822
|
+
"unique": false,
|
|
1823
|
+
"length": null,
|
|
1824
|
+
"precision": null,
|
|
1825
|
+
"scale": null,
|
|
1826
|
+
"default": null,
|
|
1827
|
+
"comment": null,
|
|
1828
|
+
"enumItems": [],
|
|
1163
1829
|
"mappedType": "text"
|
|
1164
1830
|
},
|
|
1165
|
-
"
|
|
1166
|
-
"name": "
|
|
1831
|
+
"id": {
|
|
1832
|
+
"name": "id",
|
|
1833
|
+
"type": "uuid",
|
|
1834
|
+
"unsigned": false,
|
|
1835
|
+
"autoincrement": false,
|
|
1836
|
+
"primary": true,
|
|
1837
|
+
"nullable": false,
|
|
1838
|
+
"unique": false,
|
|
1839
|
+
"length": null,
|
|
1840
|
+
"precision": null,
|
|
1841
|
+
"scale": null,
|
|
1842
|
+
"default": "gen_random_uuid()",
|
|
1843
|
+
"comment": null,
|
|
1844
|
+
"enumItems": [],
|
|
1845
|
+
"mappedType": "uuid"
|
|
1846
|
+
},
|
|
1847
|
+
"name": {
|
|
1848
|
+
"name": "name",
|
|
1167
1849
|
"type": "text",
|
|
1168
1850
|
"unsigned": false,
|
|
1169
1851
|
"autoincrement": false,
|
|
1170
1852
|
"primary": false,
|
|
1171
|
-
"nullable":
|
|
1853
|
+
"nullable": false,
|
|
1854
|
+
"unique": false,
|
|
1855
|
+
"length": null,
|
|
1856
|
+
"precision": null,
|
|
1857
|
+
"scale": null,
|
|
1858
|
+
"default": null,
|
|
1859
|
+
"comment": null,
|
|
1860
|
+
"enumItems": [],
|
|
1172
1861
|
"mappedType": "text"
|
|
1173
1862
|
},
|
|
1174
|
-
"
|
|
1175
|
-
"name": "
|
|
1176
|
-
"type": "
|
|
1863
|
+
"organization_id": {
|
|
1864
|
+
"name": "organization_id",
|
|
1865
|
+
"type": "uuid",
|
|
1177
1866
|
"unsigned": false,
|
|
1178
1867
|
"autoincrement": false,
|
|
1179
1868
|
"primary": false,
|
|
1180
1869
|
"nullable": false,
|
|
1181
|
-
"
|
|
1182
|
-
"
|
|
1870
|
+
"unique": false,
|
|
1871
|
+
"length": null,
|
|
1872
|
+
"precision": null,
|
|
1873
|
+
"scale": null,
|
|
1874
|
+
"default": null,
|
|
1875
|
+
"comment": null,
|
|
1876
|
+
"enumItems": [],
|
|
1877
|
+
"mappedType": "uuid"
|
|
1183
1878
|
},
|
|
1184
|
-
"
|
|
1185
|
-
"name": "
|
|
1186
|
-
"type": "
|
|
1879
|
+
"team_id": {
|
|
1880
|
+
"name": "team_id",
|
|
1881
|
+
"type": "uuid",
|
|
1187
1882
|
"unsigned": false,
|
|
1188
1883
|
"autoincrement": false,
|
|
1189
1884
|
"primary": false,
|
|
1190
1885
|
"nullable": true,
|
|
1191
|
-
"
|
|
1192
|
-
"
|
|
1886
|
+
"unique": false,
|
|
1887
|
+
"length": null,
|
|
1888
|
+
"precision": null,
|
|
1889
|
+
"scale": null,
|
|
1890
|
+
"default": null,
|
|
1891
|
+
"comment": null,
|
|
1892
|
+
"enumItems": [],
|
|
1893
|
+
"mappedType": "uuid"
|
|
1193
1894
|
},
|
|
1194
|
-
"
|
|
1195
|
-
"name": "
|
|
1196
|
-
"type": "
|
|
1895
|
+
"tenant_id": {
|
|
1896
|
+
"name": "tenant_id",
|
|
1897
|
+
"type": "uuid",
|
|
1197
1898
|
"unsigned": false,
|
|
1198
1899
|
"autoincrement": false,
|
|
1199
1900
|
"primary": false,
|
|
1200
1901
|
"nullable": false,
|
|
1201
|
-
"
|
|
1202
|
-
"
|
|
1902
|
+
"unique": false,
|
|
1903
|
+
"length": null,
|
|
1904
|
+
"precision": null,
|
|
1905
|
+
"scale": null,
|
|
1906
|
+
"default": null,
|
|
1907
|
+
"comment": null,
|
|
1908
|
+
"enumItems": [],
|
|
1909
|
+
"mappedType": "uuid"
|
|
1203
1910
|
},
|
|
1204
1911
|
"updated_at": {
|
|
1205
1912
|
"name": "updated_at",
|
|
1206
|
-
"type": "timestamptz",
|
|
1913
|
+
"type": "timestamptz(6)",
|
|
1207
1914
|
"unsigned": false,
|
|
1208
1915
|
"autoincrement": false,
|
|
1209
1916
|
"primary": false,
|
|
1210
1917
|
"nullable": false,
|
|
1918
|
+
"unique": false,
|
|
1211
1919
|
"length": 6,
|
|
1920
|
+
"precision": null,
|
|
1921
|
+
"scale": null,
|
|
1922
|
+
"default": null,
|
|
1923
|
+
"comment": null,
|
|
1924
|
+
"enumItems": [],
|
|
1212
1925
|
"mappedType": "datetime"
|
|
1213
|
-
},
|
|
1214
|
-
"member_id": {
|
|
1215
|
-
"name": "member_id",
|
|
1216
|
-
"type": "uuid",
|
|
1217
|
-
"unsigned": false,
|
|
1218
|
-
"autoincrement": false,
|
|
1219
|
-
"primary": false,
|
|
1220
|
-
"nullable": false,
|
|
1221
|
-
"mappedType": "uuid"
|
|
1222
1926
|
}
|
|
1223
1927
|
},
|
|
1224
|
-
"name": "staff_team_member_job_histories",
|
|
1225
|
-
"schema": "public",
|
|
1226
1928
|
"indexes": [
|
|
1227
1929
|
{
|
|
1228
|
-
"keyName": "staff_team_member_job_histories_member_start_idx",
|
|
1229
1930
|
"columnNames": [
|
|
1230
|
-
"
|
|
1231
|
-
"start_date"
|
|
1931
|
+
"id"
|
|
1232
1932
|
],
|
|
1233
|
-
"composite":
|
|
1234
|
-
"constraint":
|
|
1235
|
-
"
|
|
1236
|
-
"
|
|
1933
|
+
"composite": false,
|
|
1934
|
+
"constraint": true,
|
|
1935
|
+
"keyName": "staff_team_roles_pkey",
|
|
1936
|
+
"primary": true,
|
|
1937
|
+
"unique": true
|
|
1237
1938
|
},
|
|
1238
1939
|
{
|
|
1239
|
-
"keyName": "staff_team_member_job_histories_tenant_org_idx",
|
|
1240
1940
|
"columnNames": [
|
|
1241
1941
|
"tenant_id",
|
|
1242
1942
|
"organization_id"
|
|
1243
1943
|
],
|
|
1244
1944
|
"composite": true,
|
|
1245
1945
|
"constraint": false,
|
|
1946
|
+
"keyName": "staff_team_roles_tenant_org_idx",
|
|
1246
1947
|
"primary": false,
|
|
1247
1948
|
"unique": false
|
|
1248
|
-
},
|
|
1249
|
-
{
|
|
1250
|
-
"keyName": "staff_team_member_job_histories_member_idx",
|
|
1251
|
-
"columnNames": [
|
|
1252
|
-
"member_id"
|
|
1253
|
-
],
|
|
1254
|
-
"composite": false,
|
|
1255
|
-
"constraint": false,
|
|
1256
|
-
"primary": false,
|
|
1257
|
-
"unique": false
|
|
1258
|
-
},
|
|
1259
|
-
{
|
|
1260
|
-
"keyName": "staff_team_member_job_histories_pkey",
|
|
1261
|
-
"columnNames": [
|
|
1262
|
-
"id"
|
|
1263
|
-
],
|
|
1264
|
-
"composite": false,
|
|
1265
|
-
"constraint": true,
|
|
1266
|
-
"primary": true,
|
|
1267
|
-
"unique": true
|
|
1268
1949
|
}
|
|
1269
1950
|
],
|
|
1270
1951
|
"checks": [],
|
|
1271
|
-
"foreignKeys": {
|
|
1272
|
-
|
|
1273
|
-
"constraintName": "staff_team_member_job_histories_member_id_foreign",
|
|
1274
|
-
"columnNames": [
|
|
1275
|
-
"member_id"
|
|
1276
|
-
],
|
|
1277
|
-
"localTableName": "public.staff_team_member_job_histories",
|
|
1278
|
-
"referencedColumnNames": [
|
|
1279
|
-
"id"
|
|
1280
|
-
],
|
|
1281
|
-
"referencedTableName": "public.staff_team_members",
|
|
1282
|
-
"updateRule": "cascade"
|
|
1283
|
-
}
|
|
1284
|
-
},
|
|
1285
|
-
"nativeEnums": {}
|
|
1952
|
+
"foreignKeys": {},
|
|
1953
|
+
"comment": null
|
|
1286
1954
|
},
|
|
1287
1955
|
{
|
|
1956
|
+
"name": "staff_teams",
|
|
1957
|
+
"schema": "public",
|
|
1288
1958
|
"columns": {
|
|
1289
|
-
"
|
|
1290
|
-
"name": "
|
|
1291
|
-
"type": "
|
|
1959
|
+
"created_at": {
|
|
1960
|
+
"name": "created_at",
|
|
1961
|
+
"type": "timestamptz(6)",
|
|
1292
1962
|
"unsigned": false,
|
|
1293
1963
|
"autoincrement": false,
|
|
1294
1964
|
"primary": false,
|
|
1295
1965
|
"nullable": false,
|
|
1296
|
-
"
|
|
1297
|
-
"
|
|
1966
|
+
"unique": false,
|
|
1967
|
+
"length": 6,
|
|
1968
|
+
"precision": null,
|
|
1969
|
+
"scale": null,
|
|
1970
|
+
"default": null,
|
|
1971
|
+
"comment": null,
|
|
1972
|
+
"enumItems": [],
|
|
1973
|
+
"mappedType": "datetime"
|
|
1298
1974
|
},
|
|
1299
|
-
"
|
|
1300
|
-
"name": "
|
|
1301
|
-
"type": "
|
|
1975
|
+
"deleted_at": {
|
|
1976
|
+
"name": "deleted_at",
|
|
1977
|
+
"type": "timestamptz(6)",
|
|
1302
1978
|
"unsigned": false,
|
|
1303
1979
|
"autoincrement": false,
|
|
1304
1980
|
"primary": false,
|
|
1305
|
-
"nullable":
|
|
1306
|
-
"
|
|
1981
|
+
"nullable": true,
|
|
1982
|
+
"unique": false,
|
|
1983
|
+
"length": 6,
|
|
1984
|
+
"precision": null,
|
|
1985
|
+
"scale": null,
|
|
1986
|
+
"default": null,
|
|
1987
|
+
"comment": null,
|
|
1988
|
+
"enumItems": [],
|
|
1989
|
+
"mappedType": "datetime"
|
|
1307
1990
|
},
|
|
1308
|
-
"
|
|
1309
|
-
"name": "
|
|
1310
|
-
"type": "
|
|
1991
|
+
"description": {
|
|
1992
|
+
"name": "description",
|
|
1993
|
+
"type": "text",
|
|
1311
1994
|
"unsigned": false,
|
|
1312
1995
|
"autoincrement": false,
|
|
1313
1996
|
"primary": false,
|
|
1314
|
-
"nullable":
|
|
1315
|
-
"
|
|
1997
|
+
"nullable": true,
|
|
1998
|
+
"unique": false,
|
|
1999
|
+
"length": null,
|
|
2000
|
+
"precision": null,
|
|
2001
|
+
"scale": null,
|
|
2002
|
+
"default": null,
|
|
2003
|
+
"comment": null,
|
|
2004
|
+
"enumItems": [],
|
|
2005
|
+
"mappedType": "text"
|
|
1316
2006
|
},
|
|
1317
|
-
"
|
|
1318
|
-
"name": "
|
|
2007
|
+
"id": {
|
|
2008
|
+
"name": "id",
|
|
1319
2009
|
"type": "uuid",
|
|
1320
2010
|
"unsigned": false,
|
|
1321
2011
|
"autoincrement": false,
|
|
1322
|
-
"primary":
|
|
1323
|
-
"nullable":
|
|
2012
|
+
"primary": true,
|
|
2013
|
+
"nullable": false,
|
|
2014
|
+
"unique": false,
|
|
2015
|
+
"length": null,
|
|
2016
|
+
"precision": null,
|
|
2017
|
+
"scale": null,
|
|
2018
|
+
"default": "gen_random_uuid()",
|
|
2019
|
+
"comment": null,
|
|
2020
|
+
"enumItems": [],
|
|
1324
2021
|
"mappedType": "uuid"
|
|
1325
2022
|
},
|
|
1326
|
-
"
|
|
1327
|
-
"name": "
|
|
1328
|
-
"type": "
|
|
2023
|
+
"is_active": {
|
|
2024
|
+
"name": "is_active",
|
|
2025
|
+
"type": "boolean",
|
|
1329
2026
|
"unsigned": false,
|
|
1330
2027
|
"autoincrement": false,
|
|
1331
2028
|
"primary": false,
|
|
1332
2029
|
"nullable": false,
|
|
1333
|
-
"
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
"
|
|
1337
|
-
"
|
|
1338
|
-
"
|
|
1339
|
-
"
|
|
1340
|
-
"
|
|
1341
|
-
"nullable": true,
|
|
1342
|
-
"mappedType": "text"
|
|
2030
|
+
"unique": false,
|
|
2031
|
+
"length": null,
|
|
2032
|
+
"precision": null,
|
|
2033
|
+
"scale": null,
|
|
2034
|
+
"default": "true",
|
|
2035
|
+
"comment": null,
|
|
2036
|
+
"enumItems": [],
|
|
2037
|
+
"mappedType": "boolean"
|
|
1343
2038
|
},
|
|
1344
|
-
"
|
|
1345
|
-
"name": "
|
|
2039
|
+
"name": {
|
|
2040
|
+
"name": "name",
|
|
1346
2041
|
"type": "text",
|
|
1347
2042
|
"unsigned": false,
|
|
1348
2043
|
"autoincrement": false,
|
|
1349
2044
|
"primary": false,
|
|
1350
|
-
"nullable":
|
|
2045
|
+
"nullable": false,
|
|
2046
|
+
"unique": false,
|
|
2047
|
+
"length": null,
|
|
2048
|
+
"precision": null,
|
|
2049
|
+
"scale": null,
|
|
2050
|
+
"default": null,
|
|
2051
|
+
"comment": null,
|
|
2052
|
+
"enumItems": [],
|
|
1351
2053
|
"mappedType": "text"
|
|
1352
2054
|
},
|
|
1353
|
-
"
|
|
1354
|
-
"name": "
|
|
1355
|
-
"type": "
|
|
2055
|
+
"organization_id": {
|
|
2056
|
+
"name": "organization_id",
|
|
2057
|
+
"type": "uuid",
|
|
1356
2058
|
"unsigned": false,
|
|
1357
2059
|
"autoincrement": false,
|
|
1358
2060
|
"primary": false,
|
|
1359
|
-
"nullable":
|
|
1360
|
-
"
|
|
2061
|
+
"nullable": false,
|
|
2062
|
+
"unique": false,
|
|
2063
|
+
"length": null,
|
|
2064
|
+
"precision": null,
|
|
2065
|
+
"scale": null,
|
|
2066
|
+
"default": null,
|
|
2067
|
+
"comment": null,
|
|
2068
|
+
"enumItems": [],
|
|
2069
|
+
"mappedType": "uuid"
|
|
1361
2070
|
},
|
|
1362
|
-
"
|
|
1363
|
-
"name": "
|
|
1364
|
-
"type": "
|
|
2071
|
+
"tenant_id": {
|
|
2072
|
+
"name": "tenant_id",
|
|
2073
|
+
"type": "uuid",
|
|
1365
2074
|
"unsigned": false,
|
|
1366
2075
|
"autoincrement": false,
|
|
1367
2076
|
"primary": false,
|
|
1368
2077
|
"nullable": false,
|
|
1369
|
-
"
|
|
1370
|
-
"
|
|
2078
|
+
"unique": false,
|
|
2079
|
+
"length": null,
|
|
2080
|
+
"precision": null,
|
|
2081
|
+
"scale": null,
|
|
2082
|
+
"default": null,
|
|
2083
|
+
"comment": null,
|
|
2084
|
+
"enumItems": [],
|
|
2085
|
+
"mappedType": "uuid"
|
|
1371
2086
|
},
|
|
1372
2087
|
"updated_at": {
|
|
1373
2088
|
"name": "updated_at",
|
|
1374
|
-
"type": "timestamptz",
|
|
2089
|
+
"type": "timestamptz(6)",
|
|
1375
2090
|
"unsigned": false,
|
|
1376
2091
|
"autoincrement": false,
|
|
1377
2092
|
"primary": false,
|
|
1378
2093
|
"nullable": false,
|
|
2094
|
+
"unique": false,
|
|
1379
2095
|
"length": 6,
|
|
1380
|
-
"
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
"
|
|
1384
|
-
"
|
|
1385
|
-
"unsigned": false,
|
|
1386
|
-
"autoincrement": false,
|
|
1387
|
-
"primary": false,
|
|
1388
|
-
"nullable": true,
|
|
1389
|
-
"length": 6,
|
|
2096
|
+
"precision": null,
|
|
2097
|
+
"scale": null,
|
|
2098
|
+
"default": null,
|
|
2099
|
+
"comment": null,
|
|
2100
|
+
"enumItems": [],
|
|
1390
2101
|
"mappedType": "datetime"
|
|
1391
2102
|
}
|
|
1392
2103
|
},
|
|
1393
|
-
"name": "staff_team_roles",
|
|
1394
|
-
"schema": "public",
|
|
1395
2104
|
"indexes": [
|
|
1396
2105
|
{
|
|
1397
|
-
"
|
|
2106
|
+
"columnNames": [
|
|
2107
|
+
"id"
|
|
2108
|
+
],
|
|
2109
|
+
"composite": false,
|
|
2110
|
+
"constraint": true,
|
|
2111
|
+
"keyName": "staff_teams_pkey",
|
|
2112
|
+
"primary": true,
|
|
2113
|
+
"unique": true
|
|
2114
|
+
},
|
|
2115
|
+
{
|
|
1398
2116
|
"columnNames": [
|
|
1399
2117
|
"tenant_id",
|
|
1400
2118
|
"organization_id"
|
|
1401
2119
|
],
|
|
1402
2120
|
"composite": true,
|
|
1403
2121
|
"constraint": false,
|
|
2122
|
+
"keyName": "staff_teams_tenant_org_idx",
|
|
1404
2123
|
"primary": false,
|
|
1405
2124
|
"unique": false
|
|
1406
|
-
},
|
|
1407
|
-
{
|
|
1408
|
-
"keyName": "staff_team_roles_pkey",
|
|
1409
|
-
"columnNames": [
|
|
1410
|
-
"id"
|
|
1411
|
-
],
|
|
1412
|
-
"composite": false,
|
|
1413
|
-
"constraint": true,
|
|
1414
|
-
"primary": true,
|
|
1415
|
-
"unique": true
|
|
1416
2125
|
}
|
|
1417
2126
|
],
|
|
1418
2127
|
"checks": [],
|
|
1419
2128
|
"foreignKeys": {},
|
|
1420
|
-
"
|
|
2129
|
+
"comment": null
|
|
1421
2130
|
}
|
|
1422
2131
|
],
|
|
2132
|
+
"views": [],
|
|
1423
2133
|
"nativeEnums": {}
|
|
1424
|
-
}
|
|
2134
|
+
}
|