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