@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,2094 @@
1
+ {
2
+ "id": "d0c74e0f-b423-4061-88c4-fdc16440b5e7",
3
+ "prevId": "00000000-0000-0000-0000-000000000000",
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_segment": {
886
+ "name": "permalink_segment",
887
+ "type": "text",
888
+ "primaryKey": false,
889
+ "notNull": false
890
+ },
891
+ "status": {
892
+ "name": "status",
893
+ "type": "text",
894
+ "primaryKey": false,
895
+ "notNull": true,
896
+ "default": "'draft'"
897
+ },
898
+ "visible_in_menu": {
899
+ "name": "visible_in_menu",
900
+ "type": "boolean",
901
+ "primaryKey": false,
902
+ "notNull": true,
903
+ "default": false
904
+ },
905
+ "position": {
906
+ "name": "position",
907
+ "type": "integer",
908
+ "primaryKey": false,
909
+ "notNull": true,
910
+ "default": 0
911
+ },
912
+ "fields": {
913
+ "name": "fields",
914
+ "type": "jsonb",
915
+ "primaryKey": false,
916
+ "notNull": true,
917
+ "default": "'{}'::jsonb"
918
+ },
919
+ "search_text": {
920
+ "name": "search_text",
921
+ "type": "text",
922
+ "primaryKey": false,
923
+ "notNull": true,
924
+ "default": "''"
925
+ },
926
+ "version": {
927
+ "name": "version",
928
+ "type": "integer",
929
+ "primaryKey": false,
930
+ "notNull": true,
931
+ "default": 1
932
+ },
933
+ "created_at": {
934
+ "name": "created_at",
935
+ "type": "timestamp with time zone",
936
+ "primaryKey": false,
937
+ "notNull": true,
938
+ "default": "now()"
939
+ },
940
+ "updated_at": {
941
+ "name": "updated_at",
942
+ "type": "timestamp with time zone",
943
+ "primaryKey": false,
944
+ "notNull": true,
945
+ "default": "now()"
946
+ },
947
+ "created_by": {
948
+ "name": "created_by",
949
+ "type": "uuid",
950
+ "primaryKey": false,
951
+ "notNull": false
952
+ },
953
+ "updated_by": {
954
+ "name": "updated_by",
955
+ "type": "uuid",
956
+ "primaryKey": false,
957
+ "notNull": false
958
+ },
959
+ "published_at": {
960
+ "name": "published_at",
961
+ "type": "timestamp with time zone",
962
+ "primaryKey": false,
963
+ "notNull": false
964
+ },
965
+ "search": {
966
+ "name": "search",
967
+ "type": "tsvector",
968
+ "primaryKey": false,
969
+ "notNull": false,
970
+ "generated": {
971
+ "as": "to_tsvector('simple', coalesce(title, '') || ' ' || coalesce(search_text, ''))",
972
+ "type": "stored"
973
+ }
974
+ }
975
+ },
976
+ "indexes": {
977
+ "contents_path_gist_idx": {
978
+ "name": "contents_path_gist_idx",
979
+ "columns": [
980
+ {
981
+ "expression": "path",
982
+ "isExpression": false,
983
+ "asc": true,
984
+ "nulls": "last"
985
+ }
986
+ ],
987
+ "isUnique": false,
988
+ "concurrently": false,
989
+ "method": "gist",
990
+ "with": {}
991
+ },
992
+ "contents_parent_idx": {
993
+ "name": "contents_parent_idx",
994
+ "columns": [
995
+ {
996
+ "expression": "parent_id",
997
+ "isExpression": false,
998
+ "asc": true,
999
+ "nulls": "last"
1000
+ }
1001
+ ],
1002
+ "isUnique": false,
1003
+ "concurrently": false,
1004
+ "method": "btree",
1005
+ "with": {}
1006
+ },
1007
+ "contents_space_type_idx": {
1008
+ "name": "contents_space_type_idx",
1009
+ "columns": [
1010
+ {
1011
+ "expression": "space_id",
1012
+ "isExpression": false,
1013
+ "asc": true,
1014
+ "nulls": "last"
1015
+ },
1016
+ {
1017
+ "expression": "type_id",
1018
+ "isExpression": false,
1019
+ "asc": true,
1020
+ "nulls": "last"
1021
+ }
1022
+ ],
1023
+ "isUnique": false,
1024
+ "concurrently": false,
1025
+ "method": "btree",
1026
+ "with": {}
1027
+ },
1028
+ "contents_localization_idx": {
1029
+ "name": "contents_localization_idx",
1030
+ "columns": [
1031
+ {
1032
+ "expression": "localization_id",
1033
+ "isExpression": false,
1034
+ "asc": true,
1035
+ "nulls": "last"
1036
+ }
1037
+ ],
1038
+ "isUnique": false,
1039
+ "concurrently": false,
1040
+ "method": "btree",
1041
+ "with": {}
1042
+ },
1043
+ "contents_status_idx": {
1044
+ "name": "contents_status_idx",
1045
+ "columns": [
1046
+ {
1047
+ "expression": "space_id",
1048
+ "isExpression": false,
1049
+ "asc": true,
1050
+ "nulls": "last"
1051
+ },
1052
+ {
1053
+ "expression": "status",
1054
+ "isExpression": false,
1055
+ "asc": true,
1056
+ "nulls": "last"
1057
+ }
1058
+ ],
1059
+ "isUnique": false,
1060
+ "concurrently": false,
1061
+ "method": "btree",
1062
+ "with": {}
1063
+ },
1064
+ "contents_fields_gin_idx": {
1065
+ "name": "contents_fields_gin_idx",
1066
+ "columns": [
1067
+ {
1068
+ "expression": "\"fields\" jsonb_path_ops",
1069
+ "asc": true,
1070
+ "isExpression": true,
1071
+ "nulls": "last"
1072
+ }
1073
+ ],
1074
+ "isUnique": false,
1075
+ "concurrently": false,
1076
+ "method": "gin",
1077
+ "with": {}
1078
+ },
1079
+ "contents_search_gin_idx": {
1080
+ "name": "contents_search_gin_idx",
1081
+ "columns": [
1082
+ {
1083
+ "expression": "search",
1084
+ "isExpression": false,
1085
+ "asc": true,
1086
+ "nulls": "last"
1087
+ }
1088
+ ],
1089
+ "isUnique": false,
1090
+ "concurrently": false,
1091
+ "method": "gin",
1092
+ "with": {}
1093
+ },
1094
+ "contents_permalink_key": {
1095
+ "name": "contents_permalink_key",
1096
+ "columns": [
1097
+ {
1098
+ "expression": "space_id",
1099
+ "isExpression": false,
1100
+ "asc": true,
1101
+ "nulls": "last"
1102
+ },
1103
+ {
1104
+ "expression": "locale",
1105
+ "isExpression": false,
1106
+ "asc": true,
1107
+ "nulls": "last"
1108
+ },
1109
+ {
1110
+ "expression": "permalink",
1111
+ "isExpression": false,
1112
+ "asc": true,
1113
+ "nulls": "last"
1114
+ }
1115
+ ],
1116
+ "isUnique": true,
1117
+ "where": "permalink is not null",
1118
+ "concurrently": false,
1119
+ "method": "btree",
1120
+ "with": {}
1121
+ }
1122
+ },
1123
+ "foreignKeys": {
1124
+ "contents_space_id_spaces_id_fk": {
1125
+ "name": "contents_space_id_spaces_id_fk",
1126
+ "tableFrom": "contents",
1127
+ "tableTo": "spaces",
1128
+ "columnsFrom": ["space_id"],
1129
+ "columnsTo": ["id"],
1130
+ "onDelete": "cascade",
1131
+ "onUpdate": "no action"
1132
+ }
1133
+ },
1134
+ "compositePrimaryKeys": {},
1135
+ "uniqueConstraints": {
1136
+ "contents_sibling_slug_key": {
1137
+ "name": "contents_sibling_slug_key",
1138
+ "nullsNotDistinct": true,
1139
+ "columns": ["space_id", "parent_id", "locale", "slug"]
1140
+ }
1141
+ },
1142
+ "policies": {},
1143
+ "checkConstraints": {},
1144
+ "isRLSEnabled": false
1145
+ },
1146
+ "public.memberships": {
1147
+ "name": "memberships",
1148
+ "schema": "",
1149
+ "columns": {
1150
+ "user_id": {
1151
+ "name": "user_id",
1152
+ "type": "uuid",
1153
+ "primaryKey": false,
1154
+ "notNull": true
1155
+ },
1156
+ "space_id": {
1157
+ "name": "space_id",
1158
+ "type": "uuid",
1159
+ "primaryKey": false,
1160
+ "notNull": true
1161
+ },
1162
+ "role": {
1163
+ "name": "role",
1164
+ "type": "text",
1165
+ "primaryKey": false,
1166
+ "notNull": true,
1167
+ "default": "'editor'"
1168
+ },
1169
+ "created_at": {
1170
+ "name": "created_at",
1171
+ "type": "timestamp with time zone",
1172
+ "primaryKey": false,
1173
+ "notNull": true,
1174
+ "default": "now()"
1175
+ }
1176
+ },
1177
+ "indexes": {
1178
+ "memberships_space_idx": {
1179
+ "name": "memberships_space_idx",
1180
+ "columns": [
1181
+ {
1182
+ "expression": "space_id",
1183
+ "isExpression": false,
1184
+ "asc": true,
1185
+ "nulls": "last"
1186
+ }
1187
+ ],
1188
+ "isUnique": false,
1189
+ "concurrently": false,
1190
+ "method": "btree",
1191
+ "with": {}
1192
+ }
1193
+ },
1194
+ "foreignKeys": {
1195
+ "memberships_user_id_users_id_fk": {
1196
+ "name": "memberships_user_id_users_id_fk",
1197
+ "tableFrom": "memberships",
1198
+ "tableTo": "users",
1199
+ "columnsFrom": ["user_id"],
1200
+ "columnsTo": ["id"],
1201
+ "onDelete": "cascade",
1202
+ "onUpdate": "no action"
1203
+ },
1204
+ "memberships_space_id_spaces_id_fk": {
1205
+ "name": "memberships_space_id_spaces_id_fk",
1206
+ "tableFrom": "memberships",
1207
+ "tableTo": "spaces",
1208
+ "columnsFrom": ["space_id"],
1209
+ "columnsTo": ["id"],
1210
+ "onDelete": "cascade",
1211
+ "onUpdate": "no action"
1212
+ }
1213
+ },
1214
+ "compositePrimaryKeys": {
1215
+ "memberships_user_id_space_id_pk": {
1216
+ "name": "memberships_user_id_space_id_pk",
1217
+ "columns": ["user_id", "space_id"]
1218
+ }
1219
+ },
1220
+ "uniqueConstraints": {},
1221
+ "policies": {},
1222
+ "checkConstraints": {},
1223
+ "isRLSEnabled": false
1224
+ },
1225
+ "public.published_contents": {
1226
+ "name": "published_contents",
1227
+ "schema": "",
1228
+ "columns": {
1229
+ "id": {
1230
+ "name": "id",
1231
+ "type": "uuid",
1232
+ "primaryKey": true,
1233
+ "notNull": true,
1234
+ "default": "gen_random_uuid()"
1235
+ },
1236
+ "space_id": {
1237
+ "name": "space_id",
1238
+ "type": "uuid",
1239
+ "primaryKey": false,
1240
+ "notNull": true
1241
+ },
1242
+ "type_id": {
1243
+ "name": "type_id",
1244
+ "type": "uuid",
1245
+ "primaryKey": false,
1246
+ "notNull": true
1247
+ },
1248
+ "locale": {
1249
+ "name": "locale",
1250
+ "type": "text",
1251
+ "primaryKey": false,
1252
+ "notNull": true
1253
+ },
1254
+ "localization_id": {
1255
+ "name": "localization_id",
1256
+ "type": "uuid",
1257
+ "primaryKey": false,
1258
+ "notNull": true
1259
+ },
1260
+ "parent_id": {
1261
+ "name": "parent_id",
1262
+ "type": "uuid",
1263
+ "primaryKey": false,
1264
+ "notNull": false
1265
+ },
1266
+ "title": {
1267
+ "name": "title",
1268
+ "type": "text",
1269
+ "primaryKey": false,
1270
+ "notNull": true
1271
+ },
1272
+ "slug": {
1273
+ "name": "slug",
1274
+ "type": "text",
1275
+ "primaryKey": false,
1276
+ "notNull": true
1277
+ },
1278
+ "path": {
1279
+ "name": "path",
1280
+ "type": "ltree",
1281
+ "primaryKey": false,
1282
+ "notNull": true
1283
+ },
1284
+ "permalink": {
1285
+ "name": "permalink",
1286
+ "type": "text",
1287
+ "primaryKey": false,
1288
+ "notNull": false
1289
+ },
1290
+ "permalink_segment": {
1291
+ "name": "permalink_segment",
1292
+ "type": "text",
1293
+ "primaryKey": false,
1294
+ "notNull": false
1295
+ },
1296
+ "status": {
1297
+ "name": "status",
1298
+ "type": "text",
1299
+ "primaryKey": false,
1300
+ "notNull": true,
1301
+ "default": "'draft'"
1302
+ },
1303
+ "visible_in_menu": {
1304
+ "name": "visible_in_menu",
1305
+ "type": "boolean",
1306
+ "primaryKey": false,
1307
+ "notNull": true,
1308
+ "default": false
1309
+ },
1310
+ "position": {
1311
+ "name": "position",
1312
+ "type": "integer",
1313
+ "primaryKey": false,
1314
+ "notNull": true,
1315
+ "default": 0
1316
+ },
1317
+ "fields": {
1318
+ "name": "fields",
1319
+ "type": "jsonb",
1320
+ "primaryKey": false,
1321
+ "notNull": true,
1322
+ "default": "'{}'::jsonb"
1323
+ },
1324
+ "search_text": {
1325
+ "name": "search_text",
1326
+ "type": "text",
1327
+ "primaryKey": false,
1328
+ "notNull": true,
1329
+ "default": "''"
1330
+ },
1331
+ "version": {
1332
+ "name": "version",
1333
+ "type": "integer",
1334
+ "primaryKey": false,
1335
+ "notNull": true,
1336
+ "default": 1
1337
+ },
1338
+ "created_at": {
1339
+ "name": "created_at",
1340
+ "type": "timestamp with time zone",
1341
+ "primaryKey": false,
1342
+ "notNull": true,
1343
+ "default": "now()"
1344
+ },
1345
+ "updated_at": {
1346
+ "name": "updated_at",
1347
+ "type": "timestamp with time zone",
1348
+ "primaryKey": false,
1349
+ "notNull": true,
1350
+ "default": "now()"
1351
+ },
1352
+ "created_by": {
1353
+ "name": "created_by",
1354
+ "type": "uuid",
1355
+ "primaryKey": false,
1356
+ "notNull": false
1357
+ },
1358
+ "updated_by": {
1359
+ "name": "updated_by",
1360
+ "type": "uuid",
1361
+ "primaryKey": false,
1362
+ "notNull": false
1363
+ },
1364
+ "published_at": {
1365
+ "name": "published_at",
1366
+ "type": "timestamp with time zone",
1367
+ "primaryKey": false,
1368
+ "notNull": false
1369
+ },
1370
+ "source_version": {
1371
+ "name": "source_version",
1372
+ "type": "integer",
1373
+ "primaryKey": false,
1374
+ "notNull": true,
1375
+ "default": 1
1376
+ },
1377
+ "search": {
1378
+ "name": "search",
1379
+ "type": "tsvector",
1380
+ "primaryKey": false,
1381
+ "notNull": false,
1382
+ "generated": {
1383
+ "as": "to_tsvector('simple', coalesce(title, '') || ' ' || coalesce(search_text, ''))",
1384
+ "type": "stored"
1385
+ }
1386
+ }
1387
+ },
1388
+ "indexes": {
1389
+ "published_contents_path_gist_idx": {
1390
+ "name": "published_contents_path_gist_idx",
1391
+ "columns": [
1392
+ {
1393
+ "expression": "path",
1394
+ "isExpression": false,
1395
+ "asc": true,
1396
+ "nulls": "last"
1397
+ }
1398
+ ],
1399
+ "isUnique": false,
1400
+ "concurrently": false,
1401
+ "method": "gist",
1402
+ "with": {}
1403
+ },
1404
+ "published_contents_parent_idx": {
1405
+ "name": "published_contents_parent_idx",
1406
+ "columns": [
1407
+ {
1408
+ "expression": "parent_id",
1409
+ "isExpression": false,
1410
+ "asc": true,
1411
+ "nulls": "last"
1412
+ }
1413
+ ],
1414
+ "isUnique": false,
1415
+ "concurrently": false,
1416
+ "method": "btree",
1417
+ "with": {}
1418
+ },
1419
+ "published_contents_space_type_idx": {
1420
+ "name": "published_contents_space_type_idx",
1421
+ "columns": [
1422
+ {
1423
+ "expression": "space_id",
1424
+ "isExpression": false,
1425
+ "asc": true,
1426
+ "nulls": "last"
1427
+ },
1428
+ {
1429
+ "expression": "type_id",
1430
+ "isExpression": false,
1431
+ "asc": true,
1432
+ "nulls": "last"
1433
+ }
1434
+ ],
1435
+ "isUnique": false,
1436
+ "concurrently": false,
1437
+ "method": "btree",
1438
+ "with": {}
1439
+ },
1440
+ "published_contents_fields_gin_idx": {
1441
+ "name": "published_contents_fields_gin_idx",
1442
+ "columns": [
1443
+ {
1444
+ "expression": "\"fields\" jsonb_path_ops",
1445
+ "asc": true,
1446
+ "isExpression": true,
1447
+ "nulls": "last"
1448
+ }
1449
+ ],
1450
+ "isUnique": false,
1451
+ "concurrently": false,
1452
+ "method": "gin",
1453
+ "with": {}
1454
+ },
1455
+ "published_contents_search_gin_idx": {
1456
+ "name": "published_contents_search_gin_idx",
1457
+ "columns": [
1458
+ {
1459
+ "expression": "search",
1460
+ "isExpression": false,
1461
+ "asc": true,
1462
+ "nulls": "last"
1463
+ }
1464
+ ],
1465
+ "isUnique": false,
1466
+ "concurrently": false,
1467
+ "method": "gin",
1468
+ "with": {}
1469
+ },
1470
+ "published_contents_permalink_key": {
1471
+ "name": "published_contents_permalink_key",
1472
+ "columns": [
1473
+ {
1474
+ "expression": "space_id",
1475
+ "isExpression": false,
1476
+ "asc": true,
1477
+ "nulls": "last"
1478
+ },
1479
+ {
1480
+ "expression": "locale",
1481
+ "isExpression": false,
1482
+ "asc": true,
1483
+ "nulls": "last"
1484
+ },
1485
+ {
1486
+ "expression": "permalink",
1487
+ "isExpression": false,
1488
+ "asc": true,
1489
+ "nulls": "last"
1490
+ }
1491
+ ],
1492
+ "isUnique": true,
1493
+ "where": "permalink is not null",
1494
+ "concurrently": false,
1495
+ "method": "btree",
1496
+ "with": {}
1497
+ }
1498
+ },
1499
+ "foreignKeys": {
1500
+ "published_contents_space_id_spaces_id_fk": {
1501
+ "name": "published_contents_space_id_spaces_id_fk",
1502
+ "tableFrom": "published_contents",
1503
+ "tableTo": "spaces",
1504
+ "columnsFrom": ["space_id"],
1505
+ "columnsTo": ["id"],
1506
+ "onDelete": "cascade",
1507
+ "onUpdate": "no action"
1508
+ }
1509
+ },
1510
+ "compositePrimaryKeys": {},
1511
+ "uniqueConstraints": {},
1512
+ "policies": {},
1513
+ "checkConstraints": {},
1514
+ "isRLSEnabled": false
1515
+ },
1516
+ "public.sessions": {
1517
+ "name": "sessions",
1518
+ "schema": "",
1519
+ "columns": {
1520
+ "id": {
1521
+ "name": "id",
1522
+ "type": "uuid",
1523
+ "primaryKey": true,
1524
+ "notNull": true,
1525
+ "default": "gen_random_uuid()"
1526
+ },
1527
+ "user_id": {
1528
+ "name": "user_id",
1529
+ "type": "uuid",
1530
+ "primaryKey": false,
1531
+ "notNull": true
1532
+ },
1533
+ "token": {
1534
+ "name": "token",
1535
+ "type": "text",
1536
+ "primaryKey": false,
1537
+ "notNull": true
1538
+ },
1539
+ "expires_at": {
1540
+ "name": "expires_at",
1541
+ "type": "timestamp with time zone",
1542
+ "primaryKey": false,
1543
+ "notNull": true
1544
+ },
1545
+ "ip_address": {
1546
+ "name": "ip_address",
1547
+ "type": "text",
1548
+ "primaryKey": false,
1549
+ "notNull": false
1550
+ },
1551
+ "user_agent": {
1552
+ "name": "user_agent",
1553
+ "type": "text",
1554
+ "primaryKey": false,
1555
+ "notNull": false
1556
+ },
1557
+ "created_at": {
1558
+ "name": "created_at",
1559
+ "type": "timestamp with time zone",
1560
+ "primaryKey": false,
1561
+ "notNull": true,
1562
+ "default": "now()"
1563
+ },
1564
+ "updated_at": {
1565
+ "name": "updated_at",
1566
+ "type": "timestamp with time zone",
1567
+ "primaryKey": false,
1568
+ "notNull": true,
1569
+ "default": "now()"
1570
+ }
1571
+ },
1572
+ "indexes": {
1573
+ "sessions_token_key": {
1574
+ "name": "sessions_token_key",
1575
+ "columns": [
1576
+ {
1577
+ "expression": "token",
1578
+ "isExpression": false,
1579
+ "asc": true,
1580
+ "nulls": "last"
1581
+ }
1582
+ ],
1583
+ "isUnique": true,
1584
+ "concurrently": false,
1585
+ "method": "btree",
1586
+ "with": {}
1587
+ },
1588
+ "sessions_user_idx": {
1589
+ "name": "sessions_user_idx",
1590
+ "columns": [
1591
+ {
1592
+ "expression": "user_id",
1593
+ "isExpression": false,
1594
+ "asc": true,
1595
+ "nulls": "last"
1596
+ }
1597
+ ],
1598
+ "isUnique": false,
1599
+ "concurrently": false,
1600
+ "method": "btree",
1601
+ "with": {}
1602
+ },
1603
+ "sessions_expires_idx": {
1604
+ "name": "sessions_expires_idx",
1605
+ "columns": [
1606
+ {
1607
+ "expression": "expires_at",
1608
+ "isExpression": false,
1609
+ "asc": true,
1610
+ "nulls": "last"
1611
+ }
1612
+ ],
1613
+ "isUnique": false,
1614
+ "concurrently": false,
1615
+ "method": "btree",
1616
+ "with": {}
1617
+ }
1618
+ },
1619
+ "foreignKeys": {
1620
+ "sessions_user_id_users_id_fk": {
1621
+ "name": "sessions_user_id_users_id_fk",
1622
+ "tableFrom": "sessions",
1623
+ "tableTo": "users",
1624
+ "columnsFrom": ["user_id"],
1625
+ "columnsTo": ["id"],
1626
+ "onDelete": "cascade",
1627
+ "onUpdate": "no action"
1628
+ }
1629
+ },
1630
+ "compositePrimaryKeys": {},
1631
+ "uniqueConstraints": {},
1632
+ "policies": {},
1633
+ "checkConstraints": {},
1634
+ "isRLSEnabled": false
1635
+ },
1636
+ "public.spaces": {
1637
+ "name": "spaces",
1638
+ "schema": "",
1639
+ "columns": {
1640
+ "id": {
1641
+ "name": "id",
1642
+ "type": "uuid",
1643
+ "primaryKey": true,
1644
+ "notNull": true,
1645
+ "default": "gen_random_uuid()"
1646
+ },
1647
+ "name": {
1648
+ "name": "name",
1649
+ "type": "text",
1650
+ "primaryKey": false,
1651
+ "notNull": true
1652
+ },
1653
+ "machine_name": {
1654
+ "name": "machine_name",
1655
+ "type": "text",
1656
+ "primaryKey": false,
1657
+ "notNull": true
1658
+ },
1659
+ "description": {
1660
+ "name": "description",
1661
+ "type": "text",
1662
+ "primaryKey": false,
1663
+ "notNull": false
1664
+ },
1665
+ "url": {
1666
+ "name": "url",
1667
+ "type": "text",
1668
+ "primaryKey": false,
1669
+ "notNull": true
1670
+ },
1671
+ "default_locale": {
1672
+ "name": "default_locale",
1673
+ "type": "text",
1674
+ "primaryKey": false,
1675
+ "notNull": true,
1676
+ "default": "'en'"
1677
+ },
1678
+ "locales": {
1679
+ "name": "locales",
1680
+ "type": "jsonb",
1681
+ "primaryKey": false,
1682
+ "notNull": true,
1683
+ "default": "'[\"en\"]'::jsonb"
1684
+ },
1685
+ "settings": {
1686
+ "name": "settings",
1687
+ "type": "jsonb",
1688
+ "primaryKey": false,
1689
+ "notNull": true,
1690
+ "default": "'{}'::jsonb"
1691
+ },
1692
+ "created_at": {
1693
+ "name": "created_at",
1694
+ "type": "timestamp with time zone",
1695
+ "primaryKey": false,
1696
+ "notNull": true,
1697
+ "default": "now()"
1698
+ },
1699
+ "updated_at": {
1700
+ "name": "updated_at",
1701
+ "type": "timestamp with time zone",
1702
+ "primaryKey": false,
1703
+ "notNull": true,
1704
+ "default": "now()"
1705
+ }
1706
+ },
1707
+ "indexes": {
1708
+ "spaces_machine_name_key": {
1709
+ "name": "spaces_machine_name_key",
1710
+ "columns": [
1711
+ {
1712
+ "expression": "machine_name",
1713
+ "isExpression": false,
1714
+ "asc": true,
1715
+ "nulls": "last"
1716
+ }
1717
+ ],
1718
+ "isUnique": true,
1719
+ "concurrently": false,
1720
+ "method": "btree",
1721
+ "with": {}
1722
+ }
1723
+ },
1724
+ "foreignKeys": {},
1725
+ "compositePrimaryKeys": {},
1726
+ "uniqueConstraints": {},
1727
+ "policies": {},
1728
+ "checkConstraints": {},
1729
+ "isRLSEnabled": false
1730
+ },
1731
+ "public.users": {
1732
+ "name": "users",
1733
+ "schema": "",
1734
+ "columns": {
1735
+ "id": {
1736
+ "name": "id",
1737
+ "type": "uuid",
1738
+ "primaryKey": true,
1739
+ "notNull": true,
1740
+ "default": "gen_random_uuid()"
1741
+ },
1742
+ "name": {
1743
+ "name": "name",
1744
+ "type": "text",
1745
+ "primaryKey": false,
1746
+ "notNull": true,
1747
+ "default": "''"
1748
+ },
1749
+ "email": {
1750
+ "name": "email",
1751
+ "type": "text",
1752
+ "primaryKey": false,
1753
+ "notNull": true
1754
+ },
1755
+ "email_verified": {
1756
+ "name": "email_verified",
1757
+ "type": "boolean",
1758
+ "primaryKey": false,
1759
+ "notNull": true,
1760
+ "default": false
1761
+ },
1762
+ "image": {
1763
+ "name": "image",
1764
+ "type": "text",
1765
+ "primaryKey": false,
1766
+ "notNull": false
1767
+ },
1768
+ "role": {
1769
+ "name": "role",
1770
+ "type": "text",
1771
+ "primaryKey": false,
1772
+ "notNull": true,
1773
+ "default": "'editor'"
1774
+ },
1775
+ "banned": {
1776
+ "name": "banned",
1777
+ "type": "boolean",
1778
+ "primaryKey": false,
1779
+ "notNull": true,
1780
+ "default": false
1781
+ },
1782
+ "ban_reason": {
1783
+ "name": "ban_reason",
1784
+ "type": "text",
1785
+ "primaryKey": false,
1786
+ "notNull": false
1787
+ },
1788
+ "created_at": {
1789
+ "name": "created_at",
1790
+ "type": "timestamp with time zone",
1791
+ "primaryKey": false,
1792
+ "notNull": true,
1793
+ "default": "now()"
1794
+ },
1795
+ "updated_at": {
1796
+ "name": "updated_at",
1797
+ "type": "timestamp with time zone",
1798
+ "primaryKey": false,
1799
+ "notNull": true,
1800
+ "default": "now()"
1801
+ }
1802
+ },
1803
+ "indexes": {
1804
+ "users_email_key": {
1805
+ "name": "users_email_key",
1806
+ "columns": [
1807
+ {
1808
+ "expression": "email",
1809
+ "isExpression": false,
1810
+ "asc": true,
1811
+ "nulls": "last"
1812
+ }
1813
+ ],
1814
+ "isUnique": true,
1815
+ "concurrently": false,
1816
+ "method": "btree",
1817
+ "with": {}
1818
+ }
1819
+ },
1820
+ "foreignKeys": {},
1821
+ "compositePrimaryKeys": {},
1822
+ "uniqueConstraints": {},
1823
+ "policies": {},
1824
+ "checkConstraints": {},
1825
+ "isRLSEnabled": false
1826
+ },
1827
+ "public.verifications": {
1828
+ "name": "verifications",
1829
+ "schema": "",
1830
+ "columns": {
1831
+ "id": {
1832
+ "name": "id",
1833
+ "type": "uuid",
1834
+ "primaryKey": true,
1835
+ "notNull": true,
1836
+ "default": "gen_random_uuid()"
1837
+ },
1838
+ "identifier": {
1839
+ "name": "identifier",
1840
+ "type": "text",
1841
+ "primaryKey": false,
1842
+ "notNull": true
1843
+ },
1844
+ "value": {
1845
+ "name": "value",
1846
+ "type": "text",
1847
+ "primaryKey": false,
1848
+ "notNull": true
1849
+ },
1850
+ "expires_at": {
1851
+ "name": "expires_at",
1852
+ "type": "timestamp with time zone",
1853
+ "primaryKey": false,
1854
+ "notNull": true
1855
+ },
1856
+ "created_at": {
1857
+ "name": "created_at",
1858
+ "type": "timestamp with time zone",
1859
+ "primaryKey": false,
1860
+ "notNull": true,
1861
+ "default": "now()"
1862
+ },
1863
+ "updated_at": {
1864
+ "name": "updated_at",
1865
+ "type": "timestamp with time zone",
1866
+ "primaryKey": false,
1867
+ "notNull": true,
1868
+ "default": "now()"
1869
+ }
1870
+ },
1871
+ "indexes": {
1872
+ "verifications_identifier_idx": {
1873
+ "name": "verifications_identifier_idx",
1874
+ "columns": [
1875
+ {
1876
+ "expression": "identifier",
1877
+ "isExpression": false,
1878
+ "asc": true,
1879
+ "nulls": "last"
1880
+ }
1881
+ ],
1882
+ "isUnique": false,
1883
+ "concurrently": false,
1884
+ "method": "btree",
1885
+ "with": {}
1886
+ }
1887
+ },
1888
+ "foreignKeys": {},
1889
+ "compositePrimaryKeys": {},
1890
+ "uniqueConstraints": {},
1891
+ "policies": {},
1892
+ "checkConstraints": {},
1893
+ "isRLSEnabled": false
1894
+ },
1895
+ "public.webhook_deliveries": {
1896
+ "name": "webhook_deliveries",
1897
+ "schema": "",
1898
+ "columns": {
1899
+ "id": {
1900
+ "name": "id",
1901
+ "type": "uuid",
1902
+ "primaryKey": true,
1903
+ "notNull": true,
1904
+ "default": "gen_random_uuid()"
1905
+ },
1906
+ "webhook_id": {
1907
+ "name": "webhook_id",
1908
+ "type": "uuid",
1909
+ "primaryKey": false,
1910
+ "notNull": true
1911
+ },
1912
+ "event": {
1913
+ "name": "event",
1914
+ "type": "text",
1915
+ "primaryKey": false,
1916
+ "notNull": true
1917
+ },
1918
+ "payload": {
1919
+ "name": "payload",
1920
+ "type": "jsonb",
1921
+ "primaryKey": false,
1922
+ "notNull": true
1923
+ },
1924
+ "status": {
1925
+ "name": "status",
1926
+ "type": "integer",
1927
+ "primaryKey": false,
1928
+ "notNull": false
1929
+ },
1930
+ "error": {
1931
+ "name": "error",
1932
+ "type": "text",
1933
+ "primaryKey": false,
1934
+ "notNull": false
1935
+ },
1936
+ "attempt": {
1937
+ "name": "attempt",
1938
+ "type": "integer",
1939
+ "primaryKey": false,
1940
+ "notNull": true,
1941
+ "default": 1
1942
+ },
1943
+ "created_at": {
1944
+ "name": "created_at",
1945
+ "type": "timestamp with time zone",
1946
+ "primaryKey": false,
1947
+ "notNull": true,
1948
+ "default": "now()"
1949
+ }
1950
+ },
1951
+ "indexes": {
1952
+ "webhook_deliveries_webhook_idx": {
1953
+ "name": "webhook_deliveries_webhook_idx",
1954
+ "columns": [
1955
+ {
1956
+ "expression": "webhook_id",
1957
+ "isExpression": false,
1958
+ "asc": true,
1959
+ "nulls": "last"
1960
+ },
1961
+ {
1962
+ "expression": "created_at",
1963
+ "isExpression": false,
1964
+ "asc": true,
1965
+ "nulls": "last"
1966
+ }
1967
+ ],
1968
+ "isUnique": false,
1969
+ "concurrently": false,
1970
+ "method": "btree",
1971
+ "with": {}
1972
+ }
1973
+ },
1974
+ "foreignKeys": {
1975
+ "webhook_deliveries_webhook_id_webhooks_id_fk": {
1976
+ "name": "webhook_deliveries_webhook_id_webhooks_id_fk",
1977
+ "tableFrom": "webhook_deliveries",
1978
+ "tableTo": "webhooks",
1979
+ "columnsFrom": ["webhook_id"],
1980
+ "columnsTo": ["id"],
1981
+ "onDelete": "cascade",
1982
+ "onUpdate": "no action"
1983
+ }
1984
+ },
1985
+ "compositePrimaryKeys": {},
1986
+ "uniqueConstraints": {},
1987
+ "policies": {},
1988
+ "checkConstraints": {},
1989
+ "isRLSEnabled": false
1990
+ },
1991
+ "public.webhooks": {
1992
+ "name": "webhooks",
1993
+ "schema": "",
1994
+ "columns": {
1995
+ "id": {
1996
+ "name": "id",
1997
+ "type": "uuid",
1998
+ "primaryKey": true,
1999
+ "notNull": true,
2000
+ "default": "gen_random_uuid()"
2001
+ },
2002
+ "space_id": {
2003
+ "name": "space_id",
2004
+ "type": "uuid",
2005
+ "primaryKey": false,
2006
+ "notNull": true
2007
+ },
2008
+ "name": {
2009
+ "name": "name",
2010
+ "type": "text",
2011
+ "primaryKey": false,
2012
+ "notNull": true
2013
+ },
2014
+ "url": {
2015
+ "name": "url",
2016
+ "type": "text",
2017
+ "primaryKey": false,
2018
+ "notNull": true
2019
+ },
2020
+ "secret": {
2021
+ "name": "secret",
2022
+ "type": "text",
2023
+ "primaryKey": false,
2024
+ "notNull": false
2025
+ },
2026
+ "events": {
2027
+ "name": "events",
2028
+ "type": "jsonb",
2029
+ "primaryKey": false,
2030
+ "notNull": true,
2031
+ "default": "'[]'::jsonb"
2032
+ },
2033
+ "enabled": {
2034
+ "name": "enabled",
2035
+ "type": "boolean",
2036
+ "primaryKey": false,
2037
+ "notNull": true,
2038
+ "default": true
2039
+ },
2040
+ "created_at": {
2041
+ "name": "created_at",
2042
+ "type": "timestamp with time zone",
2043
+ "primaryKey": false,
2044
+ "notNull": true,
2045
+ "default": "now()"
2046
+ }
2047
+ },
2048
+ "indexes": {
2049
+ "webhooks_space_idx": {
2050
+ "name": "webhooks_space_idx",
2051
+ "columns": [
2052
+ {
2053
+ "expression": "space_id",
2054
+ "isExpression": false,
2055
+ "asc": true,
2056
+ "nulls": "last"
2057
+ }
2058
+ ],
2059
+ "isUnique": false,
2060
+ "concurrently": false,
2061
+ "method": "btree",
2062
+ "with": {}
2063
+ }
2064
+ },
2065
+ "foreignKeys": {
2066
+ "webhooks_space_id_spaces_id_fk": {
2067
+ "name": "webhooks_space_id_spaces_id_fk",
2068
+ "tableFrom": "webhooks",
2069
+ "tableTo": "spaces",
2070
+ "columnsFrom": ["space_id"],
2071
+ "columnsTo": ["id"],
2072
+ "onDelete": "cascade",
2073
+ "onUpdate": "no action"
2074
+ }
2075
+ },
2076
+ "compositePrimaryKeys": {},
2077
+ "uniqueConstraints": {},
2078
+ "policies": {},
2079
+ "checkConstraints": {},
2080
+ "isRLSEnabled": false
2081
+ }
2082
+ },
2083
+ "enums": {},
2084
+ "schemas": {},
2085
+ "sequences": {},
2086
+ "roles": {},
2087
+ "policies": {},
2088
+ "views": {},
2089
+ "_meta": {
2090
+ "columns": {},
2091
+ "schemas": {},
2092
+ "tables": {}
2093
+ }
2094
+ }