@redocly/revel-reef 0.130.0-next.2 → 0.130.0-next.4

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 (51) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/dist/cli/eject/resolveEjectParams.js +1 -1
  3. package/dist/client/app/hooks/useTelemetry.d.ts +2 -2
  4. package/dist/client/app/telemetry/index.d.ts +11 -1
  5. package/dist/client/app/telemetry/index.js +1 -1
  6. package/dist/server/plugins/catalog-entities/database/catalog-entities-service.d.ts +2 -2
  7. package/dist/server/plugins/catalog-entities/database/catalog-entities-service.js +1 -1
  8. package/dist/server/plugins/catalog-entities/database/mappers/create-entity-attributes-db-record.d.ts +8 -0
  9. package/dist/server/plugins/catalog-entities/database/mappers/create-entity-attributes-db-record.js +1 -0
  10. package/dist/server/plugins/catalog-entities/database/mappers/create-entity-read-model.js +1 -1
  11. package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-bff-repository.d.ts +2 -2
  12. package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-bff-repository.js +14 -14
  13. package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-read-repository.d.ts +2 -2
  14. package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-read-repository.js +1 -1
  15. package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-repository.d.ts +2 -2
  16. package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-repository.js +1 -1
  17. package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-write-repository.d.ts +2 -1
  18. package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-write-repository.js +1 -1
  19. package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-relations-repository.js +1 -1
  20. package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/arazzo-entities-extractor.js +1 -1
  21. package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/asyncapi-entities-extractor.js +1 -1
  22. package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/base.d.ts +4 -3
  23. package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/base.js +1 -1
  24. package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/graphql-entities-extractor.js +2 -2
  25. package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/openapi-entities-extractor.d.ts +1 -1
  26. package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/openapi-entities-extractor.js +1 -1
  27. package/dist/server/plugins/catalog-entities/get-server-props.js +1 -1
  28. package/dist/server/plugins/catalog-entities/plugin.js +1 -1
  29. package/dist/server/plugins/catalog-entities/schemas/database-schemas.d.ts +3 -0
  30. package/dist/server/plugins/catalog-entities/schemas/database-schemas.js +1 -1
  31. package/dist/server/plugins/catalog-entities/schemas/dto-schemas.d.ts +12 -0
  32. package/dist/server/plugins/catalog-entities/schemas/dto-schemas.js +1 -1
  33. package/dist/server/plugins/catalog-entities/schemas/read-model-schemas.d.ts +1 -0
  34. package/dist/server/plugins/catalog-entities/types/extractors.d.ts +4 -4
  35. package/dist/server/plugins/config-parser/loaders/content-slugs-loader.js +1 -1
  36. package/dist/server/plugins/default-theme/index.js +1 -1
  37. package/dist/server/plugins/search/ai-indexer/prepare-ai-search-documents.js +1 -1
  38. package/dist/server/plugins/search/documents/search-documents.js +1 -1
  39. package/dist/server/plugins/sso/index.js +1 -1
  40. package/dist/server/providers/database/databases/catalog-sqlite/migrations/0006_add-catalog-entitities-attributes-table.sql +11 -0
  41. package/dist/server/providers/database/databases/catalog-sqlite/migrations/meta/0006_snapshot.json +458 -0
  42. package/dist/server/providers/database/databases/catalog-sqlite/migrations/meta/_journal.json +7 -0
  43. package/dist/server/providers/database/databases/catalog-sqlite/schemas/entities-attributes-table.d.ts +143 -0
  44. package/dist/server/providers/database/databases/catalog-sqlite/schemas/entities-attributes-table.js +1 -0
  45. package/dist/server/providers/database/databases/sqld-sqlite/migrations/0008_add-catalog-entitities-attributes-table.sql +11 -0
  46. package/dist/server/providers/database/databases/sqld-sqlite/migrations/meta/0008_snapshot.json +898 -0
  47. package/dist/server/providers/database/databases/sqld-sqlite/migrations/meta/_journal.json +7 -0
  48. package/dist/server/utils/rbac.d.ts +11 -7
  49. package/dist/server/utils/rbac.js +1 -1
  50. package/dist/server/web-server/routes/catalog/bff-catalog.js +1 -1
  51. package/package.json +5 -5
@@ -0,0 +1,458 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "f2780510-828e-481b-aa19-45c580e73f50",
5
+ "prevId": "26cb7c34-fb67-4b31-bf14-8f0ae1b63595",
6
+ "tables": {
7
+ "entities_attributes": {
8
+ "name": "entities_attributes",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "organization_id": {
18
+ "name": "organization_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "project_id": {
25
+ "name": "project_id",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "entity_key": {
32
+ "name": "entity_key",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": true,
36
+ "autoincrement": false
37
+ },
38
+ "rbac_teams": {
39
+ "name": "rbac_teams",
40
+ "type": "text",
41
+ "primaryKey": false,
42
+ "notNull": false,
43
+ "autoincrement": false
44
+ },
45
+ "created_at": {
46
+ "name": "created_at",
47
+ "type": "text",
48
+ "primaryKey": false,
49
+ "notNull": true,
50
+ "autoincrement": false
51
+ },
52
+ "updated_at": {
53
+ "name": "updated_at",
54
+ "type": "text",
55
+ "primaryKey": false,
56
+ "notNull": true,
57
+ "autoincrement": false
58
+ }
59
+ },
60
+ "indexes": {
61
+ "idx_entities_attributes_key": {
62
+ "name": "idx_entities_attributes_key",
63
+ "columns": ["entity_key"],
64
+ "isUnique": true
65
+ }
66
+ },
67
+ "foreignKeys": {},
68
+ "compositePrimaryKeys": {},
69
+ "uniqueConstraints": {},
70
+ "checkConstraints": {}
71
+ },
72
+ "entities_relations": {
73
+ "name": "entities_relations",
74
+ "columns": {
75
+ "id": {
76
+ "name": "id",
77
+ "type": "text",
78
+ "primaryKey": true,
79
+ "notNull": true,
80
+ "autoincrement": false
81
+ },
82
+ "organization_id": {
83
+ "name": "organization_id",
84
+ "type": "text",
85
+ "primaryKey": false,
86
+ "notNull": true,
87
+ "autoincrement": false
88
+ },
89
+ "project_id": {
90
+ "name": "project_id",
91
+ "type": "text",
92
+ "primaryKey": false,
93
+ "notNull": true,
94
+ "autoincrement": false
95
+ },
96
+ "source_key": {
97
+ "name": "source_key",
98
+ "type": "text",
99
+ "primaryKey": false,
100
+ "notNull": true,
101
+ "autoincrement": false
102
+ },
103
+ "source_version": {
104
+ "name": "source_version",
105
+ "type": "text",
106
+ "primaryKey": false,
107
+ "notNull": true,
108
+ "autoincrement": false,
109
+ "default": "''"
110
+ },
111
+ "source_revision": {
112
+ "name": "source_revision",
113
+ "type": "text",
114
+ "primaryKey": false,
115
+ "notNull": true,
116
+ "autoincrement": false,
117
+ "default": "''"
118
+ },
119
+ "source_to_target_relation": {
120
+ "name": "source_to_target_relation",
121
+ "type": "text",
122
+ "primaryKey": false,
123
+ "notNull": true,
124
+ "autoincrement": false
125
+ },
126
+ "target_key": {
127
+ "name": "target_key",
128
+ "type": "text",
129
+ "primaryKey": false,
130
+ "notNull": true,
131
+ "autoincrement": false
132
+ },
133
+ "target_version": {
134
+ "name": "target_version",
135
+ "type": "text",
136
+ "primaryKey": false,
137
+ "notNull": true,
138
+ "autoincrement": false,
139
+ "default": "''"
140
+ },
141
+ "target_revision": {
142
+ "name": "target_revision",
143
+ "type": "text",
144
+ "primaryKey": false,
145
+ "notNull": true,
146
+ "autoincrement": false,
147
+ "default": "''"
148
+ },
149
+ "target_to_source_relation": {
150
+ "name": "target_to_source_relation",
151
+ "type": "text",
152
+ "primaryKey": false,
153
+ "notNull": true,
154
+ "autoincrement": false
155
+ },
156
+ "source_file": {
157
+ "name": "source_file",
158
+ "type": "text",
159
+ "primaryKey": false,
160
+ "notNull": false,
161
+ "autoincrement": false
162
+ },
163
+ "file_hash": {
164
+ "name": "file_hash",
165
+ "type": "text",
166
+ "primaryKey": false,
167
+ "notNull": false,
168
+ "autoincrement": false
169
+ },
170
+ "is_deleted": {
171
+ "name": "is_deleted",
172
+ "type": "integer",
173
+ "primaryKey": false,
174
+ "notNull": false,
175
+ "autoincrement": false,
176
+ "default": false
177
+ },
178
+ "created_at": {
179
+ "name": "created_at",
180
+ "type": "text",
181
+ "primaryKey": false,
182
+ "notNull": true,
183
+ "autoincrement": false
184
+ },
185
+ "updated_at": {
186
+ "name": "updated_at",
187
+ "type": "text",
188
+ "primaryKey": false,
189
+ "notNull": true,
190
+ "autoincrement": false
191
+ }
192
+ },
193
+ "indexes": {
194
+ "idx_entities_relations_source_key": {
195
+ "name": "idx_entities_relations_source_key",
196
+ "columns": ["source_key", "is_deleted"],
197
+ "isUnique": false
198
+ },
199
+ "idx_entities_relations_target_key": {
200
+ "name": "idx_entities_relations_target_key",
201
+ "columns": ["target_key", "is_deleted"],
202
+ "isUnique": false
203
+ },
204
+ "idx_entities_relations_source_target": {
205
+ "name": "idx_entities_relations_source_target",
206
+ "columns": ["source_to_target_relation"],
207
+ "isUnique": false
208
+ },
209
+ "idx_entities_relations_target_source": {
210
+ "name": "idx_entities_relations_target_source",
211
+ "columns": ["target_to_source_relation"],
212
+ "isUnique": false
213
+ },
214
+ "idx_entities_relations_unique": {
215
+ "name": "idx_entities_relations_unique",
216
+ "columns": [
217
+ "source_key",
218
+ "target_key",
219
+ "source_version",
220
+ "target_version",
221
+ "source_revision",
222
+ "target_revision",
223
+ "source_to_target_relation"
224
+ ],
225
+ "isUnique": true
226
+ }
227
+ },
228
+ "foreignKeys": {},
229
+ "compositePrimaryKeys": {},
230
+ "uniqueConstraints": {},
231
+ "checkConstraints": {}
232
+ },
233
+ "entities": {
234
+ "name": "entities",
235
+ "columns": {
236
+ "id": {
237
+ "name": "id",
238
+ "type": "text",
239
+ "primaryKey": true,
240
+ "notNull": true,
241
+ "autoincrement": false
242
+ },
243
+ "organization_id": {
244
+ "name": "organization_id",
245
+ "type": "text",
246
+ "primaryKey": false,
247
+ "notNull": true,
248
+ "autoincrement": false
249
+ },
250
+ "project_id": {
251
+ "name": "project_id",
252
+ "type": "text",
253
+ "primaryKey": false,
254
+ "notNull": true,
255
+ "autoincrement": false
256
+ },
257
+ "key": {
258
+ "name": "key",
259
+ "type": "text",
260
+ "primaryKey": false,
261
+ "notNull": true,
262
+ "autoincrement": false
263
+ },
264
+ "type": {
265
+ "name": "type",
266
+ "type": "text",
267
+ "primaryKey": false,
268
+ "notNull": true,
269
+ "autoincrement": false
270
+ },
271
+ "title": {
272
+ "name": "title",
273
+ "type": "text",
274
+ "primaryKey": false,
275
+ "notNull": true,
276
+ "autoincrement": false
277
+ },
278
+ "summary": {
279
+ "name": "summary",
280
+ "type": "text",
281
+ "primaryKey": false,
282
+ "notNull": false,
283
+ "autoincrement": false
284
+ },
285
+ "tags": {
286
+ "name": "tags",
287
+ "type": "text",
288
+ "primaryKey": false,
289
+ "notNull": false,
290
+ "autoincrement": false
291
+ },
292
+ "metadata": {
293
+ "name": "metadata",
294
+ "type": "text",
295
+ "primaryKey": false,
296
+ "notNull": false,
297
+ "autoincrement": false
298
+ },
299
+ "git": {
300
+ "name": "git",
301
+ "type": "text",
302
+ "primaryKey": false,
303
+ "notNull": false,
304
+ "autoincrement": false
305
+ },
306
+ "contact": {
307
+ "name": "contact",
308
+ "type": "text",
309
+ "primaryKey": false,
310
+ "notNull": false,
311
+ "autoincrement": false
312
+ },
313
+ "links": {
314
+ "name": "links",
315
+ "type": "text",
316
+ "primaryKey": false,
317
+ "notNull": false,
318
+ "autoincrement": false
319
+ },
320
+ "created_at": {
321
+ "name": "created_at",
322
+ "type": "text",
323
+ "primaryKey": false,
324
+ "notNull": true,
325
+ "autoincrement": false
326
+ },
327
+ "updated_at": {
328
+ "name": "updated_at",
329
+ "type": "text",
330
+ "primaryKey": false,
331
+ "notNull": true,
332
+ "autoincrement": false
333
+ },
334
+ "source": {
335
+ "name": "source",
336
+ "type": "text",
337
+ "primaryKey": false,
338
+ "notNull": false,
339
+ "autoincrement": false,
340
+ "default": "'file'"
341
+ },
342
+ "source_file": {
343
+ "name": "source_file",
344
+ "type": "text",
345
+ "primaryKey": false,
346
+ "notNull": false,
347
+ "autoincrement": false
348
+ },
349
+ "file_hash": {
350
+ "name": "file_hash",
351
+ "type": "text",
352
+ "primaryKey": false,
353
+ "notNull": false,
354
+ "autoincrement": false
355
+ },
356
+ "version": {
357
+ "name": "version",
358
+ "type": "text",
359
+ "primaryKey": false,
360
+ "notNull": true,
361
+ "autoincrement": false,
362
+ "default": "'not_specified_version'"
363
+ },
364
+ "revision": {
365
+ "name": "revision",
366
+ "type": "text",
367
+ "primaryKey": false,
368
+ "notNull": true,
369
+ "autoincrement": false
370
+ },
371
+ "hash": {
372
+ "name": "hash",
373
+ "type": "text",
374
+ "primaryKey": false,
375
+ "notNull": false,
376
+ "autoincrement": false
377
+ },
378
+ "is_current": {
379
+ "name": "is_current",
380
+ "type": "integer",
381
+ "primaryKey": false,
382
+ "notNull": false,
383
+ "autoincrement": false,
384
+ "default": true
385
+ },
386
+ "is_default_version": {
387
+ "name": "is_default_version",
388
+ "type": "integer",
389
+ "primaryKey": false,
390
+ "notNull": false,
391
+ "autoincrement": false,
392
+ "default": false
393
+ },
394
+ "is_deleted": {
395
+ "name": "is_deleted",
396
+ "type": "integer",
397
+ "primaryKey": false,
398
+ "notNull": false,
399
+ "autoincrement": false,
400
+ "default": false
401
+ },
402
+ "scorecards_status": {
403
+ "name": "scorecards_status",
404
+ "type": "text",
405
+ "primaryKey": false,
406
+ "notNull": false,
407
+ "autoincrement": false
408
+ }
409
+ },
410
+ "indexes": {
411
+ "idx_entities_type": {
412
+ "name": "idx_entities_type",
413
+ "columns": ["type"],
414
+ "isUnique": false
415
+ },
416
+ "idx_entities_hash": {
417
+ "name": "idx_entities_hash",
418
+ "columns": ["hash"],
419
+ "isUnique": false
420
+ },
421
+ "idx_entities_key_source_created_at": {
422
+ "name": "idx_entities_key_source_created_at",
423
+ "columns": ["key", "created_at"],
424
+ "isUnique": false
425
+ },
426
+ "idx_entities_key_source_is_current": {
427
+ "name": "idx_entities_key_source_is_current",
428
+ "columns": ["key", "is_current", "is_deleted"],
429
+ "isUnique": false
430
+ },
431
+ "idx_entities_key_source_is_default": {
432
+ "name": "idx_entities_key_source_is_default",
433
+ "columns": ["key", "is_default_version"],
434
+ "isUnique": false
435
+ },
436
+ "idx_entities_key_source": {
437
+ "name": "idx_entities_key_source",
438
+ "columns": ["key", "source", "revision", "version"],
439
+ "isUnique": true
440
+ }
441
+ },
442
+ "foreignKeys": {},
443
+ "compositePrimaryKeys": {},
444
+ "uniqueConstraints": {},
445
+ "checkConstraints": {}
446
+ }
447
+ },
448
+ "views": {},
449
+ "enums": {},
450
+ "_meta": {
451
+ "schemas": {},
452
+ "tables": {},
453
+ "columns": {}
454
+ },
455
+ "internal": {
456
+ "indexes": {}
457
+ }
458
+ }
@@ -43,6 +43,13 @@
43
43
  "when": 1768307645659,
44
44
  "tag": "0005_catalog-relations-constraint-fix",
45
45
  "breakpoints": true
46
+ },
47
+ {
48
+ "idx": 6,
49
+ "version": "6",
50
+ "when": 1768558795237,
51
+ "tag": "0006_add-catalog-entitities-attributes-table",
52
+ "breakpoints": true
46
53
  }
47
54
  ]
48
55
  }
@@ -0,0 +1,143 @@
1
+ export declare const entitiesAttributesTable: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
2
+ name: "entities_attributes";
3
+ schema: undefined;
4
+ columns: {
5
+ id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
6
+ name: "id";
7
+ tableName: "entities_attributes";
8
+ dataType: "string";
9
+ columnType: "SQLiteText";
10
+ data: string;
11
+ driverParam: string;
12
+ notNull: true;
13
+ hasDefault: false;
14
+ isPrimaryKey: true;
15
+ isAutoincrement: false;
16
+ hasRuntimeDefault: false;
17
+ enumValues: [string, ...string[]];
18
+ baseColumn: never;
19
+ identity: undefined;
20
+ generated: undefined;
21
+ }, {}, {
22
+ length: number | undefined;
23
+ }>;
24
+ organizationId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
25
+ name: "organization_id";
26
+ tableName: "entities_attributes";
27
+ dataType: "string";
28
+ columnType: "SQLiteText";
29
+ data: string;
30
+ driverParam: string;
31
+ notNull: true;
32
+ hasDefault: false;
33
+ isPrimaryKey: false;
34
+ isAutoincrement: false;
35
+ hasRuntimeDefault: false;
36
+ enumValues: [string, ...string[]];
37
+ baseColumn: never;
38
+ identity: undefined;
39
+ generated: undefined;
40
+ }, {}, {
41
+ length: number | undefined;
42
+ }>;
43
+ projectId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
44
+ name: "project_id";
45
+ tableName: "entities_attributes";
46
+ dataType: "string";
47
+ columnType: "SQLiteText";
48
+ data: string;
49
+ driverParam: string;
50
+ notNull: true;
51
+ hasDefault: false;
52
+ isPrimaryKey: false;
53
+ isAutoincrement: false;
54
+ hasRuntimeDefault: false;
55
+ enumValues: [string, ...string[]];
56
+ baseColumn: never;
57
+ identity: undefined;
58
+ generated: undefined;
59
+ }, {}, {
60
+ length: number | undefined;
61
+ }>;
62
+ entityKey: import("drizzle-orm/sqlite-core").SQLiteColumn<{
63
+ name: "entity_key";
64
+ tableName: "entities_attributes";
65
+ dataType: "string";
66
+ columnType: "SQLiteText";
67
+ data: string;
68
+ driverParam: string;
69
+ notNull: true;
70
+ hasDefault: false;
71
+ isPrimaryKey: false;
72
+ isAutoincrement: false;
73
+ hasRuntimeDefault: false;
74
+ enumValues: [string, ...string[]];
75
+ baseColumn: never;
76
+ identity: undefined;
77
+ generated: undefined;
78
+ }, {}, {
79
+ length: number | undefined;
80
+ }>;
81
+ rbacTeams: import("drizzle-orm/sqlite-core").SQLiteColumn<{
82
+ name: "rbac_teams";
83
+ tableName: "entities_attributes";
84
+ dataType: "string";
85
+ columnType: "SQLiteText";
86
+ data: string;
87
+ driverParam: string;
88
+ notNull: false;
89
+ hasDefault: false;
90
+ isPrimaryKey: false;
91
+ isAutoincrement: false;
92
+ hasRuntimeDefault: false;
93
+ enumValues: [string, ...string[]];
94
+ baseColumn: never;
95
+ identity: undefined;
96
+ generated: undefined;
97
+ }, {}, {
98
+ length: number | undefined;
99
+ }>;
100
+ createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
101
+ name: "created_at";
102
+ tableName: "entities_attributes";
103
+ dataType: "string";
104
+ columnType: "SQLiteText";
105
+ data: string;
106
+ driverParam: string;
107
+ notNull: true;
108
+ hasDefault: false;
109
+ isPrimaryKey: false;
110
+ isAutoincrement: false;
111
+ hasRuntimeDefault: false;
112
+ enumValues: [string, ...string[]];
113
+ baseColumn: never;
114
+ identity: undefined;
115
+ generated: undefined;
116
+ }, {}, {
117
+ length: number | undefined;
118
+ }>;
119
+ updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
120
+ name: "updated_at";
121
+ tableName: "entities_attributes";
122
+ dataType: "string";
123
+ columnType: "SQLiteText";
124
+ data: string;
125
+ driverParam: string;
126
+ notNull: true;
127
+ hasDefault: false;
128
+ isPrimaryKey: false;
129
+ isAutoincrement: false;
130
+ hasRuntimeDefault: false;
131
+ enumValues: [string, ...string[]];
132
+ baseColumn: never;
133
+ identity: undefined;
134
+ generated: undefined;
135
+ }, {}, {
136
+ length: number | undefined;
137
+ }>;
138
+ };
139
+ dialect: "sqlite";
140
+ }>;
141
+ export type DatabaseEntityAttributes = typeof entitiesAttributesTable.$inferSelect;
142
+ export type DatabaseEntityAttributesDto = typeof entitiesAttributesTable.$inferInsert;
143
+ //# sourceMappingURL=entities-attributes-table.d.ts.map
@@ -0,0 +1 @@
1
+ import{sqliteTable as i,text as t,uniqueIndex as a}from"drizzle-orm/sqlite-core";const o=i("entities_attributes",{id:t("id").primaryKey(),organizationId:t("organization_id").notNull(),projectId:t("project_id").notNull(),entityKey:t("entity_key").notNull(),rbacTeams:t("rbac_teams"),createdAt:t("created_at").notNull(),updatedAt:t("updated_at").notNull()},e=>[a("idx_entities_attributes_key").on(e.entityKey)]);export{o as entitiesAttributesTable};
@@ -0,0 +1,11 @@
1
+ CREATE TABLE `entities_attributes` (
2
+ `id` text PRIMARY KEY NOT NULL,
3
+ `organization_id` text NOT NULL,
4
+ `project_id` text NOT NULL,
5
+ `entity_key` text NOT NULL,
6
+ `rbac_teams` text,
7
+ `created_at` text NOT NULL,
8
+ `updated_at` text NOT NULL
9
+ );
10
+ --> statement-breakpoint
11
+ CREATE UNIQUE INDEX `idx_entities_attributes_key` ON `entities_attributes` (`entity_key`);