Skip to content
Source
Sign inSign up
samwillis/neonbricks
Open History to see the last commit

0001_snapshot.json

1,092 lines26.8 KB

1{
2 "id": "f8113c3a-b2a9-4803-9013-0ff697fdaaf0",
3 "prevId": "8dff0b5b-20a6-490f-8c74-27029c0bc296",
4 "version": "7",
5 "dialect": "postgresql",
6 "tables": {
7 "public.spatial_buckets": {
8 "name": "spatial_buckets",
9 "schema": "",
10 "columns": {
11 "world": {
12 "name": "world",
13 "type": "uuid",
14 "primaryKey": false,
15 "notNull": true
16 },
17 "x": {
18 "name": "x",
19 "type": "integer",
20 "primaryKey": false,
21 "notNull": true
22 },
23 "y": {
24 "name": "y",
25 "type": "integer",
26 "primaryKey": false,
27 "notNull": true
28 },
29 "z": {
30 "name": "z",
31 "type": "integer",
32 "primaryKey": false,
33 "notNull": true
34 }
35 },
36 "indexes": {},
37 "foreignKeys": {
38 "spatial_buckets_world_worlds_id_fk": {
39 "name": "spatial_buckets_world_worlds_id_fk",
40 "tableFrom": "spatial_buckets",
41 "tableTo": "worlds",
42 "columnsFrom": [
43 "world"
44 ],
45 "columnsTo": [
46 "id"
47 ],
48 "onDelete": "no action",
49 "onUpdate": "no action"
50 }
51 },
52 "compositePrimaryKeys": {
53 "spatial_buckets_world_x_y_z_pk": {
54 "name": "spatial_buckets_world_x_y_z_pk",
55 "columns": [
56 "world",
57 "x",
58 "y",
59 "z"
60 ]
61 }
62 },
63 "uniqueConstraints": {},
64 "policies": {},
65 "checkConstraints": {},
66 "isRLSEnabled": false
67 },
68 "public.connector_slot_claims": {
69 "name": "connector_slot_claims",
70 "schema": "",
71 "columns": {
72 "world": {
73 "name": "world",
74 "type": "uuid",
75 "primaryKey": false,
76 "notNull": true
77 },
78 "part": {
79 "name": "part",
80 "type": "uuid",
81 "primaryKey": false,
82 "notNull": true
83 },
84 "slot": {
85 "name": "slot",
86 "type": "text",
87 "primaryKey": false,
88 "notNull": true
89 },
90 "connection": {
91 "name": "connection",
92 "type": "uuid",
93 "primaryKey": false,
94 "notNull": true
95 }
96 },
97 "indexes": {},
98 "foreignKeys": {
99 "connector_slot_claims_world_worlds_id_fk": {
100 "name": "connector_slot_claims_world_worlds_id_fk",
101 "tableFrom": "connector_slot_claims",
102 "tableTo": "worlds",
103 "columnsFrom": [
104 "world"
105 ],
106 "columnsTo": [
107 "id"
108 ],
109 "onDelete": "no action",
110 "onUpdate": "no action"
111 },
112 "connector_slot_claims_part_part_instances_id_fk": {
113 "name": "connector_slot_claims_part_part_instances_id_fk",
114 "tableFrom": "connector_slot_claims",
115 "tableTo": "part_instances",
116 "columnsFrom": [
117 "part"
118 ],
119 "columnsTo": [
120 "id"
121 ],
122 "onDelete": "no action",
123 "onUpdate": "no action"
124 },
125 "connector_slot_claims_connection_part_connections_id_fk": {
126 "name": "connector_slot_claims_connection_part_connections_id_fk",
127 "tableFrom": "connector_slot_claims",
128 "tableTo": "part_connections",
129 "columnsFrom": [
130 "connection"
131 ],
132 "columnsTo": [
133 "id"
134 ],
135 "onDelete": "no action",
136 "onUpdate": "no action"
137 }
138 },
139 "compositePrimaryKeys": {
140 "connector_slot_claims_world_part_slot_pk": {
141 "name": "connector_slot_claims_world_part_slot_pk",
142 "columns": [
143 "world",
144 "part",
145 "slot"
146 ]
147 }
148 },
149 "uniqueConstraints": {},
150 "policies": {},
151 "checkConstraints": {},
152 "isRLSEnabled": false
153 },
154 "public.part_connections": {
155 "name": "part_connections",
156 "schema": "",
157 "columns": {
158 "id": {
159 "name": "id",
160 "type": "uuid",
161 "primaryKey": true,
162 "notNull": true
163 },
164 "world": {
165 "name": "world",
166 "type": "uuid",
167 "primaryKey": false,
168 "notNull": true
169 },
170 "a": {
171 "name": "a",
172 "type": "uuid",
173 "primaryKey": false,
174 "notNull": true
175 },
176 "b": {
177 "name": "b",
178 "type": "uuid",
179 "primaryKey": false,
180 "notNull": true
181 },
182 "ca": {
183 "name": "ca",
184 "type": "text",
185 "primaryKey": false,
186 "notNull": true
187 },
188 "cb": {
189 "name": "cb",
190 "type": "text",
191 "primaryKey": false,
192 "notNull": true
193 },
194 "revision": {
195 "name": "revision",
196 "type": "integer",
197 "primaryKey": false,
198 "notNull": true
199 },
200 "deleted": {
201 "name": "deleted",
202 "type": "integer",
203 "primaryKey": false,
204 "notNull": true,
205 "default": 0
206 }
207 },
208 "indexes": {
209 "connection_pair": {
210 "name": "connection_pair",
211 "columns": [
212 {
213 "expression": "world",
214 "isExpression": false,
215 "asc": true,
216 "nulls": "last"
217 },
218 {
219 "expression": "a",
220 "isExpression": false,
221 "asc": true,
222 "nulls": "last"
223 },
224 {
225 "expression": "b",
226 "isExpression": false,
227 "asc": true,
228 "nulls": "last"
229 },
230 {
231 "expression": "ca",
232 "isExpression": false,
233 "asc": true,
234 "nulls": "last"
235 },
236 {
237 "expression": "cb",
238 "isExpression": false,
239 "asc": true,
240 "nulls": "last"
241 }
242 ],
243 "isUnique": true,
244 "concurrently": false,
245 "method": "btree",
246 "with": {}
247 },
248 "connections_a": {
249 "name": "connections_a",
250 "columns": [
251 {
252 "expression": "world",
253 "isExpression": false,
254 "asc": true,
255 "nulls": "last"
256 },
257 {
258 "expression": "a",
259 "isExpression": false,
260 "asc": true,
261 "nulls": "last"
262 }
263 ],
264 "isUnique": false,
265 "concurrently": false,
266 "method": "btree",
267 "with": {}
268 },
269 "connections_b": {
270 "name": "connections_b",
271 "columns": [
272 {
273 "expression": "world",
274 "isExpression": false,
275 "asc": true,
276 "nulls": "last"
277 },
278 {
279 "expression": "b",
280 "isExpression": false,
281 "asc": true,
282 "nulls": "last"
283 }
284 ],
285 "isUnique": false,
286 "concurrently": false,
287 "method": "btree",
288 "with": {}
289 }
290 },
291 "foreignKeys": {
292 "part_connections_world_worlds_id_fk": {
293 "name": "part_connections_world_worlds_id_fk",
294 "tableFrom": "part_connections",
295 "tableTo": "worlds",
296 "columnsFrom": [
297 "world"
298 ],
299 "columnsTo": [
300 "id"
301 ],
302 "onDelete": "no action",
303 "onUpdate": "no action"
304 },
305 "part_connections_a_part_instances_id_fk": {
306 "name": "part_connections_a_part_instances_id_fk",
307 "tableFrom": "part_connections",
308 "tableTo": "part_instances",
309 "columnsFrom": [
310 "a"
311 ],
312 "columnsTo": [
313 "id"
314 ],
315 "onDelete": "no action",
316 "onUpdate": "no action"
317 },
318 "part_connections_b_part_instances_id_fk": {
319 "name": "part_connections_b_part_instances_id_fk",
320 "tableFrom": "part_connections",
321 "tableTo": "part_instances",
322 "columnsFrom": [
323 "b"
324 ],
325 "columnsTo": [
326 "id"
327 ],
328 "onDelete": "no action",
329 "onUpdate": "no action"
330 }
331 },
332 "compositePrimaryKeys": {},
333 "uniqueConstraints": {},
334 "policies": {},
335 "checkConstraints": {},
336 "isRLSEnabled": false
337 },
338 "public.guests": {
339 "name": "guests",
340 "schema": "",
341 "columns": {
342 "id": {
343 "name": "id",
344 "type": "uuid",
345 "primaryKey": true,
346 "notNull": true
347 },
348 "name": {
349 "name": "name",
350 "type": "text",
351 "primaryKey": false,
352 "notNull": true
353 },
354 "color": {
355 "name": "color",
356 "type": "text",
357 "primaryKey": false,
358 "notNull": true
359 }
360 },
361 "indexes": {},
362 "foreignKeys": {},
363 "compositePrimaryKeys": {},
364 "uniqueConstraints": {},
365 "policies": {},
366 "checkConstraints": {},
367 "isRLSEnabled": false
368 },
369 "public.guest_world_history": {
370 "name": "guest_world_history",
371 "schema": "",
372 "columns": {
373 "world": {
374 "name": "world",
375 "type": "uuid",
376 "primaryKey": false,
377 "notNull": true
378 },
379 "guest": {
380 "name": "guest",
381 "type": "uuid",
382 "primaryKey": false,
383 "notNull": true
384 },
385 "generation": {
386 "name": "generation",
387 "type": "integer",
388 "primaryKey": false,
389 "notNull": true
390 },
391 "undo": {
392 "name": "undo",
393 "type": "jsonb",
394 "primaryKey": false,
395 "notNull": true,
396 "default": "'[]'::jsonb"
397 },
398 "redo": {
399 "name": "redo",
400 "type": "jsonb",
401 "primaryKey": false,
402 "notNull": true,
403 "default": "'[]'::jsonb"
404 }
405 },
406 "indexes": {},
407 "foreignKeys": {
408 "guest_world_history_world_worlds_id_fk": {
409 "name": "guest_world_history_world_worlds_id_fk",
410 "tableFrom": "guest_world_history",
411 "tableTo": "worlds",
412 "columnsFrom": [
413 "world"
414 ],
415 "columnsTo": [
416 "id"
417 ],
418 "onDelete": "no action",
419 "onUpdate": "no action"
420 },
421 "guest_world_history_guest_guests_id_fk": {
422 "name": "guest_world_history_guest_guests_id_fk",
423 "tableFrom": "guest_world_history",
424 "tableTo": "guests",
425 "columnsFrom": [
426 "guest"
427 ],
428 "columnsTo": [
429 "id"
430 ],
431 "onDelete": "no action",
432 "onUpdate": "no action"
433 }
434 },
435 "compositePrimaryKeys": {
436 "guest_world_history_world_guest_pk": {
437 "name": "guest_world_history_world_guest_pk",
438 "columns": [
439 "world",
440 "guest"
441 ]
442 }
443 },
444 "uniqueConstraints": {},
445 "policies": {},
446 "checkConstraints": {},
447 "isRLSEnabled": false
448 },
449 "public.world_memberships": {
450 "name": "world_memberships",
451 "schema": "",
452 "columns": {
453 "world": {
454 "name": "world",
455 "type": "uuid",
456 "primaryKey": false,
457 "notNull": true
458 },
459 "guest": {
460 "name": "guest",
461 "type": "uuid",
462 "primaryKey": false,
463 "notNull": true
464 },
465 "role": {
466 "name": "role",
467 "type": "text",
468 "primaryKey": false,
469 "notNull": true,
470 "default": "'editor'"
471 },
472 "active": {
473 "name": "active",
474 "type": "integer",
475 "primaryKey": false,
476 "notNull": true,
477 "default": 1
478 }
479 },
480 "indexes": {},
481 "foreignKeys": {
482 "world_memberships_world_worlds_id_fk": {
483 "name": "world_memberships_world_worlds_id_fk",
484 "tableFrom": "world_memberships",
485 "tableTo": "worlds",
486 "columnsFrom": [
487 "world"
488 ],
489 "columnsTo": [
490 "id"
491 ],
492 "onDelete": "no action",
493 "onUpdate": "no action"
494 },
495 "world_memberships_guest_guests_id_fk": {
496 "name": "world_memberships_guest_guests_id_fk",
497 "tableFrom": "world_memberships",
498 "tableTo": "guests",
499 "columnsFrom": [
500 "guest"
501 ],
502 "columnsTo": [
503 "id"
504 ],
505 "onDelete": "no action",
506 "onUpdate": "no action"
507 }
508 },
509 "compositePrimaryKeys": {
510 "world_memberships_world_guest_pk": {
511 "name": "world_memberships_world_guest_pk",
512 "columns": [
513 "world",
514 "guest"
515 ]
516 }
517 },
518 "uniqueConstraints": {},
519 "policies": {},
520 "checkConstraints": {},
521 "isRLSEnabled": false
522 },
523 "public.build_operations": {
524 "name": "build_operations",
525 "schema": "",
526 "columns": {
527 "world": {
528 "name": "world",
529 "type": "uuid",
530 "primaryKey": false,
531 "notNull": true
532 },
533 "guest": {
534 "name": "guest",
535 "type": "uuid",
536 "primaryKey": false,
537 "notNull": true
538 },
539 "id": {
540 "name": "id",
541 "type": "uuid",
542 "primaryKey": false,
543 "notNull": true
544 },
545 "generation": {
546 "name": "generation",
547 "type": "integer",
548 "primaryKey": false,
549 "notNull": true
550 },
551 "digest": {
552 "name": "digest",
553 "type": "text",
554 "primaryKey": false,
555 "notNull": true
556 },
557 "receipt": {
558 "name": "receipt",
559 "type": "jsonb",
560 "primaryKey": false,
561 "notNull": false
562 },
563 "before": {
564 "name": "before",
565 "type": "jsonb",
566 "primaryKey": false,
567 "notNull": false
568 },
569 "after": {
570 "name": "after",
571 "type": "jsonb",
572 "primaryKey": false,
573 "notNull": false
574 },
575 "before_connections": {
576 "name": "before_connections",
577 "type": "jsonb",
578 "primaryKey": false,
579 "notNull": false
580 },
581 "after_connections": {
582 "name": "after_connections",
583 "type": "jsonb",
584 "primaryKey": false,
585 "notNull": false
586 },
587 "created_at": {
588 "name": "created_at",
589 "type": "timestamp with time zone",
590 "primaryKey": false,
591 "notNull": true,
592 "default": "now()"
593 }
594 },
595 "indexes": {},
596 "foreignKeys": {
597 "build_operations_world_worlds_id_fk": {
598 "name": "build_operations_world_worlds_id_fk",
599 "tableFrom": "build_operations",
600 "tableTo": "worlds",
601 "columnsFrom": [
602 "world"
603 ],
604 "columnsTo": [
605 "id"
606 ],
607 "onDelete": "no action",
608 "onUpdate": "no action"
609 },
610 "build_operations_guest_guests_id_fk": {
611 "name": "build_operations_guest_guests_id_fk",
612 "tableFrom": "build_operations",
613 "tableTo": "guests",
614 "columnsFrom": [
615 "guest"
616 ],
617 "columnsTo": [
618 "id"
619 ],
620 "onDelete": "no action",
621 "onUpdate": "no action"
622 }
623 },
624 "compositePrimaryKeys": {
625 "build_operations_world_guest_id_pk": {
626 "name": "build_operations_world_guest_id_pk",
627 "columns": [
628 "world",
629 "guest",
630 "id"
631 ]
632 }
633 },
634 "uniqueConstraints": {},
635 "policies": {},
636 "checkConstraints": {},
637 "isRLSEnabled": false
638 },
639 "public.part_instances": {
640 "name": "part_instances",
641 "schema": "",
642 "columns": {
643 "id": {
644 "name": "id",
645 "type": "uuid",
646 "primaryKey": true,
647 "notNull": true
648 },
649 "world": {
650 "name": "world",
651 "type": "uuid",
652 "primaryKey": false,
653 "notNull": true
654 },
655 "key": {
656 "name": "key",
657 "type": "text",
658 "primaryKey": false,
659 "notNull": true
660 },
661 "color": {
662 "name": "color",
663 "type": "text",
664 "primaryKey": false,
665 "notNull": true
666 },
667 "x": {
668 "name": "x",
669 "type": "integer",
670 "primaryKey": false,
671 "notNull": true
672 },
673 "y": {
674 "name": "y",
675 "type": "integer",
676 "primaryKey": false,
677 "notNull": true
678 },
679 "z": {
680 "name": "z",
681 "type": "integer",
682 "primaryKey": false,
683 "notNull": true
684 },
685 "rotation": {
686 "name": "rotation",
687 "type": "integer",
688 "primaryKey": false,
689 "notNull": true
690 },
691 "revision": {
692 "name": "revision",
693 "type": "integer",
694 "primaryKey": false,
695 "notNull": true
696 },
697 "deleted": {
698 "name": "deleted",
699 "type": "integer",
700 "primaryKey": false,
701 "notNull": true,
702 "default": 0
703 },
704 "minx": {
705 "name": "minx",
706 "type": "integer",
707 "primaryKey": false,
708 "notNull": true
709 },
710 "miny": {
711 "name": "miny",
712 "type": "integer",
713 "primaryKey": false,
714 "notNull": true
715 },
716 "minz": {
717 "name": "minz",
718 "type": "integer",
719 "primaryKey": false,
720 "notNull": true
721 },
722 "maxx": {
723 "name": "maxx",
724 "type": "integer",
725 "primaryKey": false,
726 "notNull": true
727 },
728 "maxy": {
729 "name": "maxy",
730 "type": "integer",
731 "primaryKey": false,
732 "notNull": true
733 },
734 "maxz": {
735 "name": "maxz",
736 "type": "integer",
737 "primaryKey": false,
738 "notNull": true
739 }
740 },
741 "indexes": {
742 "parts_world_bounds": {
743 "name": "parts_world_bounds",
744 "columns": [
745 {
746 "expression": "world",
747 "isExpression": false,
748 "asc": true,
749 "nulls": "last"
750 },
751 {
752 "expression": "minx",
753 "isExpression": false,
754 "asc": true,
755 "nulls": "last"
756 },
757 {
758 "expression": "maxx",
759 "isExpression": false,
760 "asc": true,
761 "nulls": "last"
762 }
763 ],
764 "isUnique": false,
765 "where": "\"part_instances\".\"deleted\"=0",
766 "concurrently": false,
767 "method": "btree",
768 "with": {}
769 }
770 },
771 "foreignKeys": {
772 "part_instances_world_worlds_id_fk": {
773 "name": "part_instances_world_worlds_id_fk",
774 "tableFrom": "part_instances",
775 "tableTo": "worlds",
776 "columnsFrom": [
777 "world"
778 ],
779 "columnsTo": [
780 "id"
781 ],
782 "onDelete": "no action",
783 "onUpdate": "no action"
784 }
785 },
786 "compositePrimaryKeys": {},
787 "uniqueConstraints": {},
788 "policies": {},
789 "checkConstraints": {},
790 "isRLSEnabled": false
791 },
792 "public.guest_sessions": {
793 "name": "guest_sessions",
794 "schema": "",
795 "columns": {
796 "id": {
797 "name": "id",
798 "type": "uuid",
799 "primaryKey": true,
800 "notNull": true
801 },
802 "guest": {
803 "name": "guest",
804 "type": "uuid",
805 "primaryKey": false,
806 "notNull": true
807 },
808 "hash": {
809 "name": "hash",
810 "type": "text",
811 "primaryKey": false,
812 "notNull": true
813 },
814 "expires_at": {
815 "name": "expires_at",
816 "type": "timestamp with time zone",
817 "primaryKey": false,
818 "notNull": true
819 },
820 "absolute_expiry": {
821 "name": "absolute_expiry",
822 "type": "timestamp with time zone",
823 "primaryKey": false,
824 "notNull": true
825 },
826 "revoked": {
827 "name": "revoked",
828 "type": "integer",
829 "primaryKey": false,
830 "notNull": true,
831 "default": 0
832 }
833 },
834 "indexes": {},
835 "foreignKeys": {
836 "guest_sessions_guest_guests_id_fk": {
837 "name": "guest_sessions_guest_guests_id_fk",
838 "tableFrom": "guest_sessions",
839 "tableTo": "guests",
840 "columnsFrom": [
841 "guest"
842 ],
843 "columnsTo": [
844 "id"
845 ],
846 "onDelete": "no action",
847 "onUpdate": "no action"
848 }
849 },
850 "compositePrimaryKeys": {},
851 "uniqueConstraints": {
852 "guest_sessions_hash_unique": {
853 "name": "guest_sessions_hash_unique",
854 "nullsNotDistinct": false,
855 "columns": [
856 "hash"
857 ]
858 }
859 },
860 "policies": {},
861 "checkConstraints": {},
862 "isRLSEnabled": false
863 },
864 "public.viewer_sessions": {
865 "name": "viewer_sessions",
866 "schema": "",
867 "columns": {
868 "id": {
869 "name": "id",
870 "type": "uuid",
871 "primaryKey": true,
872 "notNull": true
873 },
874 "world": {
875 "name": "world",
876 "type": "uuid",
877 "primaryKey": false,
878 "notNull": true
879 },
880 "guest": {
881 "name": "guest",
882 "type": "uuid",
883 "primaryKey": false,
884 "notNull": true
885 },
886 "session": {
887 "name": "session",
888 "type": "uuid",
889 "primaryKey": false,
890 "notNull": true
891 },
892 "generation": {
893 "name": "generation",
894 "type": "integer",
895 "primaryKey": false,
896 "notNull": true
897 },
898 "selection": {
899 "name": "selection",
900 "type": "jsonb",
901 "primaryKey": false,
902 "notNull": true,
903 "default": "'[]'::jsonb"
904 },
905 "preview": {
906 "name": "preview",
907 "type": "jsonb",
908 "primaryKey": false,
909 "notNull": false
910 },
911 "sequence": {
912 "name": "sequence",
913 "type": "integer",
914 "primaryKey": false,
915 "notNull": true,
916 "default": 0
917 },
918 "preview_at": {
919 "name": "preview_at",
920 "type": "timestamp with time zone",
921 "primaryKey": false,
922 "notNull": false
923 },
924 "expires_at": {
925 "name": "expires_at",
926 "type": "timestamp with time zone",
927 "primaryKey": false,
928 "notNull": true
929 }
930 },
931 "indexes": {
932 "viewers_expiry": {
933 "name": "viewers_expiry",
934 "columns": [
935 {
936 "expression": "world",
937 "isExpression": false,
938 "asc": true,
939 "nulls": "last"
940 },
941 {
942 "expression": "expires_at",
943 "isExpression": false,
944 "asc": true,
945 "nulls": "last"
946 }
947 ],
948 "isUnique": false,
949 "concurrently": false,
950 "method": "btree",
951 "with": {}
952 }
953 },
954 "foreignKeys": {
955 "viewer_sessions_world_worlds_id_fk": {
956 "name": "viewer_sessions_world_worlds_id_fk",
957 "tableFrom": "viewer_sessions",
958 "tableTo": "worlds",
959 "columnsFrom": [
960 "world"
961 ],
962 "columnsTo": [
963 "id"
964 ],
965 "onDelete": "no action",
966 "onUpdate": "no action"
967 },
968 "viewer_sessions_guest_guests_id_fk": {
969 "name": "viewer_sessions_guest_guests_id_fk",
970 "tableFrom": "viewer_sessions",
971 "tableTo": "guests",
972 "columnsFrom": [
973 "guest"
974 ],
975 "columnsTo": [
976 "id"
977 ],
978 "onDelete": "no action",
979 "onUpdate": "no action"
980 },
981 "viewer_sessions_session_guest_sessions_id_fk": {
982 "name": "viewer_sessions_session_guest_sessions_id_fk",
983 "tableFrom": "viewer_sessions",
984 "tableTo": "guest_sessions",
985 "columnsFrom": [
986 "session"
987 ],
988 "columnsTo": [
989 "id"
990 ],
991 "onDelete": "no action",
992 "onUpdate": "no action"
993 }
994 },
995 "compositePrimaryKeys": {},
996 "uniqueConstraints": {},
997 "policies": {},
998 "checkConstraints": {},
999 "isRLSEnabled": false
1000 },
1001 "public.worlds": {
1002 "name": "worlds",
1003 "schema": "",
1004 "columns": {
1005 "id": {
1006 "name": "id",
1007 "type": "uuid",
1008 "primaryKey": true,
1009 "notNull": true
1010 },
1011 "slug": {
1012 "name": "slug",
1013 "type": "text",
1014 "primaryKey": false,
1015 "notNull": true
1016 },
1017 "title": {
1018 "name": "title",
1019 "type": "text",
1020 "primaryKey": false,
1021 "notNull": true
1022 },
1023 "owner": {
1024 "name": "owner",
1025 "type": "uuid",
1026 "primaryKey": false,
1027 "notNull": false
1028 },
1029 "generation": {
1030 "name": "generation",
1031 "type": "integer",
1032 "primaryKey": false,
1033 "notNull": true,
1034 "default": 1
1035 },
1036 "catalogue": {
1037 "name": "catalogue",
1038 "type": "text",
1039 "primaryKey": false,
1040 "notNull": true
1041 },
1042 "status": {
1043 "name": "status",
1044 "type": "text",
1045 "primaryKey": false,
1046 "notNull": true,
1047 "default": "'open'"
1048 },
1049 "expires_at": {
1050 "name": "expires_at",
1051 "type": "timestamp with time zone",
1052 "primaryKey": false,
1053 "notNull": false,
1054 "default": "now()+interval '24 hours'"
1055 },
1056 "created_at": {
1057 "name": "created_at",
1058 "type": "timestamp with time zone",
1059 "primaryKey": false,
1060 "notNull": true,
1061 "default": "now()"
1063 },
1064 "indexes": {},
1065 "foreignKeys": {},
1066 "compositePrimaryKeys": {},
1067 "uniqueConstraints": {
1068 "worlds_slug_unique": {
1069 "name": "worlds_slug_unique",
1070 "nullsNotDistinct": false,
1071 "columns": [
1072 "slug"
1075 },
1076 "policies": {},
1077 "checkConstraints": {},
1078 "isRLSEnabled": false
1080 },
1081 "enums": {},
1082 "schemas": {},
1083 "sequences": {},
1084 "roles": {},
1085 "policies": {},
1086 "views": {},
1087 "_meta": {
1088 "columns": {},
1089 "schemas": {},
1090 "tables": {}