Skip to content
File

Blob: drizzle/d1/meta/0004_snapshot.json

json1019 lines
1{
2 "version": "6",
3 "dialect": "sqlite",
4 "id": "ebd2a5bc-7633-4d5a-b352-cf29e0dc6741",
5 "prevId": "a0b97f2d-90dc-4b36-8c58-b34dcca0a6e7",
6 "tables": {
7 "invites": {
8 "name": "invites",
9 "columns": {
10 "id": {
11 "name": "id",
12 "type": "text",
13 "primaryKey": true,
14 "notNull": true,
15 "autoincrement": false
16 },
17 "email": {
18 "name": "email",
19 "type": "text",
20 "primaryKey": false,
21 "notNull": false,
22 "autoincrement": false
23 },
24 "workspace_id": {
25 "name": "workspace_id",
26 "type": "text",
27 "primaryKey": false,
28 "notNull": true,
29 "autoincrement": false
30 },
31 "invited_by": {
32 "name": "invited_by",
33 "type": "text",
34 "primaryKey": false,
35 "notNull": true,
36 "autoincrement": false
37 },
38 "role": {
39 "name": "role",
40 "type": "text",
41 "primaryKey": false,
42 "notNull": true,
43 "autoincrement": false,
44 "default": "'member'"
45 },
46 "token": {
47 "name": "token",
48 "type": "text",
49 "primaryKey": false,
50 "notNull": true,
51 "autoincrement": false
52 },
53 "accepted_at": {
54 "name": "accepted_at",
55 "type": "text",
56 "primaryKey": false,
57 "notNull": false,
58 "autoincrement": false
59 },
60 "accepted_by": {
61 "name": "accepted_by",
62 "type": "text",
63 "primaryKey": false,
64 "notNull": false,
65 "autoincrement": false
66 },
67 "revoked_at": {
68 "name": "revoked_at",
69 "type": "text",
70 "primaryKey": false,
71 "notNull": false,
72 "autoincrement": false
73 },
74 "expires_at": {
75 "name": "expires_at",
76 "type": "text",
77 "primaryKey": false,
78 "notNull": true,
79 "autoincrement": false
80 },
81 "created_at": {
82 "name": "created_at",
83 "type": "text",
84 "primaryKey": false,
85 "notNull": true,
86 "autoincrement": false,
87 "default": "(datetime('now'))"
88 }
89 },
90 "indexes": {
91 "invites_token_unique": {
92 "name": "invites_token_unique",
93 "columns": [
94 "token"
95 ],
96 "isUnique": true
97 },
98 "idx_invites_token": {
99 "name": "idx_invites_token",
100 "columns": [
101 "token"
102 ],
103 "isUnique": false
104 },
105 "idx_invites_email": {
106 "name": "idx_invites_email",
107 "columns": [
108 "email"
109 ],
110 "isUnique": false
111 }
112 },
113 "foreignKeys": {
114 "invites_workspace_id_workspaces_id_fk": {
115 "name": "invites_workspace_id_workspaces_id_fk",
116 "tableFrom": "invites",
117 "tableTo": "workspaces",
118 "columnsFrom": [
119 "workspace_id"
120 ],
121 "columnsTo": [
122 "id"
123 ],
124 "onDelete": "no action",
125 "onUpdate": "no action"
126 },
127 "invites_invited_by_users_id_fk": {
128 "name": "invites_invited_by_users_id_fk",
129 "tableFrom": "invites",
130 "tableTo": "users",
131 "columnsFrom": [
132 "invited_by"
133 ],
134 "columnsTo": [
135 "id"
136 ],
137 "onDelete": "no action",
138 "onUpdate": "no action"
139 },
140 "invites_accepted_by_users_id_fk": {
141 "name": "invites_accepted_by_users_id_fk",
142 "tableFrom": "invites",
143 "tableTo": "users",
144 "columnsFrom": [
145 "accepted_by"
146 ],
147 "columnsTo": [
148 "id"
149 ],
150 "onDelete": "no action",
151 "onUpdate": "no action"
152 }
153 },
154 "compositePrimaryKeys": {},
155 "uniqueConstraints": {},
156 "checkConstraints": {}
157 },
158 "memberships": {
159 "name": "memberships",
160 "columns": {
161 "user_id": {
162 "name": "user_id",
163 "type": "text",
164 "primaryKey": false,
165 "notNull": true,
166 "autoincrement": false
167 },
168 "workspace_id": {
169 "name": "workspace_id",
170 "type": "text",
171 "primaryKey": false,
172 "notNull": true,
173 "autoincrement": false
174 },
175 "role": {
176 "name": "role",
177 "type": "text",
178 "primaryKey": false,
179 "notNull": true,
180 "autoincrement": false
181 },
182 "joined_at": {
183 "name": "joined_at",
184 "type": "text",
185 "primaryKey": false,
186 "notNull": true,
187 "autoincrement": false,
188 "default": "(datetime('now'))"
189 }
190 },
191 "indexes": {},
192 "foreignKeys": {
193 "memberships_user_id_users_id_fk": {
194 "name": "memberships_user_id_users_id_fk",
195 "tableFrom": "memberships",
196 "tableTo": "users",
197 "columnsFrom": [
198 "user_id"
199 ],
200 "columnsTo": [
201 "id"
202 ],
203 "onDelete": "no action",
204 "onUpdate": "no action"
205 },
206 "memberships_workspace_id_workspaces_id_fk": {
207 "name": "memberships_workspace_id_workspaces_id_fk",
208 "tableFrom": "memberships",
209 "tableTo": "workspaces",
210 "columnsFrom": [
211 "workspace_id"
212 ],
213 "columnsTo": [
214 "id"
215 ],
216 "onDelete": "no action",
217 "onUpdate": "no action"
218 }
219 },
220 "compositePrimaryKeys": {
221 "memberships_user_id_workspace_id_pk": {
222 "columns": [
223 "user_id",
224 "workspace_id"
225 ],
226 "name": "memberships_user_id_workspace_id_pk"
227 }
228 },
229 "uniqueConstraints": {},
230 "checkConstraints": {}
231 },
232 "page_shares": {
233 "name": "page_shares",
234 "columns": {
235 "id": {
236 "name": "id",
237 "type": "text",
238 "primaryKey": true,
239 "notNull": true,
240 "autoincrement": false
241 },
242 "page_id": {
243 "name": "page_id",
244 "type": "text",
245 "primaryKey": false,
246 "notNull": true,
247 "autoincrement": false
248 },
249 "grantee_type": {
250 "name": "grantee_type",
251 "type": "text",
252 "primaryKey": false,
253 "notNull": true,
254 "autoincrement": false
255 },
256 "grantee_id": {
257 "name": "grantee_id",
258 "type": "text",
259 "primaryKey": false,
260 "notNull": false,
261 "autoincrement": false
262 },
263 "permission": {
264 "name": "permission",
265 "type": "text",
266 "primaryKey": false,
267 "notNull": true,
268 "autoincrement": false
269 },
270 "link_token": {
271 "name": "link_token",
272 "type": "text",
273 "primaryKey": false,
274 "notNull": false,
275 "autoincrement": false
276 },
277 "created_by": {
278 "name": "created_by",
279 "type": "text",
280 "primaryKey": false,
281 "notNull": true,
282 "autoincrement": false
283 },
284 "created_at": {
285 "name": "created_at",
286 "type": "text",
287 "primaryKey": false,
288 "notNull": true,
289 "autoincrement": false,
290 "default": "(datetime('now'))"
291 }
292 },
293 "indexes": {
294 "page_shares_link_token_unique": {
295 "name": "page_shares_link_token_unique",
296 "columns": [
297 "link_token"
298 ],
299 "isUnique": true
300 },
301 "idx_page_shares_page": {
302 "name": "idx_page_shares_page",
303 "columns": [
304 "page_id"
305 ],
306 "isUnique": false
307 },
308 "idx_page_shares_grantee": {
309 "name": "idx_page_shares_grantee",
310 "columns": [
311 "grantee_type",
312 "grantee_id"
313 ],
314 "isUnique": false
315 }
316 },
317 "foreignKeys": {
318 "page_shares_page_id_pages_id_fk": {
319 "name": "page_shares_page_id_pages_id_fk",
320 "tableFrom": "page_shares",
321 "tableTo": "pages",
322 "columnsFrom": [
323 "page_id"
324 ],
325 "columnsTo": [
326 "id"
327 ],
328 "onDelete": "no action",
329 "onUpdate": "no action"
330 },
331 "page_shares_created_by_users_id_fk": {
332 "name": "page_shares_created_by_users_id_fk",
333 "tableFrom": "page_shares",
334 "tableTo": "users",
335 "columnsFrom": [
336 "created_by"
337 ],
338 "columnsTo": [
339 "id"
340 ],
341 "onDelete": "no action",
342 "onUpdate": "no action"
343 }
344 },
345 "compositePrimaryKeys": {},
346 "uniqueConstraints": {},
347 "checkConstraints": {}
348 },
349 "pages": {
350 "name": "pages",
351 "columns": {
352 "id": {
353 "name": "id",
354 "type": "text",
355 "primaryKey": true,
356 "notNull": true,
357 "autoincrement": false
358 },
359 "workspace_id": {
360 "name": "workspace_id",
361 "type": "text",
362 "primaryKey": false,
363 "notNull": true,
364 "autoincrement": false
365 },
366 "parent_id": {
367 "name": "parent_id",
368 "type": "text",
369 "primaryKey": false,
370 "notNull": false,
371 "autoincrement": false
372 },
373 "kind": {
374 "name": "kind",
375 "type": "text",
376 "primaryKey": false,
377 "notNull": true,
378 "autoincrement": false,
379 "default": "'doc'"
380 },
381 "title": {
382 "name": "title",
383 "type": "text",
384 "primaryKey": false,
385 "notNull": true,
386 "autoincrement": false,
387 "default": "'Untitled'"
388 },
389 "icon": {
390 "name": "icon",
391 "type": "text",
392 "primaryKey": false,
393 "notNull": false,
394 "autoincrement": false
395 },
396 "cover_url": {
397 "name": "cover_url",
398 "type": "text",
399 "primaryKey": false,
400 "notNull": false,
401 "autoincrement": false
402 },
403 "position": {
404 "name": "position",
405 "type": "real",
406 "primaryKey": false,
407 "notNull": true,
408 "autoincrement": false
409 },
410 "created_by": {
411 "name": "created_by",
412 "type": "text",
413 "primaryKey": false,
414 "notNull": true,
415 "autoincrement": false
416 },
417 "created_at": {
418 "name": "created_at",
419 "type": "text",
420 "primaryKey": false,
421 "notNull": true,
422 "autoincrement": false,
423 "default": "(datetime('now'))"
424 },
425 "updated_at": {
426 "name": "updated_at",
427 "type": "text",
428 "primaryKey": false,
429 "notNull": true,
430 "autoincrement": false,
431 "default": "(datetime('now'))"
432 },
433 "archived_at": {
434 "name": "archived_at",
435 "type": "text",
436 "primaryKey": false,
437 "notNull": false,
438 "autoincrement": false
439 }
440 },
441 "indexes": {
442 "idx_pages_parent": {
443 "name": "idx_pages_parent",
444 "columns": [
445 "workspace_id",
446 "parent_id",
447 "position"
448 ],
449 "isUnique": false
450 },
451 "idx_pages_workspace": {
452 "name": "idx_pages_workspace",
453 "columns": [
454 "workspace_id",
455 "archived_at"
456 ],
457 "isUnique": false
458 }
459 },
460 "foreignKeys": {
461 "pages_workspace_id_workspaces_id_fk": {
462 "name": "pages_workspace_id_workspaces_id_fk",
463 "tableFrom": "pages",
464 "tableTo": "workspaces",
465 "columnsFrom": [
466 "workspace_id"
467 ],
468 "columnsTo": [
469 "id"
470 ],
471 "onDelete": "no action",
472 "onUpdate": "no action"
473 },
474 "pages_parent_id_pages_id_fk": {
475 "name": "pages_parent_id_pages_id_fk",
476 "tableFrom": "pages",
477 "tableTo": "pages",
478 "columnsFrom": [
479 "parent_id"
480 ],
481 "columnsTo": [
482 "id"
483 ],
484 "onDelete": "set null",
485 "onUpdate": "no action"
486 },
487 "pages_created_by_users_id_fk": {
488 "name": "pages_created_by_users_id_fk",
489 "tableFrom": "pages",
490 "tableTo": "users",
491 "columnsFrom": [
492 "created_by"
493 ],
494 "columnsTo": [
495 "id"
496 ],
497 "onDelete": "no action",
498 "onUpdate": "no action"
499 }
500 },
501 "compositePrimaryKeys": {},
502 "uniqueConstraints": {},
503 "checkConstraints": {}
504 },
505 "published_pages": {
506 "name": "published_pages",
507 "columns": {
508 "workspace_id": {
509 "name": "workspace_id",
510 "type": "text",
511 "primaryKey": false,
512 "notNull": true,
513 "autoincrement": false
514 },
515 "page_id": {
516 "name": "page_id",
517 "type": "text",
518 "primaryKey": false,
519 "notNull": true,
520 "autoincrement": false
521 },
522 "published_by": {
523 "name": "published_by",
524 "type": "text",
525 "primaryKey": false,
526 "notNull": true,
527 "autoincrement": false
528 },
529 "published_at": {
530 "name": "published_at",
531 "type": "text",
532 "primaryKey": false,
533 "notNull": true,
534 "autoincrement": false,
535 "default": "(datetime('now'))"
536 }
537 },
538 "indexes": {
539 "idx_published_pages_page": {
540 "name": "idx_published_pages_page",
541 "columns": [
542 "page_id"
543 ],
544 "isUnique": false
545 }
546 },
547 "foreignKeys": {
548 "published_pages_workspace_id_workspaces_id_fk": {
549 "name": "published_pages_workspace_id_workspaces_id_fk",
550 "tableFrom": "published_pages",
551 "tableTo": "workspaces",
552 "columnsFrom": [
553 "workspace_id"
554 ],
555 "columnsTo": [
556 "id"
557 ],
558 "onDelete": "cascade",
559 "onUpdate": "no action"
560 },
561 "published_pages_page_id_pages_id_fk": {
562 "name": "published_pages_page_id_pages_id_fk",
563 "tableFrom": "published_pages",
564 "tableTo": "pages",
565 "columnsFrom": [
566 "page_id"
567 ],
568 "columnsTo": [
569 "id"
570 ],
571 "onDelete": "cascade",
572 "onUpdate": "no action"
573 },
574 "published_pages_published_by_users_id_fk": {
575 "name": "published_pages_published_by_users_id_fk",
576 "tableFrom": "published_pages",
577 "tableTo": "users",
578 "columnsFrom": [
579 "published_by"
580 ],
581 "columnsTo": [
582 "id"
583 ],
584 "onDelete": "no action",
585 "onUpdate": "no action"
586 }
587 },
588 "compositePrimaryKeys": {
589 "published_pages_workspace_id_page_id_pk": {
590 "columns": [
591 "workspace_id",
592 "page_id"
593 ],
594 "name": "published_pages_workspace_id_page_id_pk"
595 }
596 },
597 "uniqueConstraints": {},
598 "checkConstraints": {}
599 },
600 "tessera_identities": {
601 "name": "tessera_identities",
602 "columns": {
603 "sub": {
604 "name": "sub",
605 "type": "text",
606 "primaryKey": true,
607 "notNull": true,
608 "autoincrement": false
609 },
610 "user_id": {
611 "name": "user_id",
612 "type": "text",
613 "primaryKey": false,
614 "notNull": true,
615 "autoincrement": false
616 },
617 "created_at": {
618 "name": "created_at",
619 "type": "text",
620 "primaryKey": false,
621 "notNull": true,
622 "autoincrement": false,
623 "default": "(datetime('now'))"
624 },
625 "last_seen_at": {
626 "name": "last_seen_at",
627 "type": "text",
628 "primaryKey": false,
629 "notNull": false,
630 "autoincrement": false
631 }
632 },
633 "indexes": {
634 "idx_tessera_identities_user_id": {
635 "name": "idx_tessera_identities_user_id",
636 "columns": [
637 "user_id"
638 ],
639 "isUnique": true
640 }
641 },
642 "foreignKeys": {
643 "tessera_identities_user_id_users_id_fk": {
644 "name": "tessera_identities_user_id_users_id_fk",
645 "tableFrom": "tessera_identities",
646 "tableTo": "users",
647 "columnsFrom": [
648 "user_id"
649 ],
650 "columnsTo": [
651 "id"
652 ],
653 "onDelete": "cascade",
654 "onUpdate": "no action"
655 }
656 },
657 "compositePrimaryKeys": {},
658 "uniqueConstraints": {},
659 "checkConstraints": {}
660 },
661 "uploads": {
662 "name": "uploads",
663 "columns": {
664 "id": {
665 "name": "id",
666 "type": "text",
667 "primaryKey": true,
668 "notNull": true,
669 "autoincrement": false
670 },
671 "workspace_id": {
672 "name": "workspace_id",
673 "type": "text",
674 "primaryKey": false,
675 "notNull": true,
676 "autoincrement": false
677 },
678 "page_id": {
679 "name": "page_id",
680 "type": "text",
681 "primaryKey": false,
682 "notNull": false,
683 "autoincrement": false
684 },
685 "uploaded_by": {
686 "name": "uploaded_by",
687 "type": "text",
688 "primaryKey": false,
689 "notNull": true,
690 "autoincrement": false
691 },
692 "filename": {
693 "name": "filename",
694 "type": "text",
695 "primaryKey": false,
696 "notNull": true,
697 "autoincrement": false
698 },
699 "content_type": {
700 "name": "content_type",
701 "type": "text",
702 "primaryKey": false,
703 "notNull": true,
704 "autoincrement": false
705 },
706 "size_bytes": {
707 "name": "size_bytes",
708 "type": "integer",
709 "primaryKey": false,
710 "notNull": true,
711 "autoincrement": false
712 },
713 "r2_key": {
714 "name": "r2_key",
715 "type": "text",
716 "primaryKey": false,
717 "notNull": true,
718 "autoincrement": false
719 },
720 "created_at": {
721 "name": "created_at",
722 "type": "text",
723 "primaryKey": false,
724 "notNull": true,
725 "autoincrement": false,
726 "default": "(datetime('now'))"
727 }
728 },
729 "indexes": {},
730 "foreignKeys": {
731 "uploads_workspace_id_workspaces_id_fk": {
732 "name": "uploads_workspace_id_workspaces_id_fk",
733 "tableFrom": "uploads",
734 "tableTo": "workspaces",
735 "columnsFrom": [
736 "workspace_id"
737 ],
738 "columnsTo": [
739 "id"
740 ],
741 "onDelete": "no action",
742 "onUpdate": "no action"
743 },
744 "uploads_page_id_pages_id_fk": {
745 "name": "uploads_page_id_pages_id_fk",
746 "tableFrom": "uploads",
747 "tableTo": "pages",
748 "columnsFrom": [
749 "page_id"
750 ],
751 "columnsTo": [
752 "id"
753 ],
754 "onDelete": "no action",
755 "onUpdate": "no action"
756 },
757 "uploads_uploaded_by_users_id_fk": {
758 "name": "uploads_uploaded_by_users_id_fk",
759 "tableFrom": "uploads",
760 "tableTo": "users",
761 "columnsFrom": [
762 "uploaded_by"
763 ],
764 "columnsTo": [
765 "id"
766 ],
767 "onDelete": "no action",
768 "onUpdate": "no action"
769 }
770 },
771 "compositePrimaryKeys": {},
772 "uniqueConstraints": {},
773 "checkConstraints": {}
774 },
775 "users": {
776 "name": "users",
777 "columns": {
778 "id": {
779 "name": "id",
780 "type": "text",
781 "primaryKey": true,
782 "notNull": true,
783 "autoincrement": false
784 },
785 "email": {
786 "name": "email",
787 "type": "text",
788 "primaryKey": false,
789 "notNull": true,
790 "autoincrement": false
791 },
792 "password_hash": {
793 "name": "password_hash",
794 "type": "text",
795 "primaryKey": false,
796 "notNull": true,
797 "autoincrement": false
798 },
799 "name": {
800 "name": "name",
801 "type": "text",
802 "primaryKey": false,
803 "notNull": true,
804 "autoincrement": false
805 },
806 "avatar_url": {
807 "name": "avatar_url",
808 "type": "text",
809 "primaryKey": false,
810 "notNull": false,
811 "autoincrement": false
812 },
813 "created_at": {
814 "name": "created_at",
815 "type": "text",
816 "primaryKey": false,
817 "notNull": true,
818 "autoincrement": false,
819 "default": "(datetime('now'))"
820 },
821 "updated_at": {
822 "name": "updated_at",
823 "type": "text",
824 "primaryKey": false,
825 "notNull": true,
826 "autoincrement": false,
827 "default": "(datetime('now'))"
828 }
829 },
830 "indexes": {
831 "users_email_unique": {
832 "name": "users_email_unique",
833 "columns": [
834 "email"
835 ],
836 "isUnique": true
837 }
838 },
839 "foreignKeys": {},
840 "compositePrimaryKeys": {},
841 "uniqueConstraints": {},
842 "checkConstraints": {}
843 },
844 "workspace_sites": {
845 "name": "workspace_sites",
846 "columns": {
847 "workspace_id": {
848 "name": "workspace_id",
849 "type": "text",
850 "primaryKey": true,
851 "notNull": true,
852 "autoincrement": false
853 },
854 "slug": {
855 "name": "slug",
856 "type": "text",
857 "primaryKey": false,
858 "notNull": true,
859 "autoincrement": false
860 },
861 "home_page_id": {
862 "name": "home_page_id",
863 "type": "text",
864 "primaryKey": false,
865 "notNull": false,
866 "autoincrement": false
867 },
868 "published_at": {
869 "name": "published_at",
870 "type": "text",
871 "primaryKey": false,
872 "notNull": false,
873 "autoincrement": false
874 },
875 "created_at": {
876 "name": "created_at",
877 "type": "text",
878 "primaryKey": false,
879 "notNull": true,
880 "autoincrement": false,
881 "default": "(datetime('now'))"
882 },
883 "updated_at": {
884 "name": "updated_at",
885 "type": "text",
886 "primaryKey": false,
887 "notNull": true,
888 "autoincrement": false,
889 "default": "(datetime('now'))"
890 }
891 },
892 "indexes": {
893 "workspace_sites_slug_unique": {
894 "name": "workspace_sites_slug_unique",
895 "columns": [
896 "slug"
897 ],
898 "isUnique": true
899 }
900 },
901 "foreignKeys": {
902 "workspace_sites_workspace_id_workspaces_id_fk": {
903 "name": "workspace_sites_workspace_id_workspaces_id_fk",
904 "tableFrom": "workspace_sites",
905 "tableTo": "workspaces",
906 "columnsFrom": [
907 "workspace_id"
908 ],
909 "columnsTo": [
910 "id"
911 ],
912 "onDelete": "cascade",
913 "onUpdate": "no action"
914 },
915 "workspace_sites_home_page_id_pages_id_fk": {
916 "name": "workspace_sites_home_page_id_pages_id_fk",
917 "tableFrom": "workspace_sites",
918 "tableTo": "pages",
919 "columnsFrom": [
920 "home_page_id"
921 ],
922 "columnsTo": [
923 "id"
924 ],
925 "onDelete": "set null",
926 "onUpdate": "no action"
927 }
928 },
929 "compositePrimaryKeys": {},
930 "uniqueConstraints": {},
931 "checkConstraints": {}
932 },
933 "workspaces": {
934 "name": "workspaces",
935 "columns": {
936 "id": {
937 "name": "id",
938 "type": "text",
939 "primaryKey": true,
940 "notNull": true,
941 "autoincrement": false
942 },
943 "name": {
944 "name": "name",
945 "type": "text",
946 "primaryKey": false,
947 "notNull": true,
948 "autoincrement": false
949 },
950 "slug": {
951 "name": "slug",
952 "type": "text",
953 "primaryKey": false,
954 "notNull": true,
955 "autoincrement": false
956 },
957 "icon": {
958 "name": "icon",
959 "type": "text",
960 "primaryKey": false,
961 "notNull": false,
962 "autoincrement": false
963 },
964 "owner_id": {
965 "name": "owner_id",
966 "type": "text",
967 "primaryKey": false,
968 "notNull": true,
969 "autoincrement": false
970 },
971 "created_at": {
972 "name": "created_at",
973 "type": "text",
974 "primaryKey": false,
975 "notNull": true,
976 "autoincrement": false,
977 "default": "(datetime('now'))"
978 }
979 },
980 "indexes": {
981 "workspaces_slug_unique": {
982 "name": "workspaces_slug_unique",
983 "columns": [
984 "slug"
985 ],
986 "isUnique": true
987 }
988 },
989 "foreignKeys": {
990 "workspaces_owner_id_users_id_fk": {
991 "name": "workspaces_owner_id_users_id_fk",
992 "tableFrom": "workspaces",
993 "tableTo": "users",
994 "columnsFrom": [
995 "owner_id"
996 ],
997 "columnsTo": [
998 "id"
999 ],
1000 "onDelete": "no action",
1001 "onUpdate": "no action"
1002 }
1003 },
1004 "compositePrimaryKeys": {},
1005 "uniqueConstraints": {},
1006 "checkConstraints": {}
1007 }
1008 },
1009 "views": {},
1010 "enums": {},
1011 "_meta": {
1012 "schemas": {},
1013 "tables": {},
1014 "columns": {}
1015 },
1016 "internal": {
1017 "indexes": {}
1018 }
1019}