@manablox/db 0.1.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,2108 @@
1
+ {
2
+ "id": "53fb727f-2718-48d0-8b5b-ee603c1d7276",
3
+ "prevId": "d0c74e0f-b423-4061-88c4-fdc16440b5e7",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.accounts": {
8
+ "name": "accounts",
9
+ "schema": "",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "uuid",
14
+ "primaryKey": true,
15
+ "notNull": true,
16
+ "default": "gen_random_uuid()"
17
+ },
18
+ "user_id": {
19
+ "name": "user_id",
20
+ "type": "uuid",
21
+ "primaryKey": false,
22
+ "notNull": true
23
+ },
24
+ "account_id": {
25
+ "name": "account_id",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true
29
+ },
30
+ "provider_id": {
31
+ "name": "provider_id",
32
+ "type": "text",
33
+ "primaryKey": false,
34
+ "notNull": true
35
+ },
36
+ "access_token": {
37
+ "name": "access_token",
38
+ "type": "text",
39
+ "primaryKey": false,
40
+ "notNull": false
41
+ },
42
+ "refresh_token": {
43
+ "name": "refresh_token",
44
+ "type": "text",
45
+ "primaryKey": false,
46
+ "notNull": false
47
+ },
48
+ "access_token_expires_at": {
49
+ "name": "access_token_expires_at",
50
+ "type": "timestamp with time zone",
51
+ "primaryKey": false,
52
+ "notNull": false
53
+ },
54
+ "refresh_token_expires_at": {
55
+ "name": "refresh_token_expires_at",
56
+ "type": "timestamp with time zone",
57
+ "primaryKey": false,
58
+ "notNull": false
59
+ },
60
+ "scope": {
61
+ "name": "scope",
62
+ "type": "text",
63
+ "primaryKey": false,
64
+ "notNull": false
65
+ },
66
+ "id_token": {
67
+ "name": "id_token",
68
+ "type": "text",
69
+ "primaryKey": false,
70
+ "notNull": false
71
+ },
72
+ "password": {
73
+ "name": "password",
74
+ "type": "text",
75
+ "primaryKey": false,
76
+ "notNull": false
77
+ },
78
+ "created_at": {
79
+ "name": "created_at",
80
+ "type": "timestamp with time zone",
81
+ "primaryKey": false,
82
+ "notNull": true,
83
+ "default": "now()"
84
+ },
85
+ "updated_at": {
86
+ "name": "updated_at",
87
+ "type": "timestamp with time zone",
88
+ "primaryKey": false,
89
+ "notNull": true,
90
+ "default": "now()"
91
+ }
92
+ },
93
+ "indexes": {
94
+ "accounts_provider_account_key": {
95
+ "name": "accounts_provider_account_key",
96
+ "columns": [
97
+ {
98
+ "expression": "provider_id",
99
+ "isExpression": false,
100
+ "asc": true,
101
+ "nulls": "last"
102
+ },
103
+ {
104
+ "expression": "account_id",
105
+ "isExpression": false,
106
+ "asc": true,
107
+ "nulls": "last"
108
+ }
109
+ ],
110
+ "isUnique": true,
111
+ "concurrently": false,
112
+ "method": "btree",
113
+ "with": {}
114
+ }
115
+ },
116
+ "foreignKeys": {
117
+ "accounts_user_id_users_id_fk": {
118
+ "name": "accounts_user_id_users_id_fk",
119
+ "tableFrom": "accounts",
120
+ "tableTo": "users",
121
+ "columnsFrom": ["user_id"],
122
+ "columnsTo": ["id"],
123
+ "onDelete": "cascade",
124
+ "onUpdate": "no action"
125
+ }
126
+ },
127
+ "compositePrimaryKeys": {},
128
+ "uniqueConstraints": {},
129
+ "policies": {},
130
+ "checkConstraints": {},
131
+ "isRLSEnabled": false
132
+ },
133
+ "public.apikeys": {
134
+ "name": "apikeys",
135
+ "schema": "",
136
+ "columns": {
137
+ "id": {
138
+ "name": "id",
139
+ "type": "uuid",
140
+ "primaryKey": true,
141
+ "notNull": true,
142
+ "default": "gen_random_uuid()"
143
+ },
144
+ "name": {
145
+ "name": "name",
146
+ "type": "text",
147
+ "primaryKey": false,
148
+ "notNull": false
149
+ },
150
+ "start": {
151
+ "name": "start",
152
+ "type": "text",
153
+ "primaryKey": false,
154
+ "notNull": false
155
+ },
156
+ "prefix": {
157
+ "name": "prefix",
158
+ "type": "text",
159
+ "primaryKey": false,
160
+ "notNull": false
161
+ },
162
+ "key": {
163
+ "name": "key",
164
+ "type": "text",
165
+ "primaryKey": false,
166
+ "notNull": true
167
+ },
168
+ "user_id": {
169
+ "name": "user_id",
170
+ "type": "uuid",
171
+ "primaryKey": false,
172
+ "notNull": true
173
+ },
174
+ "enabled": {
175
+ "name": "enabled",
176
+ "type": "boolean",
177
+ "primaryKey": false,
178
+ "notNull": true,
179
+ "default": true
180
+ },
181
+ "expires_at": {
182
+ "name": "expires_at",
183
+ "type": "timestamp with time zone",
184
+ "primaryKey": false,
185
+ "notNull": false
186
+ },
187
+ "last_request": {
188
+ "name": "last_request",
189
+ "type": "timestamp with time zone",
190
+ "primaryKey": false,
191
+ "notNull": false
192
+ },
193
+ "permissions": {
194
+ "name": "permissions",
195
+ "type": "text",
196
+ "primaryKey": false,
197
+ "notNull": false
198
+ },
199
+ "metadata": {
200
+ "name": "metadata",
201
+ "type": "text",
202
+ "primaryKey": false,
203
+ "notNull": false
204
+ },
205
+ "created_at": {
206
+ "name": "created_at",
207
+ "type": "timestamp with time zone",
208
+ "primaryKey": false,
209
+ "notNull": true,
210
+ "default": "now()"
211
+ },
212
+ "updated_at": {
213
+ "name": "updated_at",
214
+ "type": "timestamp with time zone",
215
+ "primaryKey": false,
216
+ "notNull": true,
217
+ "default": "now()"
218
+ }
219
+ },
220
+ "indexes": {
221
+ "apikeys_user_idx": {
222
+ "name": "apikeys_user_idx",
223
+ "columns": [
224
+ {
225
+ "expression": "user_id",
226
+ "isExpression": false,
227
+ "asc": true,
228
+ "nulls": "last"
229
+ }
230
+ ],
231
+ "isUnique": false,
232
+ "concurrently": false,
233
+ "method": "btree",
234
+ "with": {}
235
+ }
236
+ },
237
+ "foreignKeys": {
238
+ "apikeys_user_id_users_id_fk": {
239
+ "name": "apikeys_user_id_users_id_fk",
240
+ "tableFrom": "apikeys",
241
+ "tableTo": "users",
242
+ "columnsFrom": ["user_id"],
243
+ "columnsTo": ["id"],
244
+ "onDelete": "cascade",
245
+ "onUpdate": "no action"
246
+ }
247
+ },
248
+ "compositePrimaryKeys": {},
249
+ "uniqueConstraints": {},
250
+ "policies": {},
251
+ "checkConstraints": {},
252
+ "isRLSEnabled": false
253
+ },
254
+ "public.asset_variants": {
255
+ "name": "asset_variants",
256
+ "schema": "",
257
+ "columns": {
258
+ "id": {
259
+ "name": "id",
260
+ "type": "uuid",
261
+ "primaryKey": true,
262
+ "notNull": true,
263
+ "default": "gen_random_uuid()"
264
+ },
265
+ "asset_id": {
266
+ "name": "asset_id",
267
+ "type": "uuid",
268
+ "primaryKey": false,
269
+ "notNull": true
270
+ },
271
+ "preset": {
272
+ "name": "preset",
273
+ "type": "text",
274
+ "primaryKey": false,
275
+ "notNull": true
276
+ },
277
+ "format": {
278
+ "name": "format",
279
+ "type": "text",
280
+ "primaryKey": false,
281
+ "notNull": true
282
+ },
283
+ "key": {
284
+ "name": "key",
285
+ "type": "text",
286
+ "primaryKey": false,
287
+ "notNull": true
288
+ },
289
+ "width": {
290
+ "name": "width",
291
+ "type": "integer",
292
+ "primaryKey": false,
293
+ "notNull": false
294
+ },
295
+ "height": {
296
+ "name": "height",
297
+ "type": "integer",
298
+ "primaryKey": false,
299
+ "notNull": false
300
+ },
301
+ "size": {
302
+ "name": "size",
303
+ "type": "integer",
304
+ "primaryKey": false,
305
+ "notNull": true
306
+ },
307
+ "created_at": {
308
+ "name": "created_at",
309
+ "type": "timestamp with time zone",
310
+ "primaryKey": false,
311
+ "notNull": true,
312
+ "default": "now()"
313
+ }
314
+ },
315
+ "indexes": {
316
+ "asset_variants_asset_preset_format_key": {
317
+ "name": "asset_variants_asset_preset_format_key",
318
+ "columns": [
319
+ {
320
+ "expression": "asset_id",
321
+ "isExpression": false,
322
+ "asc": true,
323
+ "nulls": "last"
324
+ },
325
+ {
326
+ "expression": "preset",
327
+ "isExpression": false,
328
+ "asc": true,
329
+ "nulls": "last"
330
+ },
331
+ {
332
+ "expression": "format",
333
+ "isExpression": false,
334
+ "asc": true,
335
+ "nulls": "last"
336
+ }
337
+ ],
338
+ "isUnique": true,
339
+ "concurrently": false,
340
+ "method": "btree",
341
+ "with": {}
342
+ }
343
+ },
344
+ "foreignKeys": {
345
+ "asset_variants_asset_id_assets_id_fk": {
346
+ "name": "asset_variants_asset_id_assets_id_fk",
347
+ "tableFrom": "asset_variants",
348
+ "tableTo": "assets",
349
+ "columnsFrom": ["asset_id"],
350
+ "columnsTo": ["id"],
351
+ "onDelete": "cascade",
352
+ "onUpdate": "no action"
353
+ }
354
+ },
355
+ "compositePrimaryKeys": {},
356
+ "uniqueConstraints": {},
357
+ "policies": {},
358
+ "checkConstraints": {},
359
+ "isRLSEnabled": false
360
+ },
361
+ "public.assets": {
362
+ "name": "assets",
363
+ "schema": "",
364
+ "columns": {
365
+ "id": {
366
+ "name": "id",
367
+ "type": "uuid",
368
+ "primaryKey": true,
369
+ "notNull": true,
370
+ "default": "gen_random_uuid()"
371
+ },
372
+ "space_id": {
373
+ "name": "space_id",
374
+ "type": "uuid",
375
+ "primaryKey": false,
376
+ "notNull": true
377
+ },
378
+ "driver": {
379
+ "name": "driver",
380
+ "type": "text",
381
+ "primaryKey": false,
382
+ "notNull": true,
383
+ "default": "'local'"
384
+ },
385
+ "key": {
386
+ "name": "key",
387
+ "type": "text",
388
+ "primaryKey": false,
389
+ "notNull": true
390
+ },
391
+ "filename": {
392
+ "name": "filename",
393
+ "type": "text",
394
+ "primaryKey": false,
395
+ "notNull": true
396
+ },
397
+ "name": {
398
+ "name": "name",
399
+ "type": "text",
400
+ "primaryKey": false,
401
+ "notNull": true
402
+ },
403
+ "mime_type": {
404
+ "name": "mime_type",
405
+ "type": "text",
406
+ "primaryKey": false,
407
+ "notNull": true
408
+ },
409
+ "size": {
410
+ "name": "size",
411
+ "type": "integer",
412
+ "primaryKey": false,
413
+ "notNull": true
414
+ },
415
+ "width": {
416
+ "name": "width",
417
+ "type": "integer",
418
+ "primaryKey": false,
419
+ "notNull": false
420
+ },
421
+ "height": {
422
+ "name": "height",
423
+ "type": "integer",
424
+ "primaryKey": false,
425
+ "notNull": false
426
+ },
427
+ "duration": {
428
+ "name": "duration",
429
+ "type": "integer",
430
+ "primaryKey": false,
431
+ "notNull": false
432
+ },
433
+ "checksum": {
434
+ "name": "checksum",
435
+ "type": "text",
436
+ "primaryKey": false,
437
+ "notNull": false
438
+ },
439
+ "alt": {
440
+ "name": "alt",
441
+ "type": "text",
442
+ "primaryKey": false,
443
+ "notNull": false
444
+ },
445
+ "title": {
446
+ "name": "title",
447
+ "type": "text",
448
+ "primaryKey": false,
449
+ "notNull": false
450
+ },
451
+ "meta": {
452
+ "name": "meta",
453
+ "type": "jsonb",
454
+ "primaryKey": false,
455
+ "notNull": true,
456
+ "default": "'{}'::jsonb"
457
+ },
458
+ "created_at": {
459
+ "name": "created_at",
460
+ "type": "timestamp with time zone",
461
+ "primaryKey": false,
462
+ "notNull": true,
463
+ "default": "now()"
464
+ },
465
+ "updated_at": {
466
+ "name": "updated_at",
467
+ "type": "timestamp with time zone",
468
+ "primaryKey": false,
469
+ "notNull": true,
470
+ "default": "now()"
471
+ },
472
+ "created_by": {
473
+ "name": "created_by",
474
+ "type": "uuid",
475
+ "primaryKey": false,
476
+ "notNull": false
477
+ }
478
+ },
479
+ "indexes": {
480
+ "assets_driver_key_key": {
481
+ "name": "assets_driver_key_key",
482
+ "columns": [
483
+ {
484
+ "expression": "driver",
485
+ "isExpression": false,
486
+ "asc": true,
487
+ "nulls": "last"
488
+ },
489
+ {
490
+ "expression": "key",
491
+ "isExpression": false,
492
+ "asc": true,
493
+ "nulls": "last"
494
+ }
495
+ ],
496
+ "isUnique": true,
497
+ "concurrently": false,
498
+ "method": "btree",
499
+ "with": {}
500
+ },
501
+ "assets_space_idx": {
502
+ "name": "assets_space_idx",
503
+ "columns": [
504
+ {
505
+ "expression": "space_id",
506
+ "isExpression": false,
507
+ "asc": true,
508
+ "nulls": "last"
509
+ },
510
+ {
511
+ "expression": "created_at",
512
+ "isExpression": false,
513
+ "asc": true,
514
+ "nulls": "last"
515
+ }
516
+ ],
517
+ "isUnique": false,
518
+ "concurrently": false,
519
+ "method": "btree",
520
+ "with": {}
521
+ },
522
+ "assets_checksum_idx": {
523
+ "name": "assets_checksum_idx",
524
+ "columns": [
525
+ {
526
+ "expression": "space_id",
527
+ "isExpression": false,
528
+ "asc": true,
529
+ "nulls": "last"
530
+ },
531
+ {
532
+ "expression": "checksum",
533
+ "isExpression": false,
534
+ "asc": true,
535
+ "nulls": "last"
536
+ }
537
+ ],
538
+ "isUnique": false,
539
+ "concurrently": false,
540
+ "method": "btree",
541
+ "with": {}
542
+ },
543
+ "assets_mime_idx": {
544
+ "name": "assets_mime_idx",
545
+ "columns": [
546
+ {
547
+ "expression": "space_id",
548
+ "isExpression": false,
549
+ "asc": true,
550
+ "nulls": "last"
551
+ },
552
+ {
553
+ "expression": "mime_type",
554
+ "isExpression": false,
555
+ "asc": true,
556
+ "nulls": "last"
557
+ }
558
+ ],
559
+ "isUnique": false,
560
+ "concurrently": false,
561
+ "method": "btree",
562
+ "with": {}
563
+ }
564
+ },
565
+ "foreignKeys": {
566
+ "assets_space_id_spaces_id_fk": {
567
+ "name": "assets_space_id_spaces_id_fk",
568
+ "tableFrom": "assets",
569
+ "tableTo": "spaces",
570
+ "columnsFrom": ["space_id"],
571
+ "columnsTo": ["id"],
572
+ "onDelete": "cascade",
573
+ "onUpdate": "no action"
574
+ }
575
+ },
576
+ "compositePrimaryKeys": {},
577
+ "uniqueConstraints": {},
578
+ "policies": {},
579
+ "checkConstraints": {},
580
+ "isRLSEnabled": false
581
+ },
582
+ "public.content_types": {
583
+ "name": "content_types",
584
+ "schema": "",
585
+ "columns": {
586
+ "id": {
587
+ "name": "id",
588
+ "type": "uuid",
589
+ "primaryKey": true,
590
+ "notNull": true,
591
+ "default": "gen_random_uuid()"
592
+ },
593
+ "space_id": {
594
+ "name": "space_id",
595
+ "type": "uuid",
596
+ "primaryKey": false,
597
+ "notNull": false
598
+ },
599
+ "name": {
600
+ "name": "name",
601
+ "type": "text",
602
+ "primaryKey": false,
603
+ "notNull": true
604
+ },
605
+ "label": {
606
+ "name": "label",
607
+ "type": "text",
608
+ "primaryKey": false,
609
+ "notNull": true
610
+ },
611
+ "description": {
612
+ "name": "description",
613
+ "type": "text",
614
+ "primaryKey": false,
615
+ "notNull": false
616
+ },
617
+ "icon": {
618
+ "name": "icon",
619
+ "type": "text",
620
+ "primaryKey": false,
621
+ "notNull": false
622
+ },
623
+ "kind": {
624
+ "name": "kind",
625
+ "type": "text",
626
+ "primaryKey": false,
627
+ "notNull": true,
628
+ "default": "'content'"
629
+ },
630
+ "has_slug": {
631
+ "name": "has_slug",
632
+ "type": "boolean",
633
+ "primaryKey": false,
634
+ "notNull": true,
635
+ "default": true
636
+ },
637
+ "is_publishable": {
638
+ "name": "is_publishable",
639
+ "type": "boolean",
640
+ "primaryKey": false,
641
+ "notNull": true,
642
+ "default": true
643
+ },
644
+ "is_visible_in_tree": {
645
+ "name": "is_visible_in_tree",
646
+ "type": "boolean",
647
+ "primaryKey": false,
648
+ "notNull": true,
649
+ "default": true
650
+ },
651
+ "can_be_visible_in_menu": {
652
+ "name": "can_be_visible_in_menu",
653
+ "type": "boolean",
654
+ "primaryKey": false,
655
+ "notNull": true,
656
+ "default": true
657
+ },
658
+ "fields": {
659
+ "name": "fields",
660
+ "type": "jsonb",
661
+ "primaryKey": false,
662
+ "notNull": true,
663
+ "default": "'[]'::jsonb"
664
+ },
665
+ "created_at": {
666
+ "name": "created_at",
667
+ "type": "timestamp with time zone",
668
+ "primaryKey": false,
669
+ "notNull": true,
670
+ "default": "now()"
671
+ },
672
+ "updated_at": {
673
+ "name": "updated_at",
674
+ "type": "timestamp with time zone",
675
+ "primaryKey": false,
676
+ "notNull": true,
677
+ "default": "now()"
678
+ }
679
+ },
680
+ "indexes": {
681
+ "content_types_space_idx": {
682
+ "name": "content_types_space_idx",
683
+ "columns": [
684
+ {
685
+ "expression": "space_id",
686
+ "isExpression": false,
687
+ "asc": true,
688
+ "nulls": "last"
689
+ }
690
+ ],
691
+ "isUnique": false,
692
+ "concurrently": false,
693
+ "method": "btree",
694
+ "with": {}
695
+ }
696
+ },
697
+ "foreignKeys": {
698
+ "content_types_space_id_spaces_id_fk": {
699
+ "name": "content_types_space_id_spaces_id_fk",
700
+ "tableFrom": "content_types",
701
+ "tableTo": "spaces",
702
+ "columnsFrom": ["space_id"],
703
+ "columnsTo": ["id"],
704
+ "onDelete": "cascade",
705
+ "onUpdate": "no action"
706
+ }
707
+ },
708
+ "compositePrimaryKeys": {},
709
+ "uniqueConstraints": {
710
+ "content_types_space_name_key": {
711
+ "name": "content_types_space_name_key",
712
+ "nullsNotDistinct": true,
713
+ "columns": ["space_id", "name"]
714
+ }
715
+ },
716
+ "policies": {},
717
+ "checkConstraints": {},
718
+ "isRLSEnabled": false
719
+ },
720
+ "public.content_versions": {
721
+ "name": "content_versions",
722
+ "schema": "",
723
+ "columns": {
724
+ "id": {
725
+ "name": "id",
726
+ "type": "uuid",
727
+ "primaryKey": true,
728
+ "notNull": true,
729
+ "default": "gen_random_uuid()"
730
+ },
731
+ "content_id": {
732
+ "name": "content_id",
733
+ "type": "uuid",
734
+ "primaryKey": false,
735
+ "notNull": true
736
+ },
737
+ "version": {
738
+ "name": "version",
739
+ "type": "integer",
740
+ "primaryKey": false,
741
+ "notNull": true
742
+ },
743
+ "label": {
744
+ "name": "label",
745
+ "type": "text",
746
+ "primaryKey": false,
747
+ "notNull": false
748
+ },
749
+ "snapshot": {
750
+ "name": "snapshot",
751
+ "type": "jsonb",
752
+ "primaryKey": false,
753
+ "notNull": true
754
+ },
755
+ "created_at": {
756
+ "name": "created_at",
757
+ "type": "timestamp with time zone",
758
+ "primaryKey": false,
759
+ "notNull": true,
760
+ "default": "now()"
761
+ },
762
+ "created_by": {
763
+ "name": "created_by",
764
+ "type": "uuid",
765
+ "primaryKey": false,
766
+ "notNull": false
767
+ }
768
+ },
769
+ "indexes": {
770
+ "content_versions_content_version_key": {
771
+ "name": "content_versions_content_version_key",
772
+ "columns": [
773
+ {
774
+ "expression": "content_id",
775
+ "isExpression": false,
776
+ "asc": true,
777
+ "nulls": "last"
778
+ },
779
+ {
780
+ "expression": "version",
781
+ "isExpression": false,
782
+ "asc": true,
783
+ "nulls": "last"
784
+ }
785
+ ],
786
+ "isUnique": true,
787
+ "concurrently": false,
788
+ "method": "btree",
789
+ "with": {}
790
+ },
791
+ "content_versions_content_idx": {
792
+ "name": "content_versions_content_idx",
793
+ "columns": [
794
+ {
795
+ "expression": "content_id",
796
+ "isExpression": false,
797
+ "asc": true,
798
+ "nulls": "last"
799
+ },
800
+ {
801
+ "expression": "created_at",
802
+ "isExpression": false,
803
+ "asc": true,
804
+ "nulls": "last"
805
+ }
806
+ ],
807
+ "isUnique": false,
808
+ "concurrently": false,
809
+ "method": "btree",
810
+ "with": {}
811
+ }
812
+ },
813
+ "foreignKeys": {},
814
+ "compositePrimaryKeys": {},
815
+ "uniqueConstraints": {},
816
+ "policies": {},
817
+ "checkConstraints": {},
818
+ "isRLSEnabled": false
819
+ },
820
+ "public.contents": {
821
+ "name": "contents",
822
+ "schema": "",
823
+ "columns": {
824
+ "id": {
825
+ "name": "id",
826
+ "type": "uuid",
827
+ "primaryKey": true,
828
+ "notNull": true,
829
+ "default": "gen_random_uuid()"
830
+ },
831
+ "space_id": {
832
+ "name": "space_id",
833
+ "type": "uuid",
834
+ "primaryKey": false,
835
+ "notNull": true
836
+ },
837
+ "type_id": {
838
+ "name": "type_id",
839
+ "type": "uuid",
840
+ "primaryKey": false,
841
+ "notNull": true
842
+ },
843
+ "locale": {
844
+ "name": "locale",
845
+ "type": "text",
846
+ "primaryKey": false,
847
+ "notNull": true
848
+ },
849
+ "localization_id": {
850
+ "name": "localization_id",
851
+ "type": "uuid",
852
+ "primaryKey": false,
853
+ "notNull": true
854
+ },
855
+ "parent_id": {
856
+ "name": "parent_id",
857
+ "type": "uuid",
858
+ "primaryKey": false,
859
+ "notNull": false
860
+ },
861
+ "title": {
862
+ "name": "title",
863
+ "type": "text",
864
+ "primaryKey": false,
865
+ "notNull": true
866
+ },
867
+ "slug": {
868
+ "name": "slug",
869
+ "type": "text",
870
+ "primaryKey": false,
871
+ "notNull": true
872
+ },
873
+ "path": {
874
+ "name": "path",
875
+ "type": "ltree",
876
+ "primaryKey": false,
877
+ "notNull": true
878
+ },
879
+ "permalink": {
880
+ "name": "permalink",
881
+ "type": "text",
882
+ "primaryKey": false,
883
+ "notNull": false
884
+ },
885
+ "permalink_path": {
886
+ "name": "permalink_path",
887
+ "type": "text",
888
+ "primaryKey": false,
889
+ "notNull": true,
890
+ "default": "''"
891
+ },
892
+ "permalink_segment": {
893
+ "name": "permalink_segment",
894
+ "type": "text",
895
+ "primaryKey": false,
896
+ "notNull": false
897
+ },
898
+ "status": {
899
+ "name": "status",
900
+ "type": "text",
901
+ "primaryKey": false,
902
+ "notNull": true,
903
+ "default": "'draft'"
904
+ },
905
+ "visible_in_menu": {
906
+ "name": "visible_in_menu",
907
+ "type": "boolean",
908
+ "primaryKey": false,
909
+ "notNull": true,
910
+ "default": false
911
+ },
912
+ "position": {
913
+ "name": "position",
914
+ "type": "integer",
915
+ "primaryKey": false,
916
+ "notNull": true,
917
+ "default": 0
918
+ },
919
+ "fields": {
920
+ "name": "fields",
921
+ "type": "jsonb",
922
+ "primaryKey": false,
923
+ "notNull": true,
924
+ "default": "'{}'::jsonb"
925
+ },
926
+ "search_text": {
927
+ "name": "search_text",
928
+ "type": "text",
929
+ "primaryKey": false,
930
+ "notNull": true,
931
+ "default": "''"
932
+ },
933
+ "version": {
934
+ "name": "version",
935
+ "type": "integer",
936
+ "primaryKey": false,
937
+ "notNull": true,
938
+ "default": 1
939
+ },
940
+ "created_at": {
941
+ "name": "created_at",
942
+ "type": "timestamp with time zone",
943
+ "primaryKey": false,
944
+ "notNull": true,
945
+ "default": "now()"
946
+ },
947
+ "updated_at": {
948
+ "name": "updated_at",
949
+ "type": "timestamp with time zone",
950
+ "primaryKey": false,
951
+ "notNull": true,
952
+ "default": "now()"
953
+ },
954
+ "created_by": {
955
+ "name": "created_by",
956
+ "type": "uuid",
957
+ "primaryKey": false,
958
+ "notNull": false
959
+ },
960
+ "updated_by": {
961
+ "name": "updated_by",
962
+ "type": "uuid",
963
+ "primaryKey": false,
964
+ "notNull": false
965
+ },
966
+ "published_at": {
967
+ "name": "published_at",
968
+ "type": "timestamp with time zone",
969
+ "primaryKey": false,
970
+ "notNull": false
971
+ },
972
+ "search": {
973
+ "name": "search",
974
+ "type": "tsvector",
975
+ "primaryKey": false,
976
+ "notNull": false,
977
+ "generated": {
978
+ "as": "to_tsvector('simple', coalesce(title, '') || ' ' || coalesce(search_text, ''))",
979
+ "type": "stored"
980
+ }
981
+ }
982
+ },
983
+ "indexes": {
984
+ "contents_path_gist_idx": {
985
+ "name": "contents_path_gist_idx",
986
+ "columns": [
987
+ {
988
+ "expression": "path",
989
+ "isExpression": false,
990
+ "asc": true,
991
+ "nulls": "last"
992
+ }
993
+ ],
994
+ "isUnique": false,
995
+ "concurrently": false,
996
+ "method": "gist",
997
+ "with": {}
998
+ },
999
+ "contents_parent_idx": {
1000
+ "name": "contents_parent_idx",
1001
+ "columns": [
1002
+ {
1003
+ "expression": "parent_id",
1004
+ "isExpression": false,
1005
+ "asc": true,
1006
+ "nulls": "last"
1007
+ }
1008
+ ],
1009
+ "isUnique": false,
1010
+ "concurrently": false,
1011
+ "method": "btree",
1012
+ "with": {}
1013
+ },
1014
+ "contents_space_type_idx": {
1015
+ "name": "contents_space_type_idx",
1016
+ "columns": [
1017
+ {
1018
+ "expression": "space_id",
1019
+ "isExpression": false,
1020
+ "asc": true,
1021
+ "nulls": "last"
1022
+ },
1023
+ {
1024
+ "expression": "type_id",
1025
+ "isExpression": false,
1026
+ "asc": true,
1027
+ "nulls": "last"
1028
+ }
1029
+ ],
1030
+ "isUnique": false,
1031
+ "concurrently": false,
1032
+ "method": "btree",
1033
+ "with": {}
1034
+ },
1035
+ "contents_localization_idx": {
1036
+ "name": "contents_localization_idx",
1037
+ "columns": [
1038
+ {
1039
+ "expression": "localization_id",
1040
+ "isExpression": false,
1041
+ "asc": true,
1042
+ "nulls": "last"
1043
+ }
1044
+ ],
1045
+ "isUnique": false,
1046
+ "concurrently": false,
1047
+ "method": "btree",
1048
+ "with": {}
1049
+ },
1050
+ "contents_status_idx": {
1051
+ "name": "contents_status_idx",
1052
+ "columns": [
1053
+ {
1054
+ "expression": "space_id",
1055
+ "isExpression": false,
1056
+ "asc": true,
1057
+ "nulls": "last"
1058
+ },
1059
+ {
1060
+ "expression": "status",
1061
+ "isExpression": false,
1062
+ "asc": true,
1063
+ "nulls": "last"
1064
+ }
1065
+ ],
1066
+ "isUnique": false,
1067
+ "concurrently": false,
1068
+ "method": "btree",
1069
+ "with": {}
1070
+ },
1071
+ "contents_fields_gin_idx": {
1072
+ "name": "contents_fields_gin_idx",
1073
+ "columns": [
1074
+ {
1075
+ "expression": "\"fields\" jsonb_path_ops",
1076
+ "asc": true,
1077
+ "isExpression": true,
1078
+ "nulls": "last"
1079
+ }
1080
+ ],
1081
+ "isUnique": false,
1082
+ "concurrently": false,
1083
+ "method": "gin",
1084
+ "with": {}
1085
+ },
1086
+ "contents_search_gin_idx": {
1087
+ "name": "contents_search_gin_idx",
1088
+ "columns": [
1089
+ {
1090
+ "expression": "search",
1091
+ "isExpression": false,
1092
+ "asc": true,
1093
+ "nulls": "last"
1094
+ }
1095
+ ],
1096
+ "isUnique": false,
1097
+ "concurrently": false,
1098
+ "method": "gin",
1099
+ "with": {}
1100
+ },
1101
+ "contents_permalink_key": {
1102
+ "name": "contents_permalink_key",
1103
+ "columns": [
1104
+ {
1105
+ "expression": "space_id",
1106
+ "isExpression": false,
1107
+ "asc": true,
1108
+ "nulls": "last"
1109
+ },
1110
+ {
1111
+ "expression": "locale",
1112
+ "isExpression": false,
1113
+ "asc": true,
1114
+ "nulls": "last"
1115
+ },
1116
+ {
1117
+ "expression": "permalink",
1118
+ "isExpression": false,
1119
+ "asc": true,
1120
+ "nulls": "last"
1121
+ }
1122
+ ],
1123
+ "isUnique": true,
1124
+ "where": "permalink is not null",
1125
+ "concurrently": false,
1126
+ "method": "btree",
1127
+ "with": {}
1128
+ }
1129
+ },
1130
+ "foreignKeys": {
1131
+ "contents_space_id_spaces_id_fk": {
1132
+ "name": "contents_space_id_spaces_id_fk",
1133
+ "tableFrom": "contents",
1134
+ "tableTo": "spaces",
1135
+ "columnsFrom": ["space_id"],
1136
+ "columnsTo": ["id"],
1137
+ "onDelete": "cascade",
1138
+ "onUpdate": "no action"
1139
+ }
1140
+ },
1141
+ "compositePrimaryKeys": {},
1142
+ "uniqueConstraints": {
1143
+ "contents_sibling_slug_key": {
1144
+ "name": "contents_sibling_slug_key",
1145
+ "nullsNotDistinct": true,
1146
+ "columns": ["space_id", "parent_id", "locale", "slug"]
1147
+ }
1148
+ },
1149
+ "policies": {},
1150
+ "checkConstraints": {},
1151
+ "isRLSEnabled": false
1152
+ },
1153
+ "public.memberships": {
1154
+ "name": "memberships",
1155
+ "schema": "",
1156
+ "columns": {
1157
+ "user_id": {
1158
+ "name": "user_id",
1159
+ "type": "uuid",
1160
+ "primaryKey": false,
1161
+ "notNull": true
1162
+ },
1163
+ "space_id": {
1164
+ "name": "space_id",
1165
+ "type": "uuid",
1166
+ "primaryKey": false,
1167
+ "notNull": true
1168
+ },
1169
+ "role": {
1170
+ "name": "role",
1171
+ "type": "text",
1172
+ "primaryKey": false,
1173
+ "notNull": true,
1174
+ "default": "'editor'"
1175
+ },
1176
+ "created_at": {
1177
+ "name": "created_at",
1178
+ "type": "timestamp with time zone",
1179
+ "primaryKey": false,
1180
+ "notNull": true,
1181
+ "default": "now()"
1182
+ }
1183
+ },
1184
+ "indexes": {
1185
+ "memberships_space_idx": {
1186
+ "name": "memberships_space_idx",
1187
+ "columns": [
1188
+ {
1189
+ "expression": "space_id",
1190
+ "isExpression": false,
1191
+ "asc": true,
1192
+ "nulls": "last"
1193
+ }
1194
+ ],
1195
+ "isUnique": false,
1196
+ "concurrently": false,
1197
+ "method": "btree",
1198
+ "with": {}
1199
+ }
1200
+ },
1201
+ "foreignKeys": {
1202
+ "memberships_user_id_users_id_fk": {
1203
+ "name": "memberships_user_id_users_id_fk",
1204
+ "tableFrom": "memberships",
1205
+ "tableTo": "users",
1206
+ "columnsFrom": ["user_id"],
1207
+ "columnsTo": ["id"],
1208
+ "onDelete": "cascade",
1209
+ "onUpdate": "no action"
1210
+ },
1211
+ "memberships_space_id_spaces_id_fk": {
1212
+ "name": "memberships_space_id_spaces_id_fk",
1213
+ "tableFrom": "memberships",
1214
+ "tableTo": "spaces",
1215
+ "columnsFrom": ["space_id"],
1216
+ "columnsTo": ["id"],
1217
+ "onDelete": "cascade",
1218
+ "onUpdate": "no action"
1219
+ }
1220
+ },
1221
+ "compositePrimaryKeys": {
1222
+ "memberships_user_id_space_id_pk": {
1223
+ "name": "memberships_user_id_space_id_pk",
1224
+ "columns": ["user_id", "space_id"]
1225
+ }
1226
+ },
1227
+ "uniqueConstraints": {},
1228
+ "policies": {},
1229
+ "checkConstraints": {},
1230
+ "isRLSEnabled": false
1231
+ },
1232
+ "public.published_contents": {
1233
+ "name": "published_contents",
1234
+ "schema": "",
1235
+ "columns": {
1236
+ "id": {
1237
+ "name": "id",
1238
+ "type": "uuid",
1239
+ "primaryKey": true,
1240
+ "notNull": true,
1241
+ "default": "gen_random_uuid()"
1242
+ },
1243
+ "space_id": {
1244
+ "name": "space_id",
1245
+ "type": "uuid",
1246
+ "primaryKey": false,
1247
+ "notNull": true
1248
+ },
1249
+ "type_id": {
1250
+ "name": "type_id",
1251
+ "type": "uuid",
1252
+ "primaryKey": false,
1253
+ "notNull": true
1254
+ },
1255
+ "locale": {
1256
+ "name": "locale",
1257
+ "type": "text",
1258
+ "primaryKey": false,
1259
+ "notNull": true
1260
+ },
1261
+ "localization_id": {
1262
+ "name": "localization_id",
1263
+ "type": "uuid",
1264
+ "primaryKey": false,
1265
+ "notNull": true
1266
+ },
1267
+ "parent_id": {
1268
+ "name": "parent_id",
1269
+ "type": "uuid",
1270
+ "primaryKey": false,
1271
+ "notNull": false
1272
+ },
1273
+ "title": {
1274
+ "name": "title",
1275
+ "type": "text",
1276
+ "primaryKey": false,
1277
+ "notNull": true
1278
+ },
1279
+ "slug": {
1280
+ "name": "slug",
1281
+ "type": "text",
1282
+ "primaryKey": false,
1283
+ "notNull": true
1284
+ },
1285
+ "path": {
1286
+ "name": "path",
1287
+ "type": "ltree",
1288
+ "primaryKey": false,
1289
+ "notNull": true
1290
+ },
1291
+ "permalink": {
1292
+ "name": "permalink",
1293
+ "type": "text",
1294
+ "primaryKey": false,
1295
+ "notNull": false
1296
+ },
1297
+ "permalink_path": {
1298
+ "name": "permalink_path",
1299
+ "type": "text",
1300
+ "primaryKey": false,
1301
+ "notNull": true,
1302
+ "default": "''"
1303
+ },
1304
+ "permalink_segment": {
1305
+ "name": "permalink_segment",
1306
+ "type": "text",
1307
+ "primaryKey": false,
1308
+ "notNull": false
1309
+ },
1310
+ "status": {
1311
+ "name": "status",
1312
+ "type": "text",
1313
+ "primaryKey": false,
1314
+ "notNull": true,
1315
+ "default": "'draft'"
1316
+ },
1317
+ "visible_in_menu": {
1318
+ "name": "visible_in_menu",
1319
+ "type": "boolean",
1320
+ "primaryKey": false,
1321
+ "notNull": true,
1322
+ "default": false
1323
+ },
1324
+ "position": {
1325
+ "name": "position",
1326
+ "type": "integer",
1327
+ "primaryKey": false,
1328
+ "notNull": true,
1329
+ "default": 0
1330
+ },
1331
+ "fields": {
1332
+ "name": "fields",
1333
+ "type": "jsonb",
1334
+ "primaryKey": false,
1335
+ "notNull": true,
1336
+ "default": "'{}'::jsonb"
1337
+ },
1338
+ "search_text": {
1339
+ "name": "search_text",
1340
+ "type": "text",
1341
+ "primaryKey": false,
1342
+ "notNull": true,
1343
+ "default": "''"
1344
+ },
1345
+ "version": {
1346
+ "name": "version",
1347
+ "type": "integer",
1348
+ "primaryKey": false,
1349
+ "notNull": true,
1350
+ "default": 1
1351
+ },
1352
+ "created_at": {
1353
+ "name": "created_at",
1354
+ "type": "timestamp with time zone",
1355
+ "primaryKey": false,
1356
+ "notNull": true,
1357
+ "default": "now()"
1358
+ },
1359
+ "updated_at": {
1360
+ "name": "updated_at",
1361
+ "type": "timestamp with time zone",
1362
+ "primaryKey": false,
1363
+ "notNull": true,
1364
+ "default": "now()"
1365
+ },
1366
+ "created_by": {
1367
+ "name": "created_by",
1368
+ "type": "uuid",
1369
+ "primaryKey": false,
1370
+ "notNull": false
1371
+ },
1372
+ "updated_by": {
1373
+ "name": "updated_by",
1374
+ "type": "uuid",
1375
+ "primaryKey": false,
1376
+ "notNull": false
1377
+ },
1378
+ "published_at": {
1379
+ "name": "published_at",
1380
+ "type": "timestamp with time zone",
1381
+ "primaryKey": false,
1382
+ "notNull": false
1383
+ },
1384
+ "source_version": {
1385
+ "name": "source_version",
1386
+ "type": "integer",
1387
+ "primaryKey": false,
1388
+ "notNull": true,
1389
+ "default": 1
1390
+ },
1391
+ "search": {
1392
+ "name": "search",
1393
+ "type": "tsvector",
1394
+ "primaryKey": false,
1395
+ "notNull": false,
1396
+ "generated": {
1397
+ "as": "to_tsvector('simple', coalesce(title, '') || ' ' || coalesce(search_text, ''))",
1398
+ "type": "stored"
1399
+ }
1400
+ }
1401
+ },
1402
+ "indexes": {
1403
+ "published_contents_path_gist_idx": {
1404
+ "name": "published_contents_path_gist_idx",
1405
+ "columns": [
1406
+ {
1407
+ "expression": "path",
1408
+ "isExpression": false,
1409
+ "asc": true,
1410
+ "nulls": "last"
1411
+ }
1412
+ ],
1413
+ "isUnique": false,
1414
+ "concurrently": false,
1415
+ "method": "gist",
1416
+ "with": {}
1417
+ },
1418
+ "published_contents_parent_idx": {
1419
+ "name": "published_contents_parent_idx",
1420
+ "columns": [
1421
+ {
1422
+ "expression": "parent_id",
1423
+ "isExpression": false,
1424
+ "asc": true,
1425
+ "nulls": "last"
1426
+ }
1427
+ ],
1428
+ "isUnique": false,
1429
+ "concurrently": false,
1430
+ "method": "btree",
1431
+ "with": {}
1432
+ },
1433
+ "published_contents_space_type_idx": {
1434
+ "name": "published_contents_space_type_idx",
1435
+ "columns": [
1436
+ {
1437
+ "expression": "space_id",
1438
+ "isExpression": false,
1439
+ "asc": true,
1440
+ "nulls": "last"
1441
+ },
1442
+ {
1443
+ "expression": "type_id",
1444
+ "isExpression": false,
1445
+ "asc": true,
1446
+ "nulls": "last"
1447
+ }
1448
+ ],
1449
+ "isUnique": false,
1450
+ "concurrently": false,
1451
+ "method": "btree",
1452
+ "with": {}
1453
+ },
1454
+ "published_contents_fields_gin_idx": {
1455
+ "name": "published_contents_fields_gin_idx",
1456
+ "columns": [
1457
+ {
1458
+ "expression": "\"fields\" jsonb_path_ops",
1459
+ "asc": true,
1460
+ "isExpression": true,
1461
+ "nulls": "last"
1462
+ }
1463
+ ],
1464
+ "isUnique": false,
1465
+ "concurrently": false,
1466
+ "method": "gin",
1467
+ "with": {}
1468
+ },
1469
+ "published_contents_search_gin_idx": {
1470
+ "name": "published_contents_search_gin_idx",
1471
+ "columns": [
1472
+ {
1473
+ "expression": "search",
1474
+ "isExpression": false,
1475
+ "asc": true,
1476
+ "nulls": "last"
1477
+ }
1478
+ ],
1479
+ "isUnique": false,
1480
+ "concurrently": false,
1481
+ "method": "gin",
1482
+ "with": {}
1483
+ },
1484
+ "published_contents_permalink_key": {
1485
+ "name": "published_contents_permalink_key",
1486
+ "columns": [
1487
+ {
1488
+ "expression": "space_id",
1489
+ "isExpression": false,
1490
+ "asc": true,
1491
+ "nulls": "last"
1492
+ },
1493
+ {
1494
+ "expression": "locale",
1495
+ "isExpression": false,
1496
+ "asc": true,
1497
+ "nulls": "last"
1498
+ },
1499
+ {
1500
+ "expression": "permalink",
1501
+ "isExpression": false,
1502
+ "asc": true,
1503
+ "nulls": "last"
1504
+ }
1505
+ ],
1506
+ "isUnique": true,
1507
+ "where": "permalink is not null",
1508
+ "concurrently": false,
1509
+ "method": "btree",
1510
+ "with": {}
1511
+ }
1512
+ },
1513
+ "foreignKeys": {
1514
+ "published_contents_space_id_spaces_id_fk": {
1515
+ "name": "published_contents_space_id_spaces_id_fk",
1516
+ "tableFrom": "published_contents",
1517
+ "tableTo": "spaces",
1518
+ "columnsFrom": ["space_id"],
1519
+ "columnsTo": ["id"],
1520
+ "onDelete": "cascade",
1521
+ "onUpdate": "no action"
1522
+ }
1523
+ },
1524
+ "compositePrimaryKeys": {},
1525
+ "uniqueConstraints": {},
1526
+ "policies": {},
1527
+ "checkConstraints": {},
1528
+ "isRLSEnabled": false
1529
+ },
1530
+ "public.sessions": {
1531
+ "name": "sessions",
1532
+ "schema": "",
1533
+ "columns": {
1534
+ "id": {
1535
+ "name": "id",
1536
+ "type": "uuid",
1537
+ "primaryKey": true,
1538
+ "notNull": true,
1539
+ "default": "gen_random_uuid()"
1540
+ },
1541
+ "user_id": {
1542
+ "name": "user_id",
1543
+ "type": "uuid",
1544
+ "primaryKey": false,
1545
+ "notNull": true
1546
+ },
1547
+ "token": {
1548
+ "name": "token",
1549
+ "type": "text",
1550
+ "primaryKey": false,
1551
+ "notNull": true
1552
+ },
1553
+ "expires_at": {
1554
+ "name": "expires_at",
1555
+ "type": "timestamp with time zone",
1556
+ "primaryKey": false,
1557
+ "notNull": true
1558
+ },
1559
+ "ip_address": {
1560
+ "name": "ip_address",
1561
+ "type": "text",
1562
+ "primaryKey": false,
1563
+ "notNull": false
1564
+ },
1565
+ "user_agent": {
1566
+ "name": "user_agent",
1567
+ "type": "text",
1568
+ "primaryKey": false,
1569
+ "notNull": false
1570
+ },
1571
+ "created_at": {
1572
+ "name": "created_at",
1573
+ "type": "timestamp with time zone",
1574
+ "primaryKey": false,
1575
+ "notNull": true,
1576
+ "default": "now()"
1577
+ },
1578
+ "updated_at": {
1579
+ "name": "updated_at",
1580
+ "type": "timestamp with time zone",
1581
+ "primaryKey": false,
1582
+ "notNull": true,
1583
+ "default": "now()"
1584
+ }
1585
+ },
1586
+ "indexes": {
1587
+ "sessions_token_key": {
1588
+ "name": "sessions_token_key",
1589
+ "columns": [
1590
+ {
1591
+ "expression": "token",
1592
+ "isExpression": false,
1593
+ "asc": true,
1594
+ "nulls": "last"
1595
+ }
1596
+ ],
1597
+ "isUnique": true,
1598
+ "concurrently": false,
1599
+ "method": "btree",
1600
+ "with": {}
1601
+ },
1602
+ "sessions_user_idx": {
1603
+ "name": "sessions_user_idx",
1604
+ "columns": [
1605
+ {
1606
+ "expression": "user_id",
1607
+ "isExpression": false,
1608
+ "asc": true,
1609
+ "nulls": "last"
1610
+ }
1611
+ ],
1612
+ "isUnique": false,
1613
+ "concurrently": false,
1614
+ "method": "btree",
1615
+ "with": {}
1616
+ },
1617
+ "sessions_expires_idx": {
1618
+ "name": "sessions_expires_idx",
1619
+ "columns": [
1620
+ {
1621
+ "expression": "expires_at",
1622
+ "isExpression": false,
1623
+ "asc": true,
1624
+ "nulls": "last"
1625
+ }
1626
+ ],
1627
+ "isUnique": false,
1628
+ "concurrently": false,
1629
+ "method": "btree",
1630
+ "with": {}
1631
+ }
1632
+ },
1633
+ "foreignKeys": {
1634
+ "sessions_user_id_users_id_fk": {
1635
+ "name": "sessions_user_id_users_id_fk",
1636
+ "tableFrom": "sessions",
1637
+ "tableTo": "users",
1638
+ "columnsFrom": ["user_id"],
1639
+ "columnsTo": ["id"],
1640
+ "onDelete": "cascade",
1641
+ "onUpdate": "no action"
1642
+ }
1643
+ },
1644
+ "compositePrimaryKeys": {},
1645
+ "uniqueConstraints": {},
1646
+ "policies": {},
1647
+ "checkConstraints": {},
1648
+ "isRLSEnabled": false
1649
+ },
1650
+ "public.spaces": {
1651
+ "name": "spaces",
1652
+ "schema": "",
1653
+ "columns": {
1654
+ "id": {
1655
+ "name": "id",
1656
+ "type": "uuid",
1657
+ "primaryKey": true,
1658
+ "notNull": true,
1659
+ "default": "gen_random_uuid()"
1660
+ },
1661
+ "name": {
1662
+ "name": "name",
1663
+ "type": "text",
1664
+ "primaryKey": false,
1665
+ "notNull": true
1666
+ },
1667
+ "machine_name": {
1668
+ "name": "machine_name",
1669
+ "type": "text",
1670
+ "primaryKey": false,
1671
+ "notNull": true
1672
+ },
1673
+ "description": {
1674
+ "name": "description",
1675
+ "type": "text",
1676
+ "primaryKey": false,
1677
+ "notNull": false
1678
+ },
1679
+ "url": {
1680
+ "name": "url",
1681
+ "type": "text",
1682
+ "primaryKey": false,
1683
+ "notNull": true
1684
+ },
1685
+ "default_locale": {
1686
+ "name": "default_locale",
1687
+ "type": "text",
1688
+ "primaryKey": false,
1689
+ "notNull": true,
1690
+ "default": "'en'"
1691
+ },
1692
+ "locales": {
1693
+ "name": "locales",
1694
+ "type": "jsonb",
1695
+ "primaryKey": false,
1696
+ "notNull": true,
1697
+ "default": "'[\"en\"]'::jsonb"
1698
+ },
1699
+ "settings": {
1700
+ "name": "settings",
1701
+ "type": "jsonb",
1702
+ "primaryKey": false,
1703
+ "notNull": true,
1704
+ "default": "'{}'::jsonb"
1705
+ },
1706
+ "created_at": {
1707
+ "name": "created_at",
1708
+ "type": "timestamp with time zone",
1709
+ "primaryKey": false,
1710
+ "notNull": true,
1711
+ "default": "now()"
1712
+ },
1713
+ "updated_at": {
1714
+ "name": "updated_at",
1715
+ "type": "timestamp with time zone",
1716
+ "primaryKey": false,
1717
+ "notNull": true,
1718
+ "default": "now()"
1719
+ }
1720
+ },
1721
+ "indexes": {
1722
+ "spaces_machine_name_key": {
1723
+ "name": "spaces_machine_name_key",
1724
+ "columns": [
1725
+ {
1726
+ "expression": "machine_name",
1727
+ "isExpression": false,
1728
+ "asc": true,
1729
+ "nulls": "last"
1730
+ }
1731
+ ],
1732
+ "isUnique": true,
1733
+ "concurrently": false,
1734
+ "method": "btree",
1735
+ "with": {}
1736
+ }
1737
+ },
1738
+ "foreignKeys": {},
1739
+ "compositePrimaryKeys": {},
1740
+ "uniqueConstraints": {},
1741
+ "policies": {},
1742
+ "checkConstraints": {},
1743
+ "isRLSEnabled": false
1744
+ },
1745
+ "public.users": {
1746
+ "name": "users",
1747
+ "schema": "",
1748
+ "columns": {
1749
+ "id": {
1750
+ "name": "id",
1751
+ "type": "uuid",
1752
+ "primaryKey": true,
1753
+ "notNull": true,
1754
+ "default": "gen_random_uuid()"
1755
+ },
1756
+ "name": {
1757
+ "name": "name",
1758
+ "type": "text",
1759
+ "primaryKey": false,
1760
+ "notNull": true,
1761
+ "default": "''"
1762
+ },
1763
+ "email": {
1764
+ "name": "email",
1765
+ "type": "text",
1766
+ "primaryKey": false,
1767
+ "notNull": true
1768
+ },
1769
+ "email_verified": {
1770
+ "name": "email_verified",
1771
+ "type": "boolean",
1772
+ "primaryKey": false,
1773
+ "notNull": true,
1774
+ "default": false
1775
+ },
1776
+ "image": {
1777
+ "name": "image",
1778
+ "type": "text",
1779
+ "primaryKey": false,
1780
+ "notNull": false
1781
+ },
1782
+ "role": {
1783
+ "name": "role",
1784
+ "type": "text",
1785
+ "primaryKey": false,
1786
+ "notNull": true,
1787
+ "default": "'editor'"
1788
+ },
1789
+ "banned": {
1790
+ "name": "banned",
1791
+ "type": "boolean",
1792
+ "primaryKey": false,
1793
+ "notNull": true,
1794
+ "default": false
1795
+ },
1796
+ "ban_reason": {
1797
+ "name": "ban_reason",
1798
+ "type": "text",
1799
+ "primaryKey": false,
1800
+ "notNull": false
1801
+ },
1802
+ "created_at": {
1803
+ "name": "created_at",
1804
+ "type": "timestamp with time zone",
1805
+ "primaryKey": false,
1806
+ "notNull": true,
1807
+ "default": "now()"
1808
+ },
1809
+ "updated_at": {
1810
+ "name": "updated_at",
1811
+ "type": "timestamp with time zone",
1812
+ "primaryKey": false,
1813
+ "notNull": true,
1814
+ "default": "now()"
1815
+ }
1816
+ },
1817
+ "indexes": {
1818
+ "users_email_key": {
1819
+ "name": "users_email_key",
1820
+ "columns": [
1821
+ {
1822
+ "expression": "email",
1823
+ "isExpression": false,
1824
+ "asc": true,
1825
+ "nulls": "last"
1826
+ }
1827
+ ],
1828
+ "isUnique": true,
1829
+ "concurrently": false,
1830
+ "method": "btree",
1831
+ "with": {}
1832
+ }
1833
+ },
1834
+ "foreignKeys": {},
1835
+ "compositePrimaryKeys": {},
1836
+ "uniqueConstraints": {},
1837
+ "policies": {},
1838
+ "checkConstraints": {},
1839
+ "isRLSEnabled": false
1840
+ },
1841
+ "public.verifications": {
1842
+ "name": "verifications",
1843
+ "schema": "",
1844
+ "columns": {
1845
+ "id": {
1846
+ "name": "id",
1847
+ "type": "uuid",
1848
+ "primaryKey": true,
1849
+ "notNull": true,
1850
+ "default": "gen_random_uuid()"
1851
+ },
1852
+ "identifier": {
1853
+ "name": "identifier",
1854
+ "type": "text",
1855
+ "primaryKey": false,
1856
+ "notNull": true
1857
+ },
1858
+ "value": {
1859
+ "name": "value",
1860
+ "type": "text",
1861
+ "primaryKey": false,
1862
+ "notNull": true
1863
+ },
1864
+ "expires_at": {
1865
+ "name": "expires_at",
1866
+ "type": "timestamp with time zone",
1867
+ "primaryKey": false,
1868
+ "notNull": true
1869
+ },
1870
+ "created_at": {
1871
+ "name": "created_at",
1872
+ "type": "timestamp with time zone",
1873
+ "primaryKey": false,
1874
+ "notNull": true,
1875
+ "default": "now()"
1876
+ },
1877
+ "updated_at": {
1878
+ "name": "updated_at",
1879
+ "type": "timestamp with time zone",
1880
+ "primaryKey": false,
1881
+ "notNull": true,
1882
+ "default": "now()"
1883
+ }
1884
+ },
1885
+ "indexes": {
1886
+ "verifications_identifier_idx": {
1887
+ "name": "verifications_identifier_idx",
1888
+ "columns": [
1889
+ {
1890
+ "expression": "identifier",
1891
+ "isExpression": false,
1892
+ "asc": true,
1893
+ "nulls": "last"
1894
+ }
1895
+ ],
1896
+ "isUnique": false,
1897
+ "concurrently": false,
1898
+ "method": "btree",
1899
+ "with": {}
1900
+ }
1901
+ },
1902
+ "foreignKeys": {},
1903
+ "compositePrimaryKeys": {},
1904
+ "uniqueConstraints": {},
1905
+ "policies": {},
1906
+ "checkConstraints": {},
1907
+ "isRLSEnabled": false
1908
+ },
1909
+ "public.webhook_deliveries": {
1910
+ "name": "webhook_deliveries",
1911
+ "schema": "",
1912
+ "columns": {
1913
+ "id": {
1914
+ "name": "id",
1915
+ "type": "uuid",
1916
+ "primaryKey": true,
1917
+ "notNull": true,
1918
+ "default": "gen_random_uuid()"
1919
+ },
1920
+ "webhook_id": {
1921
+ "name": "webhook_id",
1922
+ "type": "uuid",
1923
+ "primaryKey": false,
1924
+ "notNull": true
1925
+ },
1926
+ "event": {
1927
+ "name": "event",
1928
+ "type": "text",
1929
+ "primaryKey": false,
1930
+ "notNull": true
1931
+ },
1932
+ "payload": {
1933
+ "name": "payload",
1934
+ "type": "jsonb",
1935
+ "primaryKey": false,
1936
+ "notNull": true
1937
+ },
1938
+ "status": {
1939
+ "name": "status",
1940
+ "type": "integer",
1941
+ "primaryKey": false,
1942
+ "notNull": false
1943
+ },
1944
+ "error": {
1945
+ "name": "error",
1946
+ "type": "text",
1947
+ "primaryKey": false,
1948
+ "notNull": false
1949
+ },
1950
+ "attempt": {
1951
+ "name": "attempt",
1952
+ "type": "integer",
1953
+ "primaryKey": false,
1954
+ "notNull": true,
1955
+ "default": 1
1956
+ },
1957
+ "created_at": {
1958
+ "name": "created_at",
1959
+ "type": "timestamp with time zone",
1960
+ "primaryKey": false,
1961
+ "notNull": true,
1962
+ "default": "now()"
1963
+ }
1964
+ },
1965
+ "indexes": {
1966
+ "webhook_deliveries_webhook_idx": {
1967
+ "name": "webhook_deliveries_webhook_idx",
1968
+ "columns": [
1969
+ {
1970
+ "expression": "webhook_id",
1971
+ "isExpression": false,
1972
+ "asc": true,
1973
+ "nulls": "last"
1974
+ },
1975
+ {
1976
+ "expression": "created_at",
1977
+ "isExpression": false,
1978
+ "asc": true,
1979
+ "nulls": "last"
1980
+ }
1981
+ ],
1982
+ "isUnique": false,
1983
+ "concurrently": false,
1984
+ "method": "btree",
1985
+ "with": {}
1986
+ }
1987
+ },
1988
+ "foreignKeys": {
1989
+ "webhook_deliveries_webhook_id_webhooks_id_fk": {
1990
+ "name": "webhook_deliveries_webhook_id_webhooks_id_fk",
1991
+ "tableFrom": "webhook_deliveries",
1992
+ "tableTo": "webhooks",
1993
+ "columnsFrom": ["webhook_id"],
1994
+ "columnsTo": ["id"],
1995
+ "onDelete": "cascade",
1996
+ "onUpdate": "no action"
1997
+ }
1998
+ },
1999
+ "compositePrimaryKeys": {},
2000
+ "uniqueConstraints": {},
2001
+ "policies": {},
2002
+ "checkConstraints": {},
2003
+ "isRLSEnabled": false
2004
+ },
2005
+ "public.webhooks": {
2006
+ "name": "webhooks",
2007
+ "schema": "",
2008
+ "columns": {
2009
+ "id": {
2010
+ "name": "id",
2011
+ "type": "uuid",
2012
+ "primaryKey": true,
2013
+ "notNull": true,
2014
+ "default": "gen_random_uuid()"
2015
+ },
2016
+ "space_id": {
2017
+ "name": "space_id",
2018
+ "type": "uuid",
2019
+ "primaryKey": false,
2020
+ "notNull": true
2021
+ },
2022
+ "name": {
2023
+ "name": "name",
2024
+ "type": "text",
2025
+ "primaryKey": false,
2026
+ "notNull": true
2027
+ },
2028
+ "url": {
2029
+ "name": "url",
2030
+ "type": "text",
2031
+ "primaryKey": false,
2032
+ "notNull": true
2033
+ },
2034
+ "secret": {
2035
+ "name": "secret",
2036
+ "type": "text",
2037
+ "primaryKey": false,
2038
+ "notNull": false
2039
+ },
2040
+ "events": {
2041
+ "name": "events",
2042
+ "type": "jsonb",
2043
+ "primaryKey": false,
2044
+ "notNull": true,
2045
+ "default": "'[]'::jsonb"
2046
+ },
2047
+ "enabled": {
2048
+ "name": "enabled",
2049
+ "type": "boolean",
2050
+ "primaryKey": false,
2051
+ "notNull": true,
2052
+ "default": true
2053
+ },
2054
+ "created_at": {
2055
+ "name": "created_at",
2056
+ "type": "timestamp with time zone",
2057
+ "primaryKey": false,
2058
+ "notNull": true,
2059
+ "default": "now()"
2060
+ }
2061
+ },
2062
+ "indexes": {
2063
+ "webhooks_space_idx": {
2064
+ "name": "webhooks_space_idx",
2065
+ "columns": [
2066
+ {
2067
+ "expression": "space_id",
2068
+ "isExpression": false,
2069
+ "asc": true,
2070
+ "nulls": "last"
2071
+ }
2072
+ ],
2073
+ "isUnique": false,
2074
+ "concurrently": false,
2075
+ "method": "btree",
2076
+ "with": {}
2077
+ }
2078
+ },
2079
+ "foreignKeys": {
2080
+ "webhooks_space_id_spaces_id_fk": {
2081
+ "name": "webhooks_space_id_spaces_id_fk",
2082
+ "tableFrom": "webhooks",
2083
+ "tableTo": "spaces",
2084
+ "columnsFrom": ["space_id"],
2085
+ "columnsTo": ["id"],
2086
+ "onDelete": "cascade",
2087
+ "onUpdate": "no action"
2088
+ }
2089
+ },
2090
+ "compositePrimaryKeys": {},
2091
+ "uniqueConstraints": {},
2092
+ "policies": {},
2093
+ "checkConstraints": {},
2094
+ "isRLSEnabled": false
2095
+ }
2096
+ },
2097
+ "enums": {},
2098
+ "schemas": {},
2099
+ "sequences": {},
2100
+ "roles": {},
2101
+ "policies": {},
2102
+ "views": {},
2103
+ "_meta": {
2104
+ "columns": {},
2105
+ "schemas": {},
2106
+ "tables": {}
2107
+ }
2108
+ }