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

0004_snapshot.json

1,295 lines31.9 KB

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