@morlay/session-rdb 0.0.16 → 0.0.17

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 (48) hide show
  1. package/README.md +44 -10
  2. package/dist/artifact.d.mts +9 -2
  3. package/dist/artifact.mjs +3 -3
  4. package/dist/{import-BPEHfHNk.mjs → import-DZIAjOUr.mjs} +2 -1
  5. package/dist/import.d.mts +1 -1
  6. package/dist/import.mjs +1 -1
  7. package/dist/{index-CgAqCQAb.d.mts → index-BEKoV1Uy.d.mts} +11 -2
  8. package/dist/index.d.mts +3 -3
  9. package/dist/index.mjs +509 -6
  10. package/dist/{log-BIuXv09P.mjs → log-DO69NQnn.mjs} +16 -1
  11. package/dist/schema-Bo6Hy5gW.d.mts +3476 -0
  12. package/dist/{sqlite-IH5I48aL.mjs → sqlite-BIPdMNQb.mjs} +504 -6
  13. package/dist/storage.d.mts +10 -2
  14. package/dist/storage.mjs +2 -2
  15. package/dist/testing.d.mts +1 -1
  16. package/dist/testing.mjs +1 -1
  17. package/drizzle/postgres/20260910120001_v3_storage_tables/migration.sql +65 -0
  18. package/drizzle/postgres/20260910120001_v3_storage_tables/snapshot.json +1236 -0
  19. package/drizzle/postgres/20260910130001_v3_session_title_backfill/migration.sql +10 -0
  20. package/drizzle/postgres/20260910130001_v3_session_title_backfill/snapshot.json +1236 -0
  21. package/drizzle/sqlite/20260910120000_v3_storage_tables/migration.sql +66 -0
  22. package/drizzle/sqlite/20260910120000_v3_storage_tables/snapshot.json +958 -0
  23. package/drizzle/sqlite/20260910130000_v3_session_title_backfill/migration.sql +13 -0
  24. package/drizzle/sqlite/20260910130000_v3_session_title_backfill/snapshot.json +958 -0
  25. package/package.json +6 -4
  26. package/src/backend.ts +7 -0
  27. package/src/branch.ts +2 -0
  28. package/src/drizzle/postgres-v3.ts +5 -0
  29. package/src/drizzle/sqlite-v3.ts +5 -0
  30. package/src/entities/v3/index.ts +20 -0
  31. package/src/entities/v3/session-projcache-rows.ts +27 -0
  32. package/src/entities/v3/sessions.ts +6 -0
  33. package/src/entities/v3/storage-units.ts +10 -0
  34. package/src/entities/v3/workspace-sessions.ts +24 -0
  35. package/src/entities/v3/workspace-state.ts +18 -0
  36. package/src/entities/v3/workspaces.ts +19 -0
  37. package/src/import-storages.ts +173 -0
  38. package/src/index.ts +53 -0
  39. package/src/log.ts +19 -0
  40. package/src/postgres.ts +70 -2
  41. package/src/schema.ts +16 -2
  42. package/src/sqlite.ts +87 -4
  43. package/src/storage-takeover/index.ts +60 -0
  44. package/src/storage-takeover/projection-cache.ts +445 -0
  45. package/src/storage-takeover/repository.ts +420 -0
  46. package/src/storage-takeover/storage-backend.ts +177 -0
  47. package/src/storage-takeover/types.ts +82 -0
  48. package/dist/schema-COK7-wRV.d.mts +0 -104
@@ -0,0 +1,1236 @@
1
+ {
2
+ "version": "8",
3
+ "dialect": "postgres",
4
+ "id": "8a51a71d-ed27-4028-be4d-2f9a0434b6a4",
5
+ "prevIds": [
6
+ "d4f668b2-5d9b-4755-8dba-5ab2c30cf372"
7
+ ],
8
+ "ddl": [
9
+ {
10
+ "isRlsEnabled": false,
11
+ "name": "t_events",
12
+ "entityType": "tables",
13
+ "schema": "public"
14
+ },
15
+ {
16
+ "isRlsEnabled": false,
17
+ "name": "t_persistence_state",
18
+ "entityType": "tables",
19
+ "schema": "public"
20
+ },
21
+ {
22
+ "isRlsEnabled": false,
23
+ "name": "t_schema_meta",
24
+ "entityType": "tables",
25
+ "schema": "public"
26
+ },
27
+ {
28
+ "isRlsEnabled": false,
29
+ "name": "t_session_events",
30
+ "entityType": "tables",
31
+ "schema": "public"
32
+ },
33
+ {
34
+ "isRlsEnabled": false,
35
+ "name": "t_sessions",
36
+ "entityType": "tables",
37
+ "schema": "public"
38
+ },
39
+ {
40
+ "type": "serial",
41
+ "typeSchema": null,
42
+ "notNull": true,
43
+ "dimensions": 0,
44
+ "default": null,
45
+ "generated": null,
46
+ "identity": null,
47
+ "name": "f_id",
48
+ "entityType": "columns",
49
+ "schema": "public",
50
+ "table": "t_events"
51
+ },
52
+ {
53
+ "type": "text",
54
+ "typeSchema": null,
55
+ "notNull": true,
56
+ "dimensions": 0,
57
+ "default": null,
58
+ "generated": null,
59
+ "identity": null,
60
+ "name": "f_event_id",
61
+ "entityType": "columns",
62
+ "schema": "public",
63
+ "table": "t_events"
64
+ },
65
+ {
66
+ "type": "text",
67
+ "typeSchema": null,
68
+ "notNull": true,
69
+ "dimensions": 0,
70
+ "default": "''",
71
+ "generated": null,
72
+ "identity": null,
73
+ "name": "f_parent_id",
74
+ "entityType": "columns",
75
+ "schema": "public",
76
+ "table": "t_events"
77
+ },
78
+ {
79
+ "type": "text",
80
+ "typeSchema": null,
81
+ "notNull": true,
82
+ "dimensions": 0,
83
+ "default": "''",
84
+ "generated": null,
85
+ "identity": null,
86
+ "name": "f_type",
87
+ "entityType": "columns",
88
+ "schema": "public",
89
+ "table": "t_events"
90
+ },
91
+ {
92
+ "type": "text",
93
+ "typeSchema": null,
94
+ "notNull": true,
95
+ "dimensions": 0,
96
+ "default": "''",
97
+ "generated": null,
98
+ "identity": null,
99
+ "name": "f_kind",
100
+ "entityType": "columns",
101
+ "schema": "public",
102
+ "table": "t_events"
103
+ },
104
+ {
105
+ "type": "text",
106
+ "typeSchema": null,
107
+ "notNull": true,
108
+ "dimensions": 0,
109
+ "default": "''",
110
+ "generated": null,
111
+ "identity": null,
112
+ "name": "f_role",
113
+ "entityType": "columns",
114
+ "schema": "public",
115
+ "table": "t_events"
116
+ },
117
+ {
118
+ "type": "text",
119
+ "typeSchema": null,
120
+ "notNull": true,
121
+ "dimensions": 0,
122
+ "default": "''",
123
+ "generated": null,
124
+ "identity": null,
125
+ "name": "f_name",
126
+ "entityType": "columns",
127
+ "schema": "public",
128
+ "table": "t_events"
129
+ },
130
+ {
131
+ "type": "text",
132
+ "typeSchema": null,
133
+ "notNull": true,
134
+ "dimensions": 0,
135
+ "default": "''",
136
+ "generated": null,
137
+ "identity": null,
138
+ "name": "f_action_id",
139
+ "entityType": "columns",
140
+ "schema": "public",
141
+ "table": "t_events"
142
+ },
143
+ {
144
+ "type": "text",
145
+ "typeSchema": null,
146
+ "notNull": true,
147
+ "dimensions": 0,
148
+ "default": "''",
149
+ "generated": null,
150
+ "identity": null,
151
+ "name": "f_encoding",
152
+ "entityType": "columns",
153
+ "schema": "public",
154
+ "table": "t_events"
155
+ },
156
+ {
157
+ "type": "text",
158
+ "typeSchema": null,
159
+ "notNull": true,
160
+ "dimensions": 0,
161
+ "default": null,
162
+ "generated": null,
163
+ "identity": null,
164
+ "name": "f_data",
165
+ "entityType": "columns",
166
+ "schema": "public",
167
+ "table": "t_events"
168
+ },
169
+ {
170
+ "type": "bigint",
171
+ "typeSchema": null,
172
+ "notNull": true,
173
+ "dimensions": 0,
174
+ "default": "0",
175
+ "generated": null,
176
+ "identity": null,
177
+ "name": "f_created_at",
178
+ "entityType": "columns",
179
+ "schema": "public",
180
+ "table": "t_events"
181
+ },
182
+ {
183
+ "type": "integer",
184
+ "typeSchema": null,
185
+ "notNull": true,
186
+ "dimensions": 0,
187
+ "default": null,
188
+ "generated": null,
189
+ "identity": null,
190
+ "name": "f_singleton",
191
+ "entityType": "columns",
192
+ "schema": "public",
193
+ "table": "t_persistence_state"
194
+ },
195
+ {
196
+ "type": "text",
197
+ "typeSchema": null,
198
+ "notNull": true,
199
+ "dimensions": 0,
200
+ "default": null,
201
+ "generated": null,
202
+ "identity": null,
203
+ "name": "f_store_id",
204
+ "entityType": "columns",
205
+ "schema": "public",
206
+ "table": "t_persistence_state"
207
+ },
208
+ {
209
+ "type": "text",
210
+ "typeSchema": null,
211
+ "notNull": true,
212
+ "dimensions": 0,
213
+ "default": null,
214
+ "generated": null,
215
+ "identity": null,
216
+ "name": "f_key",
217
+ "entityType": "columns",
218
+ "schema": "public",
219
+ "table": "t_schema_meta"
220
+ },
221
+ {
222
+ "type": "text",
223
+ "typeSchema": null,
224
+ "notNull": true,
225
+ "dimensions": 0,
226
+ "default": null,
227
+ "generated": null,
228
+ "identity": null,
229
+ "name": "f_value",
230
+ "entityType": "columns",
231
+ "schema": "public",
232
+ "table": "t_schema_meta"
233
+ },
234
+ {
235
+ "type": "serial",
236
+ "typeSchema": null,
237
+ "notNull": true,
238
+ "dimensions": 0,
239
+ "default": null,
240
+ "generated": null,
241
+ "identity": null,
242
+ "name": "f_id",
243
+ "entityType": "columns",
244
+ "schema": "public",
245
+ "table": "t_session_events"
246
+ },
247
+ {
248
+ "type": "text",
249
+ "typeSchema": null,
250
+ "notNull": true,
251
+ "dimensions": 0,
252
+ "default": null,
253
+ "generated": null,
254
+ "identity": null,
255
+ "name": "f_session_id",
256
+ "entityType": "columns",
257
+ "schema": "public",
258
+ "table": "t_session_events"
259
+ },
260
+ {
261
+ "type": "text",
262
+ "typeSchema": null,
263
+ "notNull": true,
264
+ "dimensions": 0,
265
+ "default": null,
266
+ "generated": null,
267
+ "identity": null,
268
+ "name": "f_event_id",
269
+ "entityType": "columns",
270
+ "schema": "public",
271
+ "table": "t_session_events"
272
+ },
273
+ {
274
+ "type": "integer",
275
+ "typeSchema": null,
276
+ "notNull": true,
277
+ "dimensions": 0,
278
+ "default": null,
279
+ "generated": null,
280
+ "identity": null,
281
+ "name": "f_sequence",
282
+ "entityType": "columns",
283
+ "schema": "public",
284
+ "table": "t_session_events"
285
+ },
286
+ {
287
+ "type": "text",
288
+ "typeSchema": null,
289
+ "notNull": false,
290
+ "dimensions": 0,
291
+ "default": null,
292
+ "generated": null,
293
+ "identity": null,
294
+ "name": "f_surface_op",
295
+ "entityType": "columns",
296
+ "schema": "public",
297
+ "table": "t_session_events"
298
+ },
299
+ {
300
+ "type": "serial",
301
+ "typeSchema": null,
302
+ "notNull": true,
303
+ "dimensions": 0,
304
+ "default": null,
305
+ "generated": null,
306
+ "identity": null,
307
+ "name": "f_id",
308
+ "entityType": "columns",
309
+ "schema": "public",
310
+ "table": "t_sessions"
311
+ },
312
+ {
313
+ "type": "text",
314
+ "typeSchema": null,
315
+ "notNull": true,
316
+ "dimensions": 0,
317
+ "default": null,
318
+ "generated": null,
319
+ "identity": null,
320
+ "name": "f_session_id",
321
+ "entityType": "columns",
322
+ "schema": "public",
323
+ "table": "t_sessions"
324
+ },
325
+ {
326
+ "type": "text",
327
+ "typeSchema": null,
328
+ "notNull": true,
329
+ "dimensions": 0,
330
+ "default": "''",
331
+ "generated": null,
332
+ "identity": null,
333
+ "name": "f_head_event_id",
334
+ "entityType": "columns",
335
+ "schema": "public",
336
+ "table": "t_sessions"
337
+ },
338
+ {
339
+ "type": "integer",
340
+ "typeSchema": null,
341
+ "notNull": true,
342
+ "dimensions": 0,
343
+ "default": "-1",
344
+ "generated": null,
345
+ "identity": null,
346
+ "name": "f_head_sequence",
347
+ "entityType": "columns",
348
+ "schema": "public",
349
+ "table": "t_sessions"
350
+ },
351
+ {
352
+ "type": "integer",
353
+ "typeSchema": null,
354
+ "notNull": true,
355
+ "dimensions": 0,
356
+ "default": null,
357
+ "generated": null,
358
+ "identity": null,
359
+ "name": "f_version",
360
+ "entityType": "columns",
361
+ "schema": "public",
362
+ "table": "t_sessions"
363
+ },
364
+ {
365
+ "type": "bigint",
366
+ "typeSchema": null,
367
+ "notNull": true,
368
+ "dimensions": 0,
369
+ "default": null,
370
+ "generated": null,
371
+ "identity": null,
372
+ "name": "f_created_at",
373
+ "entityType": "columns",
374
+ "schema": "public",
375
+ "table": "t_sessions"
376
+ },
377
+ {
378
+ "type": "text",
379
+ "typeSchema": null,
380
+ "notNull": false,
381
+ "dimensions": 0,
382
+ "default": null,
383
+ "generated": null,
384
+ "identity": null,
385
+ "name": "f_cwd",
386
+ "entityType": "columns",
387
+ "schema": "public",
388
+ "table": "t_sessions"
389
+ },
390
+ {
391
+ "type": "text",
392
+ "typeSchema": null,
393
+ "notNull": false,
394
+ "dimensions": 0,
395
+ "default": null,
396
+ "generated": null,
397
+ "identity": null,
398
+ "name": "f_parent_session",
399
+ "entityType": "columns",
400
+ "schema": "public",
401
+ "table": "t_sessions"
402
+ },
403
+ {
404
+ "type": "integer",
405
+ "typeSchema": null,
406
+ "notNull": false,
407
+ "dimensions": 0,
408
+ "default": null,
409
+ "generated": null,
410
+ "identity": null,
411
+ "name": "f_seed_length",
412
+ "entityType": "columns",
413
+ "schema": "public",
414
+ "table": "t_sessions"
415
+ },
416
+ {
417
+ "type": "text",
418
+ "typeSchema": null,
419
+ "notNull": false,
420
+ "dimensions": 0,
421
+ "default": null,
422
+ "generated": null,
423
+ "identity": null,
424
+ "name": "f_origin",
425
+ "entityType": "columns",
426
+ "schema": "public",
427
+ "table": "t_sessions"
428
+ },
429
+ {
430
+ "type": "integer",
431
+ "typeSchema": null,
432
+ "notNull": false,
433
+ "dimensions": 0,
434
+ "default": null,
435
+ "generated": null,
436
+ "identity": null,
437
+ "name": "f_delegation_depth",
438
+ "entityType": "columns",
439
+ "schema": "public",
440
+ "table": "t_sessions"
441
+ },
442
+ {
443
+ "type": "text",
444
+ "typeSchema": null,
445
+ "notNull": true,
446
+ "dimensions": 0,
447
+ "default": null,
448
+ "generated": null,
449
+ "identity": null,
450
+ "name": "f_incarnation",
451
+ "entityType": "columns",
452
+ "schema": "public",
453
+ "table": "t_sessions"
454
+ },
455
+ {
456
+ "type": "integer",
457
+ "typeSchema": null,
458
+ "notNull": true,
459
+ "dimensions": 0,
460
+ "default": null,
461
+ "generated": null,
462
+ "identity": null,
463
+ "name": "f_revision",
464
+ "entityType": "columns",
465
+ "schema": "public",
466
+ "table": "t_sessions"
467
+ },
468
+ {
469
+ "nameExplicit": true,
470
+ "columns": [
471
+ {
472
+ "value": "f_kind",
473
+ "isExpression": false,
474
+ "asc": true,
475
+ "nullsFirst": false,
476
+ "opclass": null
477
+ }
478
+ ],
479
+ "isUnique": false,
480
+ "where": null,
481
+ "with": "",
482
+ "method": "btree",
483
+ "concurrently": false,
484
+ "name": "idx_events_kind",
485
+ "entityType": "indexes",
486
+ "schema": "public",
487
+ "table": "t_events"
488
+ },
489
+ {
490
+ "nameExplicit": true,
491
+ "columns": [
492
+ {
493
+ "value": "f_role",
494
+ "isExpression": false,
495
+ "asc": true,
496
+ "nullsFirst": false,
497
+ "opclass": null
498
+ }
499
+ ],
500
+ "isUnique": false,
501
+ "where": null,
502
+ "with": "",
503
+ "method": "btree",
504
+ "concurrently": false,
505
+ "name": "idx_events_role",
506
+ "entityType": "indexes",
507
+ "schema": "public",
508
+ "table": "t_events"
509
+ },
510
+ {
511
+ "nameExplicit": true,
512
+ "columns": [
513
+ {
514
+ "value": "f_name",
515
+ "isExpression": false,
516
+ "asc": true,
517
+ "nullsFirst": false,
518
+ "opclass": null
519
+ }
520
+ ],
521
+ "isUnique": false,
522
+ "where": null,
523
+ "with": "",
524
+ "method": "btree",
525
+ "concurrently": false,
526
+ "name": "idx_events_name",
527
+ "entityType": "indexes",
528
+ "schema": "public",
529
+ "table": "t_events"
530
+ },
531
+ {
532
+ "nameExplicit": true,
533
+ "columns": [
534
+ {
535
+ "value": "f_action_id",
536
+ "isExpression": false,
537
+ "asc": true,
538
+ "nullsFirst": false,
539
+ "opclass": null
540
+ }
541
+ ],
542
+ "isUnique": false,
543
+ "where": null,
544
+ "with": "",
545
+ "method": "btree",
546
+ "concurrently": false,
547
+ "name": "idx_events_action_id",
548
+ "entityType": "indexes",
549
+ "schema": "public",
550
+ "table": "t_events"
551
+ },
552
+ {
553
+ "nameExplicit": true,
554
+ "columns": [
555
+ {
556
+ "value": "f_event_id",
557
+ "isExpression": false,
558
+ "asc": true,
559
+ "nullsFirst": false,
560
+ "opclass": null
561
+ }
562
+ ],
563
+ "isUnique": false,
564
+ "where": null,
565
+ "with": "",
566
+ "method": "btree",
567
+ "concurrently": false,
568
+ "name": "idx_session_events_event_id",
569
+ "entityType": "indexes",
570
+ "schema": "public",
571
+ "table": "t_session_events"
572
+ },
573
+ {
574
+ "nameExplicit": false,
575
+ "columns": [
576
+ "f_session_id"
577
+ ],
578
+ "schemaTo": "public",
579
+ "tableTo": "t_sessions",
580
+ "columnsTo": [
581
+ "f_session_id"
582
+ ],
583
+ "onUpdate": "NO ACTION",
584
+ "onDelete": "CASCADE",
585
+ "name": "t_session_events_f_session_id_t_sessions_f_session_id_fkey",
586
+ "entityType": "fks",
587
+ "schema": "public",
588
+ "table": "t_session_events"
589
+ },
590
+ {
591
+ "nameExplicit": false,
592
+ "columns": [
593
+ "f_event_id"
594
+ ],
595
+ "schemaTo": "public",
596
+ "tableTo": "t_events",
597
+ "columnsTo": [
598
+ "f_event_id"
599
+ ],
600
+ "onUpdate": "NO ACTION",
601
+ "onDelete": "CASCADE",
602
+ "name": "t_session_events_f_event_id_t_events_f_event_id_fkey",
603
+ "entityType": "fks",
604
+ "schema": "public",
605
+ "table": "t_session_events"
606
+ },
607
+ {
608
+ "columns": [
609
+ "f_id"
610
+ ],
611
+ "nameExplicit": false,
612
+ "name": "t_events_pkey",
613
+ "schema": "public",
614
+ "table": "t_events",
615
+ "entityType": "pks"
616
+ },
617
+ {
618
+ "columns": [
619
+ "f_singleton"
620
+ ],
621
+ "nameExplicit": false,
622
+ "name": "t_persistence_state_pkey",
623
+ "schema": "public",
624
+ "table": "t_persistence_state",
625
+ "entityType": "pks"
626
+ },
627
+ {
628
+ "columns": [
629
+ "f_key"
630
+ ],
631
+ "nameExplicit": false,
632
+ "name": "t_schema_meta_pkey",
633
+ "schema": "public",
634
+ "table": "t_schema_meta",
635
+ "entityType": "pks"
636
+ },
637
+ {
638
+ "columns": [
639
+ "f_id"
640
+ ],
641
+ "nameExplicit": false,
642
+ "name": "t_session_events_pkey",
643
+ "schema": "public",
644
+ "table": "t_session_events",
645
+ "entityType": "pks"
646
+ },
647
+ {
648
+ "columns": [
649
+ "f_id"
650
+ ],
651
+ "nameExplicit": false,
652
+ "name": "t_sessions_pkey",
653
+ "schema": "public",
654
+ "table": "t_sessions",
655
+ "entityType": "pks"
656
+ },
657
+ {
658
+ "nameExplicit": true,
659
+ "columns": [
660
+ "f_session_id",
661
+ "f_sequence"
662
+ ],
663
+ "nullsNotDistinct": false,
664
+ "name": "uq_session_events_session_sequence",
665
+ "entityType": "uniques",
666
+ "schema": "public",
667
+ "table": "t_session_events"
668
+ },
669
+ {
670
+ "nameExplicit": false,
671
+ "columns": [
672
+ "f_event_id"
673
+ ],
674
+ "nullsNotDistinct": false,
675
+ "name": "t_events_f_event_id_key",
676
+ "schema": "public",
677
+ "table": "t_events",
678
+ "entityType": "uniques"
679
+ },
680
+ {
681
+ "nameExplicit": false,
682
+ "columns": [
683
+ "f_session_id"
684
+ ],
685
+ "nullsNotDistinct": false,
686
+ "name": "t_sessions_f_session_id_key",
687
+ "schema": "public",
688
+ "table": "t_sessions",
689
+ "entityType": "uniques"
690
+ },
691
+ {
692
+ "value": "f_singleton = 1",
693
+ "name": "ck_persistence_state_singleton",
694
+ "entityType": "checks",
695
+ "schema": "public",
696
+ "table": "t_persistence_state"
697
+ },
698
+ {
699
+ "isRlsEnabled": false,
700
+ "name": "t_session_projcache_row",
701
+ "entityType": "tables",
702
+ "schema": "public"
703
+ },
704
+ {
705
+ "isRlsEnabled": false,
706
+ "name": "t_storage_units",
707
+ "entityType": "tables",
708
+ "schema": "public"
709
+ },
710
+ {
711
+ "isRlsEnabled": false,
712
+ "name": "t_workspace_state",
713
+ "entityType": "tables",
714
+ "schema": "public"
715
+ },
716
+ {
717
+ "isRlsEnabled": false,
718
+ "name": "t_workspaces",
719
+ "entityType": "tables",
720
+ "schema": "public"
721
+ },
722
+ {
723
+ "isRlsEnabled": false,
724
+ "name": "t_workspace_sessions",
725
+ "entityType": "tables",
726
+ "schema": "public"
727
+ },
728
+ {
729
+ "type": "bigint",
730
+ "typeSchema": null,
731
+ "notNull": false,
732
+ "dimensions": 0,
733
+ "default": null,
734
+ "generated": null,
735
+ "identity": null,
736
+ "name": "f_archived_at",
737
+ "entityType": "columns",
738
+ "schema": "public",
739
+ "table": "t_sessions"
740
+ },
741
+ {
742
+ "type": "text",
743
+ "typeSchema": null,
744
+ "notNull": false,
745
+ "dimensions": 0,
746
+ "default": null,
747
+ "generated": null,
748
+ "identity": null,
749
+ "name": "f_title",
750
+ "entityType": "columns",
751
+ "schema": "public",
752
+ "table": "t_sessions"
753
+ },
754
+ {
755
+ "type": "integer",
756
+ "typeSchema": null,
757
+ "notNull": false,
758
+ "dimensions": 0,
759
+ "default": null,
760
+ "generated": null,
761
+ "identity": null,
762
+ "name": "f_title_seq",
763
+ "entityType": "columns",
764
+ "schema": "public",
765
+ "table": "t_sessions"
766
+ },
767
+ {
768
+ "type": "serial",
769
+ "typeSchema": null,
770
+ "notNull": true,
771
+ "dimensions": 0,
772
+ "default": null,
773
+ "generated": null,
774
+ "identity": null,
775
+ "name": "f_id",
776
+ "entityType": "columns",
777
+ "schema": "public",
778
+ "table": "t_session_projcache_row"
779
+ },
780
+ {
781
+ "type": "text",
782
+ "typeSchema": null,
783
+ "notNull": true,
784
+ "dimensions": 0,
785
+ "default": null,
786
+ "generated": null,
787
+ "identity": null,
788
+ "name": "f_session_id",
789
+ "entityType": "columns",
790
+ "schema": "public",
791
+ "table": "t_session_projcache_row"
792
+ },
793
+ {
794
+ "type": "text",
795
+ "typeSchema": null,
796
+ "notNull": true,
797
+ "dimensions": 0,
798
+ "default": null,
799
+ "generated": null,
800
+ "identity": null,
801
+ "name": "f_key",
802
+ "entityType": "columns",
803
+ "schema": "public",
804
+ "table": "t_session_projcache_row"
805
+ },
806
+ {
807
+ "type": "integer",
808
+ "typeSchema": null,
809
+ "notNull": true,
810
+ "dimensions": 0,
811
+ "default": null,
812
+ "generated": null,
813
+ "identity": null,
814
+ "name": "f_ver",
815
+ "entityType": "columns",
816
+ "schema": "public",
817
+ "table": "t_session_projcache_row"
818
+ },
819
+ {
820
+ "type": "integer",
821
+ "typeSchema": null,
822
+ "notNull": true,
823
+ "dimensions": 0,
824
+ "default": null,
825
+ "generated": null,
826
+ "identity": null,
827
+ "name": "f_seq",
828
+ "entityType": "columns",
829
+ "schema": "public",
830
+ "table": "t_session_projcache_row"
831
+ },
832
+ {
833
+ "type": "text",
834
+ "typeSchema": null,
835
+ "notNull": true,
836
+ "dimensions": 0,
837
+ "default": null,
838
+ "generated": null,
839
+ "identity": null,
840
+ "name": "f_val",
841
+ "entityType": "columns",
842
+ "schema": "public",
843
+ "table": "t_session_projcache_row"
844
+ },
845
+ {
846
+ "type": "text",
847
+ "typeSchema": null,
848
+ "notNull": true,
849
+ "dimensions": 0,
850
+ "default": null,
851
+ "generated": null,
852
+ "identity": null,
853
+ "name": "f_name",
854
+ "entityType": "columns",
855
+ "schema": "public",
856
+ "table": "t_storage_units"
857
+ },
858
+ {
859
+ "type": "integer",
860
+ "typeSchema": null,
861
+ "notNull": true,
862
+ "dimensions": 0,
863
+ "default": null,
864
+ "generated": null,
865
+ "identity": null,
866
+ "name": "f_version",
867
+ "entityType": "columns",
868
+ "schema": "public",
869
+ "table": "t_storage_units"
870
+ },
871
+ {
872
+ "type": "integer",
873
+ "typeSchema": null,
874
+ "notNull": true,
875
+ "dimensions": 0,
876
+ "default": null,
877
+ "generated": null,
878
+ "identity": null,
879
+ "name": "f_singleton",
880
+ "entityType": "columns",
881
+ "schema": "public",
882
+ "table": "t_workspace_state"
883
+ },
884
+ {
885
+ "type": "integer",
886
+ "typeSchema": null,
887
+ "notNull": true,
888
+ "dimensions": 0,
889
+ "default": null,
890
+ "generated": null,
891
+ "identity": null,
892
+ "name": "f_initialized",
893
+ "entityType": "columns",
894
+ "schema": "public",
895
+ "table": "t_workspace_state"
896
+ },
897
+ {
898
+ "type": "text",
899
+ "typeSchema": null,
900
+ "notNull": false,
901
+ "dimensions": 0,
902
+ "default": null,
903
+ "generated": null,
904
+ "identity": null,
905
+ "name": "f_pending_operation",
906
+ "entityType": "columns",
907
+ "schema": "public",
908
+ "table": "t_workspace_state"
909
+ },
910
+ {
911
+ "type": "text",
912
+ "typeSchema": null,
913
+ "notNull": false,
914
+ "dimensions": 0,
915
+ "default": null,
916
+ "generated": null,
917
+ "identity": null,
918
+ "name": "f_pending_workspace_id",
919
+ "entityType": "columns",
920
+ "schema": "public",
921
+ "table": "t_workspace_state"
922
+ },
923
+ {
924
+ "type": "serial",
925
+ "typeSchema": null,
926
+ "notNull": true,
927
+ "dimensions": 0,
928
+ "default": null,
929
+ "generated": null,
930
+ "identity": null,
931
+ "name": "f_id",
932
+ "entityType": "columns",
933
+ "schema": "public",
934
+ "table": "t_workspaces"
935
+ },
936
+ {
937
+ "type": "text",
938
+ "typeSchema": null,
939
+ "notNull": true,
940
+ "dimensions": 0,
941
+ "default": null,
942
+ "generated": null,
943
+ "identity": null,
944
+ "name": "f_workspace_id",
945
+ "entityType": "columns",
946
+ "schema": "public",
947
+ "table": "t_workspaces"
948
+ },
949
+ {
950
+ "type": "text",
951
+ "typeSchema": null,
952
+ "notNull": true,
953
+ "dimensions": 0,
954
+ "default": null,
955
+ "generated": null,
956
+ "identity": null,
957
+ "name": "f_path",
958
+ "entityType": "columns",
959
+ "schema": "public",
960
+ "table": "t_workspaces"
961
+ },
962
+ {
963
+ "type": "text",
964
+ "typeSchema": null,
965
+ "notNull": true,
966
+ "dimensions": 0,
967
+ "default": null,
968
+ "generated": null,
969
+ "identity": null,
970
+ "name": "f_title",
971
+ "entityType": "columns",
972
+ "schema": "public",
973
+ "table": "t_workspaces"
974
+ },
975
+ {
976
+ "type": "text",
977
+ "typeSchema": null,
978
+ "notNull": true,
979
+ "dimensions": 0,
980
+ "default": null,
981
+ "generated": null,
982
+ "identity": null,
983
+ "name": "f_created_at",
984
+ "entityType": "columns",
985
+ "schema": "public",
986
+ "table": "t_workspaces"
987
+ },
988
+ {
989
+ "type": "text",
990
+ "typeSchema": null,
991
+ "notNull": true,
992
+ "dimensions": 0,
993
+ "default": null,
994
+ "generated": null,
995
+ "identity": null,
996
+ "name": "f_updated_at",
997
+ "entityType": "columns",
998
+ "schema": "public",
999
+ "table": "t_workspaces"
1000
+ },
1001
+ {
1002
+ "type": "integer",
1003
+ "typeSchema": null,
1004
+ "notNull": true,
1005
+ "dimensions": 0,
1006
+ "default": "-1",
1007
+ "generated": null,
1008
+ "identity": null,
1009
+ "name": "f_position",
1010
+ "entityType": "columns",
1011
+ "schema": "public",
1012
+ "table": "t_workspaces"
1013
+ },
1014
+ {
1015
+ "type": "serial",
1016
+ "typeSchema": null,
1017
+ "notNull": true,
1018
+ "dimensions": 0,
1019
+ "default": null,
1020
+ "generated": null,
1021
+ "identity": null,
1022
+ "name": "f_id",
1023
+ "entityType": "columns",
1024
+ "schema": "public",
1025
+ "table": "t_workspace_sessions"
1026
+ },
1027
+ {
1028
+ "type": "text",
1029
+ "typeSchema": null,
1030
+ "notNull": true,
1031
+ "dimensions": 0,
1032
+ "default": null,
1033
+ "generated": null,
1034
+ "identity": null,
1035
+ "name": "f_workspace_id",
1036
+ "entityType": "columns",
1037
+ "schema": "public",
1038
+ "table": "t_workspace_sessions"
1039
+ },
1040
+ {
1041
+ "type": "text",
1042
+ "typeSchema": null,
1043
+ "notNull": true,
1044
+ "dimensions": 0,
1045
+ "default": null,
1046
+ "generated": null,
1047
+ "identity": null,
1048
+ "name": "f_session_id",
1049
+ "entityType": "columns",
1050
+ "schema": "public",
1051
+ "table": "t_workspace_sessions"
1052
+ },
1053
+ {
1054
+ "type": "integer",
1055
+ "typeSchema": null,
1056
+ "notNull": true,
1057
+ "dimensions": 0,
1058
+ "default": null,
1059
+ "generated": null,
1060
+ "identity": null,
1061
+ "name": "f_position",
1062
+ "entityType": "columns",
1063
+ "schema": "public",
1064
+ "table": "t_workspace_sessions"
1065
+ },
1066
+ {
1067
+ "columns": [
1068
+ "f_id"
1069
+ ],
1070
+ "nameExplicit": false,
1071
+ "name": "t_session_projcache_row_pkey",
1072
+ "schema": "public",
1073
+ "table": "t_session_projcache_row",
1074
+ "entityType": "pks"
1075
+ },
1076
+ {
1077
+ "columns": [
1078
+ "f_name"
1079
+ ],
1080
+ "nameExplicit": false,
1081
+ "name": "t_storage_units_pkey",
1082
+ "schema": "public",
1083
+ "table": "t_storage_units",
1084
+ "entityType": "pks"
1085
+ },
1086
+ {
1087
+ "columns": [
1088
+ "f_singleton"
1089
+ ],
1090
+ "nameExplicit": false,
1091
+ "name": "t_workspace_state_pkey",
1092
+ "schema": "public",
1093
+ "table": "t_workspace_state",
1094
+ "entityType": "pks"
1095
+ },
1096
+ {
1097
+ "columns": [
1098
+ "f_id"
1099
+ ],
1100
+ "nameExplicit": false,
1101
+ "name": "t_workspaces_pkey",
1102
+ "schema": "public",
1103
+ "table": "t_workspaces",
1104
+ "entityType": "pks"
1105
+ },
1106
+ {
1107
+ "columns": [
1108
+ "f_id"
1109
+ ],
1110
+ "nameExplicit": false,
1111
+ "name": "t_workspace_sessions_pkey",
1112
+ "schema": "public",
1113
+ "table": "t_workspace_sessions",
1114
+ "entityType": "pks"
1115
+ },
1116
+ {
1117
+ "columns": [
1118
+ "f_session_id",
1119
+ "f_key"
1120
+ ],
1121
+ "nameExplicit": true,
1122
+ "name": "uq_session_projcache_row_session_key",
1123
+ "entityType": "uniques",
1124
+ "table": "t_session_projcache_row",
1125
+ "nullsNotDistinct": false,
1126
+ "schema": "public"
1127
+ },
1128
+ {
1129
+ "columns": [
1130
+ "f_workspace_id"
1131
+ ],
1132
+ "nameExplicit": false,
1133
+ "name": "t_workspaces_f_workspace_id_unique",
1134
+ "entityType": "uniques",
1135
+ "table": "t_workspaces",
1136
+ "nullsNotDistinct": false,
1137
+ "schema": "public"
1138
+ },
1139
+ {
1140
+ "columns": [
1141
+ "f_workspace_id",
1142
+ "f_session_id"
1143
+ ],
1144
+ "nameExplicit": true,
1145
+ "name": "uq_workspace_sessions_workspace_session",
1146
+ "entityType": "uniques",
1147
+ "table": "t_workspace_sessions",
1148
+ "nullsNotDistinct": false,
1149
+ "schema": "public"
1150
+ },
1151
+ {
1152
+ "nameExplicit": true,
1153
+ "columns": [
1154
+ {
1155
+ "value": "f_key",
1156
+ "isExpression": false,
1157
+ "asc": true,
1158
+ "nullsFirst": false,
1159
+ "opclass": null
1160
+ }
1161
+ ],
1162
+ "isUnique": false,
1163
+ "where": null,
1164
+ "with": "",
1165
+ "method": "btree",
1166
+ "concurrently": false,
1167
+ "name": "idx_session_projcache_row_key",
1168
+ "entityType": "indexes",
1169
+ "schema": "public",
1170
+ "table": "t_session_projcache_row"
1171
+ },
1172
+ {
1173
+ "nameExplicit": true,
1174
+ "columns": [
1175
+ {
1176
+ "value": "f_session_id",
1177
+ "isExpression": false,
1178
+ "asc": true,
1179
+ "nullsFirst": false,
1180
+ "opclass": null
1181
+ }
1182
+ ],
1183
+ "isUnique": false,
1184
+ "where": null,
1185
+ "with": "",
1186
+ "method": "btree",
1187
+ "concurrently": false,
1188
+ "name": "idx_workspace_sessions_session_id",
1189
+ "entityType": "indexes",
1190
+ "schema": "public",
1191
+ "table": "t_workspace_sessions"
1192
+ },
1193
+ {
1194
+ "value": "f_singleton = 1",
1195
+ "name": "ck_workspace_state_singleton",
1196
+ "entityType": "checks",
1197
+ "table": "t_workspace_state",
1198
+ "schema": "public"
1199
+ },
1200
+ {
1201
+ "columns": [
1202
+ "f_session_id"
1203
+ ],
1204
+ "tableTo": "t_sessions",
1205
+ "columnsTo": [
1206
+ "f_session_id"
1207
+ ],
1208
+ "onUpdate": "NO ACTION",
1209
+ "onDelete": "CASCADE",
1210
+ "nameExplicit": false,
1211
+ "name": "fk_t_session_projcache_row_f_session_id_t_sessions_f_session_id_fk",
1212
+ "entityType": "fks",
1213
+ "table": "t_session_projcache_row",
1214
+ "schemaTo": "public",
1215
+ "schema": "public"
1216
+ },
1217
+ {
1218
+ "columns": [
1219
+ "f_workspace_id"
1220
+ ],
1221
+ "tableTo": "t_workspaces",
1222
+ "columnsTo": [
1223
+ "f_workspace_id"
1224
+ ],
1225
+ "onUpdate": "NO ACTION",
1226
+ "onDelete": "CASCADE",
1227
+ "nameExplicit": false,
1228
+ "name": "fk_t_workspace_sessions_f_workspace_id_t_workspaces_f_workspace_id_fk",
1229
+ "entityType": "fks",
1230
+ "table": "t_workspace_sessions",
1231
+ "schemaTo": "public",
1232
+ "schema": "public"
1233
+ }
1234
+ ],
1235
+ "renames": []
1236
+ }