@kaloma-ai/framework-api 0.0.0-stage → 0.6.0

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.
@@ -0,0 +1,676 @@
1
+ {
2
+ "id": "1e86a145-891f-4d87-8be2-3e185b1d570e",
3
+ "prevId": "00000000-0000-0000-0000-000000000000",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.account": {
8
+ "name": "account",
9
+ "schema": "",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "text",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "account_id": {
18
+ "name": "account_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "provider_id": {
24
+ "name": "provider_id",
25
+ "type": "text",
26
+ "primaryKey": false,
27
+ "notNull": true
28
+ },
29
+ "user_id": {
30
+ "name": "user_id",
31
+ "type": "text",
32
+ "primaryKey": false,
33
+ "notNull": true
34
+ },
35
+ "access_token": {
36
+ "name": "access_token",
37
+ "type": "text",
38
+ "primaryKey": false,
39
+ "notNull": false
40
+ },
41
+ "refresh_token": {
42
+ "name": "refresh_token",
43
+ "type": "text",
44
+ "primaryKey": false,
45
+ "notNull": false
46
+ },
47
+ "id_token": {
48
+ "name": "id_token",
49
+ "type": "text",
50
+ "primaryKey": false,
51
+ "notNull": false
52
+ },
53
+ "access_token_expires_at": {
54
+ "name": "access_token_expires_at",
55
+ "type": "timestamp",
56
+ "primaryKey": false,
57
+ "notNull": false
58
+ },
59
+ "refresh_token_expires_at": {
60
+ "name": "refresh_token_expires_at",
61
+ "type": "timestamp",
62
+ "primaryKey": false,
63
+ "notNull": false
64
+ },
65
+ "scope": {
66
+ "name": "scope",
67
+ "type": "text",
68
+ "primaryKey": false,
69
+ "notNull": false
70
+ },
71
+ "password": {
72
+ "name": "password",
73
+ "type": "text",
74
+ "primaryKey": false,
75
+ "notNull": false
76
+ },
77
+ "created_at": {
78
+ "name": "created_at",
79
+ "type": "timestamp",
80
+ "primaryKey": false,
81
+ "notNull": true,
82
+ "default": "now()"
83
+ },
84
+ "updated_at": {
85
+ "name": "updated_at",
86
+ "type": "timestamp",
87
+ "primaryKey": false,
88
+ "notNull": true
89
+ }
90
+ },
91
+ "indexes": {
92
+ "account_userId_idx": {
93
+ "name": "account_userId_idx",
94
+ "columns": [
95
+ {
96
+ "expression": "user_id",
97
+ "isExpression": false,
98
+ "asc": true,
99
+ "nulls": "last"
100
+ }
101
+ ],
102
+ "isUnique": false,
103
+ "concurrently": false,
104
+ "method": "btree",
105
+ "with": {}
106
+ }
107
+ },
108
+ "foreignKeys": {
109
+ "account_user_id_user_id_fk": {
110
+ "name": "account_user_id_user_id_fk",
111
+ "tableFrom": "account",
112
+ "tableTo": "user",
113
+ "columnsFrom": [
114
+ "user_id"
115
+ ],
116
+ "columnsTo": [
117
+ "id"
118
+ ],
119
+ "onDelete": "cascade",
120
+ "onUpdate": "no action"
121
+ }
122
+ },
123
+ "compositePrimaryKeys": {},
124
+ "uniqueConstraints": {},
125
+ "policies": {},
126
+ "checkConstraints": {},
127
+ "isRLSEnabled": false
128
+ },
129
+ "public.invitation": {
130
+ "name": "invitation",
131
+ "schema": "",
132
+ "columns": {
133
+ "id": {
134
+ "name": "id",
135
+ "type": "text",
136
+ "primaryKey": true,
137
+ "notNull": true
138
+ },
139
+ "organization_id": {
140
+ "name": "organization_id",
141
+ "type": "text",
142
+ "primaryKey": false,
143
+ "notNull": true
144
+ },
145
+ "email": {
146
+ "name": "email",
147
+ "type": "text",
148
+ "primaryKey": false,
149
+ "notNull": true
150
+ },
151
+ "role": {
152
+ "name": "role",
153
+ "type": "text",
154
+ "primaryKey": false,
155
+ "notNull": false
156
+ },
157
+ "status": {
158
+ "name": "status",
159
+ "type": "text",
160
+ "primaryKey": false,
161
+ "notNull": true,
162
+ "default": "'pending'"
163
+ },
164
+ "expires_at": {
165
+ "name": "expires_at",
166
+ "type": "timestamp",
167
+ "primaryKey": false,
168
+ "notNull": true
169
+ },
170
+ "created_at": {
171
+ "name": "created_at",
172
+ "type": "timestamp",
173
+ "primaryKey": false,
174
+ "notNull": true,
175
+ "default": "now()"
176
+ },
177
+ "inviter_id": {
178
+ "name": "inviter_id",
179
+ "type": "text",
180
+ "primaryKey": false,
181
+ "notNull": true
182
+ }
183
+ },
184
+ "indexes": {
185
+ "invitation_organizationId_idx": {
186
+ "name": "invitation_organizationId_idx",
187
+ "columns": [
188
+ {
189
+ "expression": "organization_id",
190
+ "isExpression": false,
191
+ "asc": true,
192
+ "nulls": "last"
193
+ }
194
+ ],
195
+ "isUnique": false,
196
+ "concurrently": false,
197
+ "method": "btree",
198
+ "with": {}
199
+ },
200
+ "invitation_email_idx": {
201
+ "name": "invitation_email_idx",
202
+ "columns": [
203
+ {
204
+ "expression": "email",
205
+ "isExpression": false,
206
+ "asc": true,
207
+ "nulls": "last"
208
+ }
209
+ ],
210
+ "isUnique": false,
211
+ "concurrently": false,
212
+ "method": "btree",
213
+ "with": {}
214
+ }
215
+ },
216
+ "foreignKeys": {
217
+ "invitation_organization_id_organization_id_fk": {
218
+ "name": "invitation_organization_id_organization_id_fk",
219
+ "tableFrom": "invitation",
220
+ "tableTo": "organization",
221
+ "columnsFrom": [
222
+ "organization_id"
223
+ ],
224
+ "columnsTo": [
225
+ "id"
226
+ ],
227
+ "onDelete": "cascade",
228
+ "onUpdate": "no action"
229
+ },
230
+ "invitation_inviter_id_user_id_fk": {
231
+ "name": "invitation_inviter_id_user_id_fk",
232
+ "tableFrom": "invitation",
233
+ "tableTo": "user",
234
+ "columnsFrom": [
235
+ "inviter_id"
236
+ ],
237
+ "columnsTo": [
238
+ "id"
239
+ ],
240
+ "onDelete": "cascade",
241
+ "onUpdate": "no action"
242
+ }
243
+ },
244
+ "compositePrimaryKeys": {},
245
+ "uniqueConstraints": {},
246
+ "policies": {},
247
+ "checkConstraints": {},
248
+ "isRLSEnabled": false
249
+ },
250
+ "public.member": {
251
+ "name": "member",
252
+ "schema": "",
253
+ "columns": {
254
+ "id": {
255
+ "name": "id",
256
+ "type": "text",
257
+ "primaryKey": true,
258
+ "notNull": true
259
+ },
260
+ "organization_id": {
261
+ "name": "organization_id",
262
+ "type": "text",
263
+ "primaryKey": false,
264
+ "notNull": true
265
+ },
266
+ "user_id": {
267
+ "name": "user_id",
268
+ "type": "text",
269
+ "primaryKey": false,
270
+ "notNull": true
271
+ },
272
+ "role": {
273
+ "name": "role",
274
+ "type": "text",
275
+ "primaryKey": false,
276
+ "notNull": true,
277
+ "default": "'member'"
278
+ },
279
+ "created_at": {
280
+ "name": "created_at",
281
+ "type": "timestamp",
282
+ "primaryKey": false,
283
+ "notNull": true
284
+ }
285
+ },
286
+ "indexes": {
287
+ "member_organizationId_idx": {
288
+ "name": "member_organizationId_idx",
289
+ "columns": [
290
+ {
291
+ "expression": "organization_id",
292
+ "isExpression": false,
293
+ "asc": true,
294
+ "nulls": "last"
295
+ }
296
+ ],
297
+ "isUnique": false,
298
+ "concurrently": false,
299
+ "method": "btree",
300
+ "with": {}
301
+ },
302
+ "member_userId_idx": {
303
+ "name": "member_userId_idx",
304
+ "columns": [
305
+ {
306
+ "expression": "user_id",
307
+ "isExpression": false,
308
+ "asc": true,
309
+ "nulls": "last"
310
+ }
311
+ ],
312
+ "isUnique": false,
313
+ "concurrently": false,
314
+ "method": "btree",
315
+ "with": {}
316
+ }
317
+ },
318
+ "foreignKeys": {
319
+ "member_organization_id_organization_id_fk": {
320
+ "name": "member_organization_id_organization_id_fk",
321
+ "tableFrom": "member",
322
+ "tableTo": "organization",
323
+ "columnsFrom": [
324
+ "organization_id"
325
+ ],
326
+ "columnsTo": [
327
+ "id"
328
+ ],
329
+ "onDelete": "cascade",
330
+ "onUpdate": "no action"
331
+ },
332
+ "member_user_id_user_id_fk": {
333
+ "name": "member_user_id_user_id_fk",
334
+ "tableFrom": "member",
335
+ "tableTo": "user",
336
+ "columnsFrom": [
337
+ "user_id"
338
+ ],
339
+ "columnsTo": [
340
+ "id"
341
+ ],
342
+ "onDelete": "cascade",
343
+ "onUpdate": "no action"
344
+ }
345
+ },
346
+ "compositePrimaryKeys": {},
347
+ "uniqueConstraints": {},
348
+ "policies": {},
349
+ "checkConstraints": {},
350
+ "isRLSEnabled": false
351
+ },
352
+ "public.organization": {
353
+ "name": "organization",
354
+ "schema": "",
355
+ "columns": {
356
+ "id": {
357
+ "name": "id",
358
+ "type": "text",
359
+ "primaryKey": true,
360
+ "notNull": true
361
+ },
362
+ "name": {
363
+ "name": "name",
364
+ "type": "text",
365
+ "primaryKey": false,
366
+ "notNull": true
367
+ },
368
+ "slug": {
369
+ "name": "slug",
370
+ "type": "text",
371
+ "primaryKey": false,
372
+ "notNull": true
373
+ },
374
+ "logo": {
375
+ "name": "logo",
376
+ "type": "text",
377
+ "primaryKey": false,
378
+ "notNull": false
379
+ },
380
+ "created_at": {
381
+ "name": "created_at",
382
+ "type": "timestamp",
383
+ "primaryKey": false,
384
+ "notNull": true
385
+ },
386
+ "metadata": {
387
+ "name": "metadata",
388
+ "type": "text",
389
+ "primaryKey": false,
390
+ "notNull": false
391
+ }
392
+ },
393
+ "indexes": {
394
+ "organization_slug_uidx": {
395
+ "name": "organization_slug_uidx",
396
+ "columns": [
397
+ {
398
+ "expression": "slug",
399
+ "isExpression": false,
400
+ "asc": true,
401
+ "nulls": "last"
402
+ }
403
+ ],
404
+ "isUnique": true,
405
+ "concurrently": false,
406
+ "method": "btree",
407
+ "with": {}
408
+ }
409
+ },
410
+ "foreignKeys": {},
411
+ "compositePrimaryKeys": {},
412
+ "uniqueConstraints": {
413
+ "organization_slug_unique": {
414
+ "name": "organization_slug_unique",
415
+ "nullsNotDistinct": false,
416
+ "columns": [
417
+ "slug"
418
+ ]
419
+ }
420
+ },
421
+ "policies": {},
422
+ "checkConstraints": {},
423
+ "isRLSEnabled": false
424
+ },
425
+ "public.session": {
426
+ "name": "session",
427
+ "schema": "",
428
+ "columns": {
429
+ "id": {
430
+ "name": "id",
431
+ "type": "text",
432
+ "primaryKey": true,
433
+ "notNull": true
434
+ },
435
+ "expires_at": {
436
+ "name": "expires_at",
437
+ "type": "timestamp",
438
+ "primaryKey": false,
439
+ "notNull": true
440
+ },
441
+ "token": {
442
+ "name": "token",
443
+ "type": "text",
444
+ "primaryKey": false,
445
+ "notNull": true
446
+ },
447
+ "created_at": {
448
+ "name": "created_at",
449
+ "type": "timestamp",
450
+ "primaryKey": false,
451
+ "notNull": true,
452
+ "default": "now()"
453
+ },
454
+ "updated_at": {
455
+ "name": "updated_at",
456
+ "type": "timestamp",
457
+ "primaryKey": false,
458
+ "notNull": true
459
+ },
460
+ "ip_address": {
461
+ "name": "ip_address",
462
+ "type": "text",
463
+ "primaryKey": false,
464
+ "notNull": false
465
+ },
466
+ "user_agent": {
467
+ "name": "user_agent",
468
+ "type": "text",
469
+ "primaryKey": false,
470
+ "notNull": false
471
+ },
472
+ "user_id": {
473
+ "name": "user_id",
474
+ "type": "text",
475
+ "primaryKey": false,
476
+ "notNull": true
477
+ },
478
+ "active_organization_id": {
479
+ "name": "active_organization_id",
480
+ "type": "text",
481
+ "primaryKey": false,
482
+ "notNull": false
483
+ }
484
+ },
485
+ "indexes": {
486
+ "session_userId_idx": {
487
+ "name": "session_userId_idx",
488
+ "columns": [
489
+ {
490
+ "expression": "user_id",
491
+ "isExpression": false,
492
+ "asc": true,
493
+ "nulls": "last"
494
+ }
495
+ ],
496
+ "isUnique": false,
497
+ "concurrently": false,
498
+ "method": "btree",
499
+ "with": {}
500
+ }
501
+ },
502
+ "foreignKeys": {
503
+ "session_user_id_user_id_fk": {
504
+ "name": "session_user_id_user_id_fk",
505
+ "tableFrom": "session",
506
+ "tableTo": "user",
507
+ "columnsFrom": [
508
+ "user_id"
509
+ ],
510
+ "columnsTo": [
511
+ "id"
512
+ ],
513
+ "onDelete": "cascade",
514
+ "onUpdate": "no action"
515
+ }
516
+ },
517
+ "compositePrimaryKeys": {},
518
+ "uniqueConstraints": {
519
+ "session_token_unique": {
520
+ "name": "session_token_unique",
521
+ "nullsNotDistinct": false,
522
+ "columns": [
523
+ "token"
524
+ ]
525
+ }
526
+ },
527
+ "policies": {},
528
+ "checkConstraints": {},
529
+ "isRLSEnabled": false
530
+ },
531
+ "public.user": {
532
+ "name": "user",
533
+ "schema": "",
534
+ "columns": {
535
+ "id": {
536
+ "name": "id",
537
+ "type": "text",
538
+ "primaryKey": true,
539
+ "notNull": true
540
+ },
541
+ "name": {
542
+ "name": "name",
543
+ "type": "text",
544
+ "primaryKey": false,
545
+ "notNull": true
546
+ },
547
+ "email": {
548
+ "name": "email",
549
+ "type": "text",
550
+ "primaryKey": false,
551
+ "notNull": true
552
+ },
553
+ "email_verified": {
554
+ "name": "email_verified",
555
+ "type": "boolean",
556
+ "primaryKey": false,
557
+ "notNull": true,
558
+ "default": false
559
+ },
560
+ "image": {
561
+ "name": "image",
562
+ "type": "text",
563
+ "primaryKey": false,
564
+ "notNull": false
565
+ },
566
+ "created_at": {
567
+ "name": "created_at",
568
+ "type": "timestamp",
569
+ "primaryKey": false,
570
+ "notNull": true,
571
+ "default": "now()"
572
+ },
573
+ "updated_at": {
574
+ "name": "updated_at",
575
+ "type": "timestamp",
576
+ "primaryKey": false,
577
+ "notNull": true,
578
+ "default": "now()"
579
+ }
580
+ },
581
+ "indexes": {},
582
+ "foreignKeys": {},
583
+ "compositePrimaryKeys": {},
584
+ "uniqueConstraints": {
585
+ "user_email_unique": {
586
+ "name": "user_email_unique",
587
+ "nullsNotDistinct": false,
588
+ "columns": [
589
+ "email"
590
+ ]
591
+ }
592
+ },
593
+ "policies": {},
594
+ "checkConstraints": {},
595
+ "isRLSEnabled": false
596
+ },
597
+ "public.verification": {
598
+ "name": "verification",
599
+ "schema": "",
600
+ "columns": {
601
+ "id": {
602
+ "name": "id",
603
+ "type": "text",
604
+ "primaryKey": true,
605
+ "notNull": true
606
+ },
607
+ "identifier": {
608
+ "name": "identifier",
609
+ "type": "text",
610
+ "primaryKey": false,
611
+ "notNull": true
612
+ },
613
+ "value": {
614
+ "name": "value",
615
+ "type": "text",
616
+ "primaryKey": false,
617
+ "notNull": true
618
+ },
619
+ "expires_at": {
620
+ "name": "expires_at",
621
+ "type": "timestamp",
622
+ "primaryKey": false,
623
+ "notNull": true
624
+ },
625
+ "created_at": {
626
+ "name": "created_at",
627
+ "type": "timestamp",
628
+ "primaryKey": false,
629
+ "notNull": true,
630
+ "default": "now()"
631
+ },
632
+ "updated_at": {
633
+ "name": "updated_at",
634
+ "type": "timestamp",
635
+ "primaryKey": false,
636
+ "notNull": true,
637
+ "default": "now()"
638
+ }
639
+ },
640
+ "indexes": {
641
+ "verification_identifier_idx": {
642
+ "name": "verification_identifier_idx",
643
+ "columns": [
644
+ {
645
+ "expression": "identifier",
646
+ "isExpression": false,
647
+ "asc": true,
648
+ "nulls": "last"
649
+ }
650
+ ],
651
+ "isUnique": false,
652
+ "concurrently": false,
653
+ "method": "btree",
654
+ "with": {}
655
+ }
656
+ },
657
+ "foreignKeys": {},
658
+ "compositePrimaryKeys": {},
659
+ "uniqueConstraints": {},
660
+ "policies": {},
661
+ "checkConstraints": {},
662
+ "isRLSEnabled": false
663
+ }
664
+ },
665
+ "enums": {},
666
+ "schemas": {},
667
+ "sequences": {},
668
+ "roles": {},
669
+ "policies": {},
670
+ "views": {},
671
+ "_meta": {
672
+ "columns": {},
673
+ "schemas": {},
674
+ "tables": {}
675
+ }
676
+ }