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