@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.
Files changed (122) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/AGENTS.md +14 -0
  3. package/dist/modules/auth/backend/roles/[id]/edit/page.js +2 -1
  4. package/dist/modules/auth/backend/roles/[id]/edit/page.js.map +2 -2
  5. package/dist/modules/auth/backend/users/[id]/edit/page.js +2 -5
  6. package/dist/modules/auth/backend/users/[id]/edit/page.js.map +2 -2
  7. package/dist/modules/catalog/ai-agents.js +47 -5
  8. package/dist/modules/catalog/ai-agents.js.map +2 -2
  9. package/dist/modules/catalog/backend/catalog/categories/[id]/edit/page.js +2 -5
  10. package/dist/modules/catalog/backend/catalog/categories/[id]/edit/page.js.map +2 -2
  11. package/dist/modules/catalog/backend/catalog/products/MerchandisingAssistantSheet.js +4 -3
  12. package/dist/modules/catalog/backend/catalog/products/MerchandisingAssistantSheet.js.map +2 -2
  13. package/dist/modules/catalog/backend/catalog/products/[id]/page.js +2 -9
  14. package/dist/modules/catalog/backend/catalog/products/[id]/page.js.map +2 -2
  15. package/dist/modules/catalog/backend/catalog/products/[productId]/variants/[variantId]/page.js +2 -9
  16. package/dist/modules/catalog/backend/catalog/products/[productId]/variants/[variantId]/page.js.map +2 -2
  17. package/dist/modules/customers/ai-agents.js +174 -1
  18. package/dist/modules/customers/ai-agents.js.map +2 -2
  19. package/dist/modules/customers/ai-tools/deal-analyzer-pack.js +196 -0
  20. package/dist/modules/customers/ai-tools/deal-analyzer-pack.js.map +7 -0
  21. package/dist/modules/customers/ai-tools.js +3 -1
  22. package/dist/modules/customers/ai-tools.js.map +2 -2
  23. package/dist/modules/customers/backend/customers/companies/page.js +11 -1
  24. package/dist/modules/customers/backend/customers/companies/page.js.map +2 -2
  25. package/dist/modules/customers/backend/customers/deals/page.js +11 -1
  26. package/dist/modules/customers/backend/customers/deals/page.js.map +2 -2
  27. package/dist/modules/customers/backend/customers/people/page.js +11 -1
  28. package/dist/modules/customers/backend/customers/people/page.js.map +2 -2
  29. package/dist/modules/customers/commands/companies.js +37 -15
  30. package/dist/modules/customers/commands/companies.js.map +2 -2
  31. package/dist/modules/customers/components/detail/AiActionChips.js +2 -2
  32. package/dist/modules/customers/components/detail/AiActionChips.js.map +2 -2
  33. package/dist/modules/customers/components/detail/ChangelogTab.js +3 -9
  34. package/dist/modules/customers/components/detail/ChangelogTab.js.map +2 -2
  35. package/dist/modules/customers/components/detail/changelogValues.js +35 -0
  36. package/dist/modules/customers/components/detail/changelogValues.js.map +7 -0
  37. package/dist/modules/customers/components/detail/customFieldUtils.js +1 -1
  38. package/dist/modules/customers/components/detail/customFieldUtils.js.map +1 -1
  39. package/dist/modules/customers/components/formConfig.js +3 -2
  40. package/dist/modules/customers/components/formConfig.js.map +2 -2
  41. package/dist/modules/customers/widgets/injection/ai-assistant-trigger/widget.client.js +4 -9
  42. package/dist/modules/customers/widgets/injection/ai-assistant-trigger/widget.client.js.map +2 -2
  43. package/dist/modules/customers/widgets/injection/ai-deal-analyzer-trigger/widget.client.js +302 -0
  44. package/dist/modules/customers/widgets/injection/ai-deal-analyzer-trigger/widget.client.js.map +7 -0
  45. package/dist/modules/customers/widgets/injection/ai-deal-analyzer-trigger/widget.js +17 -0
  46. package/dist/modules/customers/widgets/injection/ai-deal-analyzer-trigger/widget.js.map +7 -0
  47. package/dist/modules/customers/widgets/injection/ai-deal-detail-trigger/widget.client.js +2 -2
  48. package/dist/modules/customers/widgets/injection/ai-deal-detail-trigger/widget.client.js.map +2 -2
  49. package/dist/modules/customers/widgets/injection-table.js +2 -2
  50. package/dist/modules/customers/widgets/injection-table.js.map +2 -2
  51. package/dist/modules/directory/backend/directory/organizations/[id]/edit/page.js +2 -5
  52. package/dist/modules/directory/backend/directory/organizations/[id]/edit/page.js.map +2 -2
  53. package/dist/modules/directory/backend/directory/tenants/[id]/edit/page.js +2 -5
  54. package/dist/modules/directory/backend/directory/tenants/[id]/edit/page.js.map +2 -2
  55. package/dist/modules/resources/backend/resources/resources/[id]/page.js +2 -5
  56. package/dist/modules/resources/backend/resources/resources/[id]/page.js.map +2 -2
  57. package/dist/modules/sales/backend/sales/channels/[channelId]/edit/page.js +2 -25
  58. package/dist/modules/sales/backend/sales/channels/[channelId]/edit/page.js.map +2 -2
  59. package/dist/modules/sales/components/channels/ChannelOfferForm.js +2 -43
  60. package/dist/modules/sales/components/channels/ChannelOfferForm.js.map +2 -2
  61. package/dist/modules/sales/components/documents/LineItemDialog.js +162 -42
  62. package/dist/modules/sales/components/documents/LineItemDialog.js.map +2 -2
  63. package/dist/modules/sales/components/documents/customFieldHelpers.js +4 -31
  64. package/dist/modules/sales/components/documents/customFieldHelpers.js.map +2 -2
  65. package/package.json +16 -8
  66. package/src/modules/auth/backend/roles/[id]/edit/page.tsx +2 -1
  67. package/src/modules/auth/backend/users/[id]/edit/page.tsx +2 -5
  68. package/src/modules/business_rules/migrations/.snapshot-open-mercato.json +746 -394
  69. package/src/modules/catalog/ai-agents.ts +62 -4
  70. package/src/modules/catalog/backend/catalog/categories/[id]/edit/page.tsx +2 -5
  71. package/src/modules/catalog/backend/catalog/products/MerchandisingAssistantSheet.tsx +4 -3
  72. package/src/modules/catalog/backend/catalog/products/[id]/page.tsx +2 -12
  73. package/src/modules/catalog/backend/catalog/products/[productId]/variants/[variantId]/page.tsx +2 -10
  74. package/src/modules/catalog/migrations/.snapshot-open-mercato.json +2519 -1307
  75. package/src/modules/customer_accounts/migrations/.snapshot-open-mercato.json +828 -834
  76. package/src/modules/customers/AGENTS.md +6 -1
  77. package/src/modules/customers/ai-agents.ts +213 -6
  78. package/src/modules/customers/ai-tools/deal-analyzer-pack.ts +286 -0
  79. package/src/modules/customers/ai-tools.ts +2 -0
  80. package/src/modules/customers/backend/customers/companies/page.tsx +10 -0
  81. package/src/modules/customers/backend/customers/deals/page.tsx +10 -0
  82. package/src/modules/customers/backend/customers/people/page.tsx +10 -0
  83. package/src/modules/customers/commands/companies.ts +38 -14
  84. package/src/modules/customers/components/detail/AiActionChips.tsx +2 -2
  85. package/src/modules/customers/components/detail/ChangelogTab.tsx +3 -10
  86. package/src/modules/customers/components/detail/changelogValues.ts +42 -0
  87. package/src/modules/customers/components/detail/customFieldUtils.ts +1 -1
  88. package/src/modules/customers/components/formConfig.tsx +3 -2
  89. package/src/modules/customers/i18n/de.json +7 -0
  90. package/src/modules/customers/i18n/en.json +7 -0
  91. package/src/modules/customers/i18n/es.json +7 -0
  92. package/src/modules/customers/i18n/pl.json +7 -0
  93. package/src/modules/customers/migrations/.snapshot-open-mercato.json +2313 -2336
  94. package/src/modules/customers/widgets/injection/ai-assistant-trigger/widget.client.tsx +4 -6
  95. package/src/modules/customers/widgets/injection/ai-deal-analyzer-trigger/widget.client.tsx +358 -0
  96. package/src/modules/customers/widgets/injection/ai-deal-analyzer-trigger/widget.ts +34 -0
  97. package/src/modules/customers/widgets/injection/ai-deal-detail-trigger/widget.client.tsx +2 -2
  98. package/src/modules/customers/widgets/injection-table.ts +12 -9
  99. package/src/modules/data_sync/migrations/.snapshot-open-mercato.json +554 -210
  100. package/src/modules/dictionaries/migrations/.snapshot-open-mercato.json +146 -146
  101. package/src/modules/directory/backend/directory/organizations/[id]/edit/page.tsx +2 -5
  102. package/src/modules/directory/backend/directory/tenants/[id]/edit/page.tsx +2 -5
  103. package/src/modules/directory/migrations/.snapshot-open-mercato.json +273 -140
  104. package/src/modules/feature_toggles/migrations/.snapshot-open-mercato.json +242 -137
  105. package/src/modules/integrations/migrations/.snapshot-open-mercato.json +498 -195
  106. package/src/modules/payment_gateways/migrations/.snapshot-open-mercato.json +158 -157
  107. package/src/modules/perspectives/migrations/.snapshot-open-mercato.json +274 -129
  108. package/src/modules/planner/migrations/.snapshot-open-mercato.json +327 -157
  109. package/src/modules/progress/AGENTS.md +72 -0
  110. package/src/modules/resources/backend/resources/resources/[id]/page.tsx +2 -5
  111. package/src/modules/resources/migrations/.snapshot-open-mercato.json +920 -470
  112. package/src/modules/sales/backend/sales/channels/[channelId]/edit/page.tsx +2 -27
  113. package/src/modules/sales/components/channels/ChannelOfferForm.tsx +2 -49
  114. package/src/modules/sales/components/documents/LineItemDialog.tsx +214 -78
  115. package/src/modules/sales/components/documents/customFieldHelpers.ts +4 -43
  116. package/src/modules/sales/i18n/de.json +3 -0
  117. package/src/modules/sales/i18n/en.json +3 -0
  118. package/src/modules/sales/i18n/es.json +3 -0
  119. package/src/modules/sales/i18n/pl.json +3 -0
  120. package/src/modules/sales/migrations/.snapshot-open-mercato.json +4740 -4778
  121. package/src/modules/shipping_carriers/migrations/.snapshot-open-mercato.json +340 -81
  122. 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
- "id": {
10
- "name": "id",
11
- "type": "uuid",
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
- "mappedType": "uuid"
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
- "tenant_id": {
29
- "name": "tenant_id",
30
- "type": "uuid",
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
- "mappedType": "uuid"
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
- "organization_id": {
38
- "name": "organization_id",
43
+ "id": {
44
+ "name": "id",
39
45
  "type": "uuid",
40
46
  "unsigned": false,
41
47
  "autoincrement": false,
42
- "primary": false,
43
- "nullable": true,
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
- "table_id": {
47
- "name": "table_id",
48
- "type": "text",
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
- "mappedType": "text"
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
- "is_default": {
74
- "name": "is_default",
75
- "type": "boolean",
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
- "default": "false",
81
- "mappedType": "boolean"
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
- "created_at": {
84
- "name": "created_at",
85
- "type": "timestamptz",
139
+ "tenant_id": {
140
+ "name": "tenant_id",
141
+ "type": "uuid",
86
142
  "unsigned": false,
87
143
  "autoincrement": false,
88
144
  "primary": false,
89
- "nullable": false,
90
- "length": 6,
91
- "mappedType": "datetime"
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
- "deleted_at": {
104
- "name": "deleted_at",
105
- "type": "timestamptz",
171
+ "user_id": {
172
+ "name": "user_id",
173
+ "type": "uuid",
106
174
  "unsigned": false,
107
175
  "autoincrement": false,
108
176
  "primary": false,
109
- "nullable": true,
110
- "length": 6,
111
- "mappedType": "datetime"
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
- "user_id",
121
- "tenant_id",
122
- "organization_id",
123
- "table_id"
191
+ "id"
124
192
  ],
125
- "composite": true,
126
- "constraint": false,
127
- "primary": false,
128
- "unique": false
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
- "id"
215
+ "user_id",
216
+ "tenant_id",
217
+ "organization_id",
218
+ "table_id"
148
219
  ],
149
- "composite": false,
150
- "constraint": true,
151
- "primary": true,
152
- "unique": true
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
- "nativeEnums": {}
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": false,
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
- "role_id": {
172
- "name": "role_id",
173
- "type": "uuid",
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
- "mappedType": "uuid"
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
- "tenant_id": {
181
- "name": "tenant_id",
182
- "type": "uuid",
299
+ "name": {
300
+ "name": "name",
301
+ "type": "text",
183
302
  "unsigned": false,
184
303
  "autoincrement": false,
185
304
  "primary": false,
186
- "nullable": true,
187
- "mappedType": "uuid"
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
- "table_id": {
199
- "name": "table_id",
200
- "type": "text",
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
- "mappedType": "text"
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
- "is_default": {
226
- "name": "is_default",
227
- "type": "boolean",
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
- "default": "false",
233
- "mappedType": "boolean"
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
- "created_at": {
236
- "name": "created_at",
237
- "type": "timestamptz",
379
+ "tenant_id": {
380
+ "name": "tenant_id",
381
+ "type": "uuid",
238
382
  "unsigned": false,
239
383
  "autoincrement": false,
240
384
  "primary": false,
241
- "nullable": false,
242
- "length": 6,
243
- "mappedType": "datetime"
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
- "role_id",
273
- "tenant_id",
274
- "organization_id",
275
- "table_id"
415
+ "id"
276
416
  ],
277
- "composite": true,
278
- "constraint": false,
279
- "primary": false,
280
- "unique": false
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
- "id"
439
+ "role_id",
440
+ "tenant_id",
441
+ "organization_id",
442
+ "table_id"
300
443
  ],
301
- "composite": false,
302
- "constraint": true,
303
- "primary": true,
304
- "unique": true
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
- "nativeEnums": {}
453
+ "comment": null
310
454
  }
311
455
  ],
456
+ "views": [],
312
457
  "nativeEnums": {}
313
- }
458
+ }