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

0005_snapshot.json

1,339 lines33.0 KB

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