Skip to content
File

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

json1037 lines
1{
2 "version": "6",
3 "dialect": "sqlite",
4 "id": "54522201-6fed-4209-bb15-0a204bbd51f8",
5 "prevId": "4da90c57-4280-4cf9-9da5-0afb3425a1d6",
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 "archive_root_id": {
441 "name": "archive_root_id",
442 "type": "text",
443 "primaryKey": false,
444 "notNull": false,
445 "autoincrement": false
446 }
447 },
448 "indexes": {
449 "idx_pages_parent": {
450 "name": "idx_pages_parent",
451 "columns": [
452 "workspace_id",
453 "parent_id",
454 "position"
455 ],
456 "isUnique": false
457 },
458 "idx_pages_workspace": {
459 "name": "idx_pages_workspace",
460 "columns": [
461 "workspace_id",
462 "archived_at"
463 ],
464 "isUnique": false
465 },
466 "idx_pages_archive_operation": {
467 "name": "idx_pages_archive_operation",
468 "columns": [
469 "workspace_id",
470 "archive_root_id",
471 "archived_at"
472 ],
473 "isUnique": false
474 },
475 "idx_pages_trash_roots": {
476 "name": "idx_pages_trash_roots",
477 "columns": [
478 "workspace_id",
479 "archived_at"
480 ],
481 "isUnique": false,
482 "where": "\"pages\".\"archived_at\" IS NOT NULL AND \"pages\".\"archive_root_id\" = \"pages\".\"id\""
483 }
484 },
485 "foreignKeys": {
486 "pages_workspace_id_workspaces_id_fk": {
487 "name": "pages_workspace_id_workspaces_id_fk",
488 "tableFrom": "pages",
489 "tableTo": "workspaces",
490 "columnsFrom": [
491 "workspace_id"
492 ],
493 "columnsTo": [
494 "id"
495 ],
496 "onDelete": "no action",
497 "onUpdate": "no action"
498 },
499 "pages_parent_id_pages_id_fk": {
500 "name": "pages_parent_id_pages_id_fk",
501 "tableFrom": "pages",
502 "tableTo": "pages",
503 "columnsFrom": [
504 "parent_id"
505 ],
506 "columnsTo": [
507 "id"
508 ],
509 "onDelete": "set null",
510 "onUpdate": "no action"
511 },
512 "pages_created_by_users_id_fk": {
513 "name": "pages_created_by_users_id_fk",
514 "tableFrom": "pages",
515 "tableTo": "users",
516 "columnsFrom": [
517 "created_by"
518 ],
519 "columnsTo": [
520 "id"
521 ],
522 "onDelete": "no action",
523 "onUpdate": "no action"
524 }
525 },
526 "compositePrimaryKeys": {},
527 "uniqueConstraints": {},
528 "checkConstraints": {}
529 },
530 "published_pages": {
531 "name": "published_pages",
532 "columns": {
533 "workspace_id": {
534 "name": "workspace_id",
535 "type": "text",
536 "primaryKey": false,
537 "notNull": true,
538 "autoincrement": false
539 },
540 "page_id": {
541 "name": "page_id",
542 "type": "text",
543 "primaryKey": false,
544 "notNull": true,
545 "autoincrement": false
546 },
547 "published_by": {
548 "name": "published_by",
549 "type": "text",
550 "primaryKey": false,
551 "notNull": true,
552 "autoincrement": false
553 },
554 "published_at": {
555 "name": "published_at",
556 "type": "text",
557 "primaryKey": false,
558 "notNull": true,
559 "autoincrement": false,
560 "default": "(datetime('now'))"
561 }
562 },
563 "indexes": {
564 "idx_published_pages_page": {
565 "name": "idx_published_pages_page",
566 "columns": [
567 "page_id"
568 ],
569 "isUnique": false
570 }
571 },
572 "foreignKeys": {
573 "published_pages_workspace_id_workspaces_id_fk": {
574 "name": "published_pages_workspace_id_workspaces_id_fk",
575 "tableFrom": "published_pages",
576 "tableTo": "workspaces",
577 "columnsFrom": [
578 "workspace_id"
579 ],
580 "columnsTo": [
581 "id"
582 ],
583 "onDelete": "cascade",
584 "onUpdate": "no action"
585 },
586 "published_pages_page_id_pages_id_fk": {
587 "name": "published_pages_page_id_pages_id_fk",
588 "tableFrom": "published_pages",
589 "tableTo": "pages",
590 "columnsFrom": [
591 "page_id"
592 ],
593 "columnsTo": [
594 "id"
595 ],
596 "onDelete": "cascade",
597 "onUpdate": "no action"
598 },
599 "published_pages_published_by_users_id_fk": {
600 "name": "published_pages_published_by_users_id_fk",
601 "tableFrom": "published_pages",
602 "tableTo": "users",
603 "columnsFrom": [
604 "published_by"
605 ],
606 "columnsTo": [
607 "id"
608 ],
609 "onDelete": "no action",
610 "onUpdate": "no action"
611 }
612 },
613 "compositePrimaryKeys": {
614 "published_pages_workspace_id_page_id_pk": {
615 "columns": [
616 "workspace_id",
617 "page_id"
618 ],
619 "name": "published_pages_workspace_id_page_id_pk"
620 }
621 },
622 "uniqueConstraints": {},
623 "checkConstraints": {}
624 },
625 "tessera_identities": {
626 "name": "tessera_identities",
627 "columns": {
628 "sub": {
629 "name": "sub",
630 "type": "text",
631 "primaryKey": true,
632 "notNull": true,
633 "autoincrement": false
634 },
635 "user_id": {
636 "name": "user_id",
637 "type": "text",
638 "primaryKey": false,
639 "notNull": true,
640 "autoincrement": false
641 },
642 "created_at": {
643 "name": "created_at",
644 "type": "text",
645 "primaryKey": false,
646 "notNull": true,
647 "autoincrement": false,
648 "default": "(datetime('now'))"
649 },
650 "last_seen_at": {
651 "name": "last_seen_at",
652 "type": "text",
653 "primaryKey": false,
654 "notNull": false,
655 "autoincrement": false
656 }
657 },
658 "indexes": {
659 "idx_tessera_identities_user_id": {
660 "name": "idx_tessera_identities_user_id",
661 "columns": [
662 "user_id"
663 ],
664 "isUnique": true
665 }
666 },
667 "foreignKeys": {
668 "tessera_identities_user_id_users_id_fk": {
669 "name": "tessera_identities_user_id_users_id_fk",
670 "tableFrom": "tessera_identities",
671 "tableTo": "users",
672 "columnsFrom": [
673 "user_id"
674 ],
675 "columnsTo": [
676 "id"
677 ],
678 "onDelete": "cascade",
679 "onUpdate": "no action"
680 }
681 },
682 "compositePrimaryKeys": {},
683 "uniqueConstraints": {},
684 "checkConstraints": {}
685 },
686 "uploads": {
687 "name": "uploads",
688 "columns": {
689 "id": {
690 "name": "id",
691 "type": "text",
692 "primaryKey": true,
693 "notNull": true,
694 "autoincrement": false
695 },
696 "workspace_id": {
697 "name": "workspace_id",
698 "type": "text",
699 "primaryKey": false,
700 "notNull": true,
701 "autoincrement": false
702 },
703 "page_id": {
704 "name": "page_id",
705 "type": "text",
706 "primaryKey": false,
707 "notNull": false,
708 "autoincrement": false
709 },
710 "uploaded_by": {
711 "name": "uploaded_by",
712 "type": "text",
713 "primaryKey": false,
714 "notNull": true,
715 "autoincrement": false
716 },
717 "filename": {
718 "name": "filename",
719 "type": "text",
720 "primaryKey": false,
721 "notNull": true,
722 "autoincrement": false
723 },
724 "content_type": {
725 "name": "content_type",
726 "type": "text",
727 "primaryKey": false,
728 "notNull": true,
729 "autoincrement": false
730 },
731 "size_bytes": {
732 "name": "size_bytes",
733 "type": "integer",
734 "primaryKey": false,
735 "notNull": true,
736 "autoincrement": false
737 },
738 "r2_key": {
739 "name": "r2_key",
740 "type": "text",
741 "primaryKey": false,
742 "notNull": true,
743 "autoincrement": false
744 },
745 "created_at": {
746 "name": "created_at",
747 "type": "text",
748 "primaryKey": false,
749 "notNull": true,
750 "autoincrement": false,
751 "default": "(datetime('now'))"
752 }
753 },
754 "indexes": {},
755 "foreignKeys": {
756 "uploads_workspace_id_workspaces_id_fk": {
757 "name": "uploads_workspace_id_workspaces_id_fk",
758 "tableFrom": "uploads",
759 "tableTo": "workspaces",
760 "columnsFrom": [
761 "workspace_id"
762 ],
763 "columnsTo": [
764 "id"
765 ],
766 "onDelete": "no action",
767 "onUpdate": "no action"
768 },
769 "uploads_page_id_pages_id_fk": {
770 "name": "uploads_page_id_pages_id_fk",
771 "tableFrom": "uploads",
772 "tableTo": "pages",
773 "columnsFrom": [
774 "page_id"
775 ],
776 "columnsTo": [
777 "id"
778 ],
779 "onDelete": "no action",
780 "onUpdate": "no action"
781 },
782 "uploads_uploaded_by_users_id_fk": {
783 "name": "uploads_uploaded_by_users_id_fk",
784 "tableFrom": "uploads",
785 "tableTo": "users",
786 "columnsFrom": [
787 "uploaded_by"
788 ],
789 "columnsTo": [
790 "id"
791 ],
792 "onDelete": "no action",
793 "onUpdate": "no action"
794 }
795 },
796 "compositePrimaryKeys": {},
797 "uniqueConstraints": {},
798 "checkConstraints": {}
799 },
800 "users": {
801 "name": "users",
802 "columns": {
803 "id": {
804 "name": "id",
805 "type": "text",
806 "primaryKey": true,
807 "notNull": true,
808 "autoincrement": false
809 },
810 "email": {
811 "name": "email",
812 "type": "text",
813 "primaryKey": false,
814 "notNull": true,
815 "autoincrement": false
816 },
817 "name": {
818 "name": "name",
819 "type": "text",
820 "primaryKey": false,
821 "notNull": true,
822 "autoincrement": false
823 },
824 "avatar_url": {
825 "name": "avatar_url",
826 "type": "text",
827 "primaryKey": false,
828 "notNull": false,
829 "autoincrement": false
830 },
831 "created_at": {
832 "name": "created_at",
833 "type": "text",
834 "primaryKey": false,
835 "notNull": true,
836 "autoincrement": false,
837 "default": "(datetime('now'))"
838 },
839 "updated_at": {
840 "name": "updated_at",
841 "type": "text",
842 "primaryKey": false,
843 "notNull": true,
844 "autoincrement": false,
845 "default": "(datetime('now'))"
846 }
847 },
848 "indexes": {
849 "users_email_unique": {
850 "name": "users_email_unique",
851 "columns": [
852 "email"
853 ],
854 "isUnique": true
855 }
856 },
857 "foreignKeys": {},
858 "compositePrimaryKeys": {},
859 "uniqueConstraints": {},
860 "checkConstraints": {}
861 },
862 "workspace_sites": {
863 "name": "workspace_sites",
864 "columns": {
865 "workspace_id": {
866 "name": "workspace_id",
867 "type": "text",
868 "primaryKey": true,
869 "notNull": true,
870 "autoincrement": false
871 },
872 "slug": {
873 "name": "slug",
874 "type": "text",
875 "primaryKey": false,
876 "notNull": true,
877 "autoincrement": false
878 },
879 "home_page_id": {
880 "name": "home_page_id",
881 "type": "text",
882 "primaryKey": false,
883 "notNull": false,
884 "autoincrement": false
885 },
886 "published_at": {
887 "name": "published_at",
888 "type": "text",
889 "primaryKey": false,
890 "notNull": false,
891 "autoincrement": false
892 },
893 "created_at": {
894 "name": "created_at",
895 "type": "text",
896 "primaryKey": false,
897 "notNull": true,
898 "autoincrement": false,
899 "default": "(datetime('now'))"
900 },
901 "updated_at": {
902 "name": "updated_at",
903 "type": "text",
904 "primaryKey": false,
905 "notNull": true,
906 "autoincrement": false,
907 "default": "(datetime('now'))"
908 }
909 },
910 "indexes": {
911 "workspace_sites_slug_unique": {
912 "name": "workspace_sites_slug_unique",
913 "columns": [
914 "slug"
915 ],
916 "isUnique": true
917 }
918 },
919 "foreignKeys": {
920 "workspace_sites_workspace_id_workspaces_id_fk": {
921 "name": "workspace_sites_workspace_id_workspaces_id_fk",
922 "tableFrom": "workspace_sites",
923 "tableTo": "workspaces",
924 "columnsFrom": [
925 "workspace_id"
926 ],
927 "columnsTo": [
928 "id"
929 ],
930 "onDelete": "cascade",
931 "onUpdate": "no action"
932 },
933 "workspace_sites_home_page_id_pages_id_fk": {
934 "name": "workspace_sites_home_page_id_pages_id_fk",
935 "tableFrom": "workspace_sites",
936 "tableTo": "pages",
937 "columnsFrom": [
938 "home_page_id"
939 ],
940 "columnsTo": [
941 "id"
942 ],
943 "onDelete": "set null",
944 "onUpdate": "no action"
945 }
946 },
947 "compositePrimaryKeys": {},
948 "uniqueConstraints": {},
949 "checkConstraints": {}
950 },
951 "workspaces": {
952 "name": "workspaces",
953 "columns": {
954 "id": {
955 "name": "id",
956 "type": "text",
957 "primaryKey": true,
958 "notNull": true,
959 "autoincrement": false
960 },
961 "name": {
962 "name": "name",
963 "type": "text",
964 "primaryKey": false,
965 "notNull": true,
966 "autoincrement": false
967 },
968 "slug": {
969 "name": "slug",
970 "type": "text",
971 "primaryKey": false,
972 "notNull": true,
973 "autoincrement": false
974 },
975 "icon": {
976 "name": "icon",
977 "type": "text",
978 "primaryKey": false,
979 "notNull": false,
980 "autoincrement": false
981 },
982 "owner_id": {
983 "name": "owner_id",
984 "type": "text",
985 "primaryKey": false,
986 "notNull": true,
987 "autoincrement": false
988 },
989 "created_at": {
990 "name": "created_at",
991 "type": "text",
992 "primaryKey": false,
993 "notNull": true,
994 "autoincrement": false,
995 "default": "(datetime('now'))"
996 }
997 },
998 "indexes": {
999 "workspaces_slug_unique": {
1000 "name": "workspaces_slug_unique",
1001 "columns": [
1002 "slug"
1003 ],
1004 "isUnique": true
1005 }
1006 },
1007 "foreignKeys": {
1008 "workspaces_owner_id_users_id_fk": {
1009 "name": "workspaces_owner_id_users_id_fk",
1010 "tableFrom": "workspaces",
1011 "tableTo": "users",
1012 "columnsFrom": [
1013 "owner_id"
1014 ],
1015 "columnsTo": [
1016 "id"
1017 ],
1018 "onDelete": "no action",
1019 "onUpdate": "no action"
1020 }
1021 },
1022 "compositePrimaryKeys": {},
1023 "uniqueConstraints": {},
1024 "checkConstraints": {}
1025 }
1026 },
1027 "views": {},
1028 "enums": {},
1029 "_meta": {
1030 "schemas": {},
1031 "tables": {},
1032 "columns": {}
1033 },
1034 "internal": {
1035 "indexes": {}
1036 }
1037}