@open-mercato/core 0.6.1-develop.3291.1.6fad645fd0 → 0.6.1
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 +16 -8
- 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,56 +1,76 @@
|
|
|
1
1
|
{
|
|
2
|
+
"name": "public",
|
|
2
3
|
"namespaces": [
|
|
3
4
|
"public"
|
|
4
5
|
],
|
|
5
|
-
"name": "public",
|
|
6
6
|
"tables": [
|
|
7
7
|
{
|
|
8
|
+
"name": "perspectives",
|
|
9
|
+
"schema": "public",
|
|
8
10
|
"columns": {
|
|
9
|
-
"
|
|
10
|
-
"name": "
|
|
11
|
-
"type": "
|
|
12
|
-
"unsigned": false,
|
|
13
|
-
"autoincrement": false,
|
|
14
|
-
"primary": false,
|
|
15
|
-
"nullable": false,
|
|
16
|
-
"default": "gen_random_uuid()",
|
|
17
|
-
"mappedType": "uuid"
|
|
18
|
-
},
|
|
19
|
-
"user_id": {
|
|
20
|
-
"name": "user_id",
|
|
21
|
-
"type": "uuid",
|
|
11
|
+
"created_at": {
|
|
12
|
+
"name": "created_at",
|
|
13
|
+
"type": "timestamptz(6)",
|
|
22
14
|
"unsigned": false,
|
|
23
15
|
"autoincrement": false,
|
|
24
16
|
"primary": false,
|
|
25
17
|
"nullable": false,
|
|
26
|
-
"
|
|
18
|
+
"unique": false,
|
|
19
|
+
"length": 6,
|
|
20
|
+
"precision": null,
|
|
21
|
+
"scale": null,
|
|
22
|
+
"default": null,
|
|
23
|
+
"comment": null,
|
|
24
|
+
"enumItems": [],
|
|
25
|
+
"mappedType": "datetime"
|
|
27
26
|
},
|
|
28
|
-
"
|
|
29
|
-
"name": "
|
|
30
|
-
"type": "
|
|
27
|
+
"deleted_at": {
|
|
28
|
+
"name": "deleted_at",
|
|
29
|
+
"type": "timestamptz(6)",
|
|
31
30
|
"unsigned": false,
|
|
32
31
|
"autoincrement": false,
|
|
33
32
|
"primary": false,
|
|
34
33
|
"nullable": true,
|
|
35
|
-
"
|
|
34
|
+
"unique": false,
|
|
35
|
+
"length": 6,
|
|
36
|
+
"precision": null,
|
|
37
|
+
"scale": null,
|
|
38
|
+
"default": null,
|
|
39
|
+
"comment": null,
|
|
40
|
+
"enumItems": [],
|
|
41
|
+
"mappedType": "datetime"
|
|
36
42
|
},
|
|
37
|
-
"
|
|
38
|
-
"name": "
|
|
43
|
+
"id": {
|
|
44
|
+
"name": "id",
|
|
39
45
|
"type": "uuid",
|
|
40
46
|
"unsigned": false,
|
|
41
47
|
"autoincrement": false,
|
|
42
|
-
"primary":
|
|
43
|
-
"nullable":
|
|
48
|
+
"primary": true,
|
|
49
|
+
"nullable": false,
|
|
50
|
+
"unique": false,
|
|
51
|
+
"length": null,
|
|
52
|
+
"precision": null,
|
|
53
|
+
"scale": null,
|
|
54
|
+
"default": "gen_random_uuid()",
|
|
55
|
+
"comment": null,
|
|
56
|
+
"enumItems": [],
|
|
44
57
|
"mappedType": "uuid"
|
|
45
58
|
},
|
|
46
|
-
"
|
|
47
|
-
"name": "
|
|
48
|
-
"type": "
|
|
59
|
+
"is_default": {
|
|
60
|
+
"name": "is_default",
|
|
61
|
+
"type": "boolean",
|
|
49
62
|
"unsigned": false,
|
|
50
63
|
"autoincrement": false,
|
|
51
64
|
"primary": false,
|
|
52
65
|
"nullable": false,
|
|
53
|
-
"
|
|
66
|
+
"unique": false,
|
|
67
|
+
"length": null,
|
|
68
|
+
"precision": null,
|
|
69
|
+
"scale": null,
|
|
70
|
+
"default": "false",
|
|
71
|
+
"comment": null,
|
|
72
|
+
"enumItems": [],
|
|
73
|
+
"mappedType": "boolean"
|
|
54
74
|
},
|
|
55
75
|
"name": {
|
|
56
76
|
"name": "name",
|
|
@@ -59,8 +79,31 @@
|
|
|
59
79
|
"autoincrement": false,
|
|
60
80
|
"primary": false,
|
|
61
81
|
"nullable": false,
|
|
82
|
+
"unique": false,
|
|
83
|
+
"length": null,
|
|
84
|
+
"precision": null,
|
|
85
|
+
"scale": null,
|
|
86
|
+
"default": null,
|
|
87
|
+
"comment": null,
|
|
88
|
+
"enumItems": [],
|
|
62
89
|
"mappedType": "text"
|
|
63
90
|
},
|
|
91
|
+
"organization_id": {
|
|
92
|
+
"name": "organization_id",
|
|
93
|
+
"type": "uuid",
|
|
94
|
+
"unsigned": false,
|
|
95
|
+
"autoincrement": false,
|
|
96
|
+
"primary": false,
|
|
97
|
+
"nullable": true,
|
|
98
|
+
"unique": false,
|
|
99
|
+
"length": null,
|
|
100
|
+
"precision": null,
|
|
101
|
+
"scale": null,
|
|
102
|
+
"default": null,
|
|
103
|
+
"comment": null,
|
|
104
|
+
"enumItems": [],
|
|
105
|
+
"mappedType": "uuid"
|
|
106
|
+
},
|
|
64
107
|
"settings_json": {
|
|
65
108
|
"name": "settings_json",
|
|
66
109
|
"type": "jsonb",
|
|
@@ -68,67 +111,92 @@
|
|
|
68
111
|
"autoincrement": false,
|
|
69
112
|
"primary": false,
|
|
70
113
|
"nullable": false,
|
|
114
|
+
"unique": false,
|
|
115
|
+
"length": null,
|
|
116
|
+
"precision": null,
|
|
117
|
+
"scale": null,
|
|
118
|
+
"default": null,
|
|
119
|
+
"comment": null,
|
|
120
|
+
"enumItems": [],
|
|
71
121
|
"mappedType": "json"
|
|
72
122
|
},
|
|
73
|
-
"
|
|
74
|
-
"name": "
|
|
75
|
-
"type": "
|
|
123
|
+
"table_id": {
|
|
124
|
+
"name": "table_id",
|
|
125
|
+
"type": "text",
|
|
76
126
|
"unsigned": false,
|
|
77
127
|
"autoincrement": false,
|
|
78
128
|
"primary": false,
|
|
79
129
|
"nullable": false,
|
|
80
|
-
"
|
|
81
|
-
"
|
|
130
|
+
"unique": false,
|
|
131
|
+
"length": null,
|
|
132
|
+
"precision": null,
|
|
133
|
+
"scale": null,
|
|
134
|
+
"default": null,
|
|
135
|
+
"comment": null,
|
|
136
|
+
"enumItems": [],
|
|
137
|
+
"mappedType": "text"
|
|
82
138
|
},
|
|
83
|
-
"
|
|
84
|
-
"name": "
|
|
85
|
-
"type": "
|
|
139
|
+
"tenant_id": {
|
|
140
|
+
"name": "tenant_id",
|
|
141
|
+
"type": "uuid",
|
|
86
142
|
"unsigned": false,
|
|
87
143
|
"autoincrement": false,
|
|
88
144
|
"primary": false,
|
|
89
|
-
"nullable":
|
|
90
|
-
"
|
|
91
|
-
"
|
|
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": "uuid"
|
|
92
154
|
},
|
|
93
155
|
"updated_at": {
|
|
94
156
|
"name": "updated_at",
|
|
95
|
-
"type": "timestamptz",
|
|
157
|
+
"type": "timestamptz(6)",
|
|
96
158
|
"unsigned": false,
|
|
97
159
|
"autoincrement": false,
|
|
98
160
|
"primary": false,
|
|
99
161
|
"nullable": true,
|
|
162
|
+
"unique": false,
|
|
100
163
|
"length": 6,
|
|
164
|
+
"precision": null,
|
|
165
|
+
"scale": null,
|
|
166
|
+
"default": null,
|
|
167
|
+
"comment": null,
|
|
168
|
+
"enumItems": [],
|
|
101
169
|
"mappedType": "datetime"
|
|
102
170
|
},
|
|
103
|
-
"
|
|
104
|
-
"name": "
|
|
105
|
-
"type": "
|
|
171
|
+
"user_id": {
|
|
172
|
+
"name": "user_id",
|
|
173
|
+
"type": "uuid",
|
|
106
174
|
"unsigned": false,
|
|
107
175
|
"autoincrement": false,
|
|
108
176
|
"primary": false,
|
|
109
|
-
"nullable":
|
|
110
|
-
"
|
|
111
|
-
"
|
|
177
|
+
"nullable": false,
|
|
178
|
+
"unique": true,
|
|
179
|
+
"length": null,
|
|
180
|
+
"precision": null,
|
|
181
|
+
"scale": null,
|
|
182
|
+
"default": null,
|
|
183
|
+
"comment": null,
|
|
184
|
+
"enumItems": [],
|
|
185
|
+
"mappedType": "uuid"
|
|
112
186
|
}
|
|
113
187
|
},
|
|
114
|
-
"name": "perspectives",
|
|
115
|
-
"schema": "public",
|
|
116
188
|
"indexes": [
|
|
117
189
|
{
|
|
118
|
-
"keyName": "perspectives_user_scope_idx",
|
|
119
190
|
"columnNames": [
|
|
120
|
-
"
|
|
121
|
-
"tenant_id",
|
|
122
|
-
"organization_id",
|
|
123
|
-
"table_id"
|
|
191
|
+
"id"
|
|
124
192
|
],
|
|
125
|
-
"composite":
|
|
126
|
-
"constraint":
|
|
127
|
-
"
|
|
128
|
-
"
|
|
193
|
+
"composite": false,
|
|
194
|
+
"constraint": true,
|
|
195
|
+
"keyName": "perspectives_pkey",
|
|
196
|
+
"primary": true,
|
|
197
|
+
"unique": true
|
|
129
198
|
},
|
|
130
199
|
{
|
|
131
|
-
"keyName": "perspectives_user_id_tenant_id_organization_id_ta_2d725_unique",
|
|
132
200
|
"columnNames": [
|
|
133
201
|
"user_id",
|
|
134
202
|
"tenant_id",
|
|
@@ -138,53 +206,111 @@
|
|
|
138
206
|
],
|
|
139
207
|
"composite": true,
|
|
140
208
|
"constraint": true,
|
|
209
|
+
"keyName": "perspectives_user_id_tenant_id_organization_id_ta_0c702_unique",
|
|
141
210
|
"primary": false,
|
|
142
211
|
"unique": true
|
|
143
212
|
},
|
|
144
213
|
{
|
|
145
|
-
"keyName": "perspectives_pkey",
|
|
146
214
|
"columnNames": [
|
|
147
|
-
"
|
|
215
|
+
"user_id",
|
|
216
|
+
"tenant_id",
|
|
217
|
+
"organization_id",
|
|
218
|
+
"table_id"
|
|
148
219
|
],
|
|
149
|
-
"composite":
|
|
150
|
-
"constraint":
|
|
151
|
-
"
|
|
152
|
-
"
|
|
220
|
+
"composite": true,
|
|
221
|
+
"constraint": false,
|
|
222
|
+
"keyName": "perspectives_user_scope_idx",
|
|
223
|
+
"primary": false,
|
|
224
|
+
"unique": false
|
|
153
225
|
}
|
|
154
226
|
],
|
|
155
227
|
"checks": [],
|
|
156
228
|
"foreignKeys": {},
|
|
157
|
-
"
|
|
229
|
+
"comment": null
|
|
158
230
|
},
|
|
159
231
|
{
|
|
232
|
+
"name": "role_perspectives",
|
|
233
|
+
"schema": "public",
|
|
160
234
|
"columns": {
|
|
235
|
+
"created_at": {
|
|
236
|
+
"name": "created_at",
|
|
237
|
+
"type": "timestamptz(6)",
|
|
238
|
+
"unsigned": false,
|
|
239
|
+
"autoincrement": false,
|
|
240
|
+
"primary": false,
|
|
241
|
+
"nullable": false,
|
|
242
|
+
"unique": false,
|
|
243
|
+
"length": 6,
|
|
244
|
+
"precision": null,
|
|
245
|
+
"scale": null,
|
|
246
|
+
"default": null,
|
|
247
|
+
"comment": null,
|
|
248
|
+
"enumItems": [],
|
|
249
|
+
"mappedType": "datetime"
|
|
250
|
+
},
|
|
251
|
+
"deleted_at": {
|
|
252
|
+
"name": "deleted_at",
|
|
253
|
+
"type": "timestamptz(6)",
|
|
254
|
+
"unsigned": false,
|
|
255
|
+
"autoincrement": false,
|
|
256
|
+
"primary": false,
|
|
257
|
+
"nullable": true,
|
|
258
|
+
"unique": false,
|
|
259
|
+
"length": 6,
|
|
260
|
+
"precision": null,
|
|
261
|
+
"scale": null,
|
|
262
|
+
"default": null,
|
|
263
|
+
"comment": null,
|
|
264
|
+
"enumItems": [],
|
|
265
|
+
"mappedType": "datetime"
|
|
266
|
+
},
|
|
161
267
|
"id": {
|
|
162
268
|
"name": "id",
|
|
163
269
|
"type": "uuid",
|
|
164
270
|
"unsigned": false,
|
|
165
271
|
"autoincrement": false,
|
|
166
|
-
"primary":
|
|
272
|
+
"primary": true,
|
|
167
273
|
"nullable": false,
|
|
274
|
+
"unique": false,
|
|
275
|
+
"length": null,
|
|
276
|
+
"precision": null,
|
|
277
|
+
"scale": null,
|
|
168
278
|
"default": "gen_random_uuid()",
|
|
279
|
+
"comment": null,
|
|
280
|
+
"enumItems": [],
|
|
169
281
|
"mappedType": "uuid"
|
|
170
282
|
},
|
|
171
|
-
"
|
|
172
|
-
"name": "
|
|
173
|
-
"type": "
|
|
283
|
+
"is_default": {
|
|
284
|
+
"name": "is_default",
|
|
285
|
+
"type": "boolean",
|
|
174
286
|
"unsigned": false,
|
|
175
287
|
"autoincrement": false,
|
|
176
288
|
"primary": false,
|
|
177
289
|
"nullable": false,
|
|
178
|
-
"
|
|
290
|
+
"unique": false,
|
|
291
|
+
"length": null,
|
|
292
|
+
"precision": null,
|
|
293
|
+
"scale": null,
|
|
294
|
+
"default": "false",
|
|
295
|
+
"comment": null,
|
|
296
|
+
"enumItems": [],
|
|
297
|
+
"mappedType": "boolean"
|
|
179
298
|
},
|
|
180
|
-
"
|
|
181
|
-
"name": "
|
|
182
|
-
"type": "
|
|
299
|
+
"name": {
|
|
300
|
+
"name": "name",
|
|
301
|
+
"type": "text",
|
|
183
302
|
"unsigned": false,
|
|
184
303
|
"autoincrement": false,
|
|
185
304
|
"primary": false,
|
|
186
|
-
"nullable":
|
|
187
|
-
"
|
|
305
|
+
"nullable": false,
|
|
306
|
+
"unique": false,
|
|
307
|
+
"length": null,
|
|
308
|
+
"precision": null,
|
|
309
|
+
"scale": null,
|
|
310
|
+
"default": null,
|
|
311
|
+
"comment": null,
|
|
312
|
+
"enumItems": [],
|
|
313
|
+
"mappedType": "text"
|
|
188
314
|
},
|
|
189
315
|
"organization_id": {
|
|
190
316
|
"name": "organization_id",
|
|
@@ -193,25 +319,30 @@
|
|
|
193
319
|
"autoincrement": false,
|
|
194
320
|
"primary": false,
|
|
195
321
|
"nullable": true,
|
|
322
|
+
"unique": false,
|
|
323
|
+
"length": null,
|
|
324
|
+
"precision": null,
|
|
325
|
+
"scale": null,
|
|
326
|
+
"default": null,
|
|
327
|
+
"comment": null,
|
|
328
|
+
"enumItems": [],
|
|
196
329
|
"mappedType": "uuid"
|
|
197
330
|
},
|
|
198
|
-
"
|
|
199
|
-
"name": "
|
|
200
|
-
"type": "
|
|
201
|
-
"unsigned": false,
|
|
202
|
-
"autoincrement": false,
|
|
203
|
-
"primary": false,
|
|
204
|
-
"nullable": false,
|
|
205
|
-
"mappedType": "text"
|
|
206
|
-
},
|
|
207
|
-
"name": {
|
|
208
|
-
"name": "name",
|
|
209
|
-
"type": "text",
|
|
331
|
+
"role_id": {
|
|
332
|
+
"name": "role_id",
|
|
333
|
+
"type": "uuid",
|
|
210
334
|
"unsigned": false,
|
|
211
335
|
"autoincrement": false,
|
|
212
336
|
"primary": false,
|
|
213
337
|
"nullable": false,
|
|
214
|
-
"
|
|
338
|
+
"unique": true,
|
|
339
|
+
"length": null,
|
|
340
|
+
"precision": null,
|
|
341
|
+
"scale": null,
|
|
342
|
+
"default": null,
|
|
343
|
+
"comment": null,
|
|
344
|
+
"enumItems": [],
|
|
345
|
+
"mappedType": "uuid"
|
|
215
346
|
},
|
|
216
347
|
"settings_json": {
|
|
217
348
|
"name": "settings_json",
|
|
@@ -220,67 +351,76 @@
|
|
|
220
351
|
"autoincrement": false,
|
|
221
352
|
"primary": false,
|
|
222
353
|
"nullable": false,
|
|
354
|
+
"unique": false,
|
|
355
|
+
"length": null,
|
|
356
|
+
"precision": null,
|
|
357
|
+
"scale": null,
|
|
358
|
+
"default": null,
|
|
359
|
+
"comment": null,
|
|
360
|
+
"enumItems": [],
|
|
223
361
|
"mappedType": "json"
|
|
224
362
|
},
|
|
225
|
-
"
|
|
226
|
-
"name": "
|
|
227
|
-
"type": "
|
|
363
|
+
"table_id": {
|
|
364
|
+
"name": "table_id",
|
|
365
|
+
"type": "text",
|
|
228
366
|
"unsigned": false,
|
|
229
367
|
"autoincrement": false,
|
|
230
368
|
"primary": false,
|
|
231
369
|
"nullable": false,
|
|
232
|
-
"
|
|
233
|
-
"
|
|
370
|
+
"unique": false,
|
|
371
|
+
"length": null,
|
|
372
|
+
"precision": null,
|
|
373
|
+
"scale": null,
|
|
374
|
+
"default": null,
|
|
375
|
+
"comment": null,
|
|
376
|
+
"enumItems": [],
|
|
377
|
+
"mappedType": "text"
|
|
234
378
|
},
|
|
235
|
-
"
|
|
236
|
-
"name": "
|
|
237
|
-
"type": "
|
|
379
|
+
"tenant_id": {
|
|
380
|
+
"name": "tenant_id",
|
|
381
|
+
"type": "uuid",
|
|
238
382
|
"unsigned": false,
|
|
239
383
|
"autoincrement": false,
|
|
240
384
|
"primary": false,
|
|
241
|
-
"nullable":
|
|
242
|
-
"
|
|
243
|
-
"
|
|
385
|
+
"nullable": true,
|
|
386
|
+
"unique": false,
|
|
387
|
+
"length": null,
|
|
388
|
+
"precision": null,
|
|
389
|
+
"scale": null,
|
|
390
|
+
"default": null,
|
|
391
|
+
"comment": null,
|
|
392
|
+
"enumItems": [],
|
|
393
|
+
"mappedType": "uuid"
|
|
244
394
|
},
|
|
245
395
|
"updated_at": {
|
|
246
396
|
"name": "updated_at",
|
|
247
|
-
"type": "timestamptz",
|
|
248
|
-
"unsigned": false,
|
|
249
|
-
"autoincrement": false,
|
|
250
|
-
"primary": false,
|
|
251
|
-
"nullable": true,
|
|
252
|
-
"length": 6,
|
|
253
|
-
"mappedType": "datetime"
|
|
254
|
-
},
|
|
255
|
-
"deleted_at": {
|
|
256
|
-
"name": "deleted_at",
|
|
257
|
-
"type": "timestamptz",
|
|
397
|
+
"type": "timestamptz(6)",
|
|
258
398
|
"unsigned": false,
|
|
259
399
|
"autoincrement": false,
|
|
260
400
|
"primary": false,
|
|
261
401
|
"nullable": true,
|
|
402
|
+
"unique": false,
|
|
262
403
|
"length": 6,
|
|
404
|
+
"precision": null,
|
|
405
|
+
"scale": null,
|
|
406
|
+
"default": null,
|
|
407
|
+
"comment": null,
|
|
408
|
+
"enumItems": [],
|
|
263
409
|
"mappedType": "datetime"
|
|
264
410
|
}
|
|
265
411
|
},
|
|
266
|
-
"name": "role_perspectives",
|
|
267
|
-
"schema": "public",
|
|
268
412
|
"indexes": [
|
|
269
413
|
{
|
|
270
|
-
"keyName": "role_perspectives_role_scope_idx",
|
|
271
414
|
"columnNames": [
|
|
272
|
-
"
|
|
273
|
-
"tenant_id",
|
|
274
|
-
"organization_id",
|
|
275
|
-
"table_id"
|
|
415
|
+
"id"
|
|
276
416
|
],
|
|
277
|
-
"composite":
|
|
278
|
-
"constraint":
|
|
279
|
-
"
|
|
280
|
-
"
|
|
417
|
+
"composite": false,
|
|
418
|
+
"constraint": true,
|
|
419
|
+
"keyName": "role_perspectives_pkey",
|
|
420
|
+
"primary": true,
|
|
421
|
+
"unique": true
|
|
281
422
|
},
|
|
282
423
|
{
|
|
283
|
-
"keyName": "role_perspectives_role_id_tenant_id_organization__c5467_unique",
|
|
284
424
|
"columnNames": [
|
|
285
425
|
"role_id",
|
|
286
426
|
"tenant_id",
|
|
@@ -290,24 +430,29 @@
|
|
|
290
430
|
],
|
|
291
431
|
"composite": true,
|
|
292
432
|
"constraint": true,
|
|
433
|
+
"keyName": "role_perspectives_role_id_tenant_id_organization__f0fc6_unique",
|
|
293
434
|
"primary": false,
|
|
294
435
|
"unique": true
|
|
295
436
|
},
|
|
296
437
|
{
|
|
297
|
-
"keyName": "role_perspectives_pkey",
|
|
298
438
|
"columnNames": [
|
|
299
|
-
"
|
|
439
|
+
"role_id",
|
|
440
|
+
"tenant_id",
|
|
441
|
+
"organization_id",
|
|
442
|
+
"table_id"
|
|
300
443
|
],
|
|
301
|
-
"composite":
|
|
302
|
-
"constraint":
|
|
303
|
-
"
|
|
304
|
-
"
|
|
444
|
+
"composite": true,
|
|
445
|
+
"constraint": false,
|
|
446
|
+
"keyName": "role_perspectives_role_scope_idx",
|
|
447
|
+
"primary": false,
|
|
448
|
+
"unique": false
|
|
305
449
|
}
|
|
306
450
|
],
|
|
307
451
|
"checks": [],
|
|
308
452
|
"foreignKeys": {},
|
|
309
|
-
"
|
|
453
|
+
"comment": null
|
|
310
454
|
}
|
|
311
455
|
],
|
|
456
|
+
"views": [],
|
|
312
457
|
"nativeEnums": {}
|
|
313
|
-
}
|
|
458
|
+
}
|