Exosphere is a set of small, modular, self-hostable community tools built on the AT Protocol.
app.exosphere.site
1{
2 "version": "6",
3 "dialect": "sqlite",
4 "id": "36c47020-9349-4833-8827-8c5bde6e1b17",
5 "prevId": "496173cb-98e0-46b7-baaf-47929d4cb526",
6 "tables": {
7 "oauth_sessions": {
8 "name": "oauth_sessions",
9 "columns": {
10 "key": {
11 "name": "key",
12 "type": "text",
13 "primaryKey": true,
14 "notNull": true,
15 "autoincrement": false
16 },
17 "session": {
18 "name": "session",
19 "type": "text",
20 "primaryKey": false,
21 "notNull": true,
22 "autoincrement": false
23 },
24 "created_at": {
25 "name": "created_at",
26 "type": "text",
27 "primaryKey": false,
28 "notNull": true,
29 "autoincrement": false,
30 "default": "(datetime('now'))"
31 },
32 "updated_at": {
33 "name": "updated_at",
34 "type": "text",
35 "primaryKey": false,
36 "notNull": true,
37 "autoincrement": false,
38 "default": "(datetime('now'))"
39 }
40 },
41 "indexes": {},
42 "foreignKeys": {},
43 "compositePrimaryKeys": {},
44 "uniqueConstraints": {},
45 "checkConstraints": {}
46 },
47 "oauth_states": {
48 "name": "oauth_states",
49 "columns": {
50 "key": {
51 "name": "key",
52 "type": "text",
53 "primaryKey": true,
54 "notNull": true,
55 "autoincrement": false
56 },
57 "state": {
58 "name": "state",
59 "type": "text",
60 "primaryKey": false,
61 "notNull": true,
62 "autoincrement": false
63 },
64 "created_at": {
65 "name": "created_at",
66 "type": "text",
67 "primaryKey": false,
68 "notNull": true,
69 "autoincrement": false,
70 "default": "(datetime('now'))"
71 }
72 },
73 "indexes": {},
74 "foreignKeys": {},
75 "compositePrimaryKeys": {},
76 "uniqueConstraints": {},
77 "checkConstraints": {}
78 },
79 "indexer_cursor": {
80 "name": "indexer_cursor",
81 "columns": {
82 "id": {
83 "name": "id",
84 "type": "text",
85 "primaryKey": true,
86 "notNull": true,
87 "autoincrement": false,
88 "default": "'jetstream'"
89 },
90 "cursor": {
91 "name": "cursor",
92 "type": "integer",
93 "primaryKey": false,
94 "notNull": true,
95 "autoincrement": false
96 },
97 "updated_at": {
98 "name": "updated_at",
99 "type": "text",
100 "primaryKey": false,
101 "notNull": true,
102 "autoincrement": false,
103 "default": "(datetime('now'))"
104 }
105 },
106 "indexes": {},
107 "foreignKeys": {},
108 "compositePrimaryKeys": {},
109 "uniqueConstraints": {},
110 "checkConstraints": {}
111 },
112 "sphere_entry_counter": {
113 "name": "sphere_entry_counter",
114 "columns": {
115 "sphere_id": {
116 "name": "sphere_id",
117 "type": "text",
118 "primaryKey": true,
119 "notNull": true,
120 "autoincrement": false
121 },
122 "last_number": {
123 "name": "last_number",
124 "type": "integer",
125 "primaryKey": false,
126 "notNull": true,
127 "autoincrement": false,
128 "default": 0
129 }
130 },
131 "indexes": {},
132 "foreignKeys": {
133 "sphere_entry_counter_sphere_id_spheres_id_fk": {
134 "name": "sphere_entry_counter_sphere_id_spheres_id_fk",
135 "tableFrom": "sphere_entry_counter",
136 "tableTo": "spheres",
137 "columnsFrom": ["sphere_id"],
138 "columnsTo": ["id"],
139 "onDelete": "no action",
140 "onUpdate": "no action"
141 }
142 },
143 "compositePrimaryKeys": {},
144 "uniqueConstraints": {},
145 "checkConstraints": {}
146 },
147 "entity_labels": {
148 "name": "entity_labels",
149 "columns": {
150 "label_id": {
151 "name": "label_id",
152 "type": "text",
153 "primaryKey": false,
154 "notNull": true,
155 "autoincrement": false
156 },
157 "entity_id": {
158 "name": "entity_id",
159 "type": "text",
160 "primaryKey": false,
161 "notNull": true,
162 "autoincrement": false
163 },
164 "entity_type": {
165 "name": "entity_type",
166 "type": "text",
167 "primaryKey": false,
168 "notNull": true,
169 "autoincrement": false
170 }
171 },
172 "indexes": {
173 "idx_entity_labels_entity": {
174 "name": "idx_entity_labels_entity",
175 "columns": ["entity_id", "entity_type"],
176 "isUnique": false
177 }
178 },
179 "foreignKeys": {
180 "entity_labels_label_id_sphere_labels_id_fk": {
181 "name": "entity_labels_label_id_sphere_labels_id_fk",
182 "tableFrom": "entity_labels",
183 "tableTo": "sphere_labels",
184 "columnsFrom": ["label_id"],
185 "columnsTo": ["id"],
186 "onDelete": "cascade",
187 "onUpdate": "no action"
188 }
189 },
190 "compositePrimaryKeys": {
191 "entity_labels_label_id_entity_id_pk": {
192 "columns": ["label_id", "entity_id"],
193 "name": "entity_labels_label_id_entity_id_pk"
194 }
195 },
196 "uniqueConstraints": {},
197 "checkConstraints": {}
198 },
199 "sphere_labels": {
200 "name": "sphere_labels",
201 "columns": {
202 "id": {
203 "name": "id",
204 "type": "text",
205 "primaryKey": true,
206 "notNull": true,
207 "autoincrement": false
208 },
209 "sphere_id": {
210 "name": "sphere_id",
211 "type": "text",
212 "primaryKey": false,
213 "notNull": true,
214 "autoincrement": false
215 },
216 "name": {
217 "name": "name",
218 "type": "text",
219 "primaryKey": false,
220 "notNull": true,
221 "autoincrement": false
222 },
223 "description": {
224 "name": "description",
225 "type": "text",
226 "primaryKey": false,
227 "notNull": false,
228 "autoincrement": false
229 },
230 "color": {
231 "name": "color",
232 "type": "text",
233 "primaryKey": false,
234 "notNull": true,
235 "autoincrement": false
236 },
237 "position": {
238 "name": "position",
239 "type": "integer",
240 "primaryKey": false,
241 "notNull": true,
242 "autoincrement": false,
243 "default": 0
244 },
245 "created_at": {
246 "name": "created_at",
247 "type": "text",
248 "primaryKey": false,
249 "notNull": true,
250 "autoincrement": false,
251 "default": "(datetime('now'))"
252 }
253 },
254 "indexes": {
255 "idx_sphere_labels_sphere_name": {
256 "name": "idx_sphere_labels_sphere_name",
257 "columns": ["sphere_id", "name"],
258 "isUnique": true
259 },
260 "idx_sphere_labels_sphere_position": {
261 "name": "idx_sphere_labels_sphere_position",
262 "columns": ["sphere_id", "position"],
263 "isUnique": false
264 }
265 },
266 "foreignKeys": {
267 "sphere_labels_sphere_id_spheres_id_fk": {
268 "name": "sphere_labels_sphere_id_spheres_id_fk",
269 "tableFrom": "sphere_labels",
270 "tableTo": "spheres",
271 "columnsFrom": ["sphere_id"],
272 "columnsTo": ["id"],
273 "onDelete": "no action",
274 "onUpdate": "no action"
275 }
276 },
277 "compositePrimaryKeys": {},
278 "uniqueConstraints": {},
279 "checkConstraints": {}
280 },
281 "sphere_members": {
282 "name": "sphere_members",
283 "columns": {
284 "sphere_id": {
285 "name": "sphere_id",
286 "type": "text",
287 "primaryKey": false,
288 "notNull": true,
289 "autoincrement": false
290 },
291 "did": {
292 "name": "did",
293 "type": "text",
294 "primaryKey": false,
295 "notNull": true,
296 "autoincrement": false
297 },
298 "role": {
299 "name": "role",
300 "type": "text",
301 "primaryKey": false,
302 "notNull": true,
303 "autoincrement": false,
304 "default": "'member'"
305 },
306 "status": {
307 "name": "status",
308 "type": "text",
309 "primaryKey": false,
310 "notNull": true,
311 "autoincrement": false,
312 "default": "'invited'"
313 },
314 "invited_by": {
315 "name": "invited_by",
316 "type": "text",
317 "primaryKey": false,
318 "notNull": false,
319 "autoincrement": false
320 },
321 "pds_uri": {
322 "name": "pds_uri",
323 "type": "text",
324 "primaryKey": false,
325 "notNull": false,
326 "autoincrement": false
327 },
328 "approval_pds_uri": {
329 "name": "approval_pds_uri",
330 "type": "text",
331 "primaryKey": false,
332 "notNull": false,
333 "autoincrement": false
334 },
335 "created_at": {
336 "name": "created_at",
337 "type": "text",
338 "primaryKey": false,
339 "notNull": true,
340 "autoincrement": false,
341 "default": "(datetime('now'))"
342 }
343 },
344 "indexes": {
345 "idx_sphere_members_did": {
346 "name": "idx_sphere_members_did",
347 "columns": ["did"],
348 "isUnique": false
349 }
350 },
351 "foreignKeys": {
352 "sphere_members_sphere_id_spheres_id_fk": {
353 "name": "sphere_members_sphere_id_spheres_id_fk",
354 "tableFrom": "sphere_members",
355 "tableTo": "spheres",
356 "columnsFrom": ["sphere_id"],
357 "columnsTo": ["id"],
358 "onDelete": "no action",
359 "onUpdate": "no action"
360 }
361 },
362 "compositePrimaryKeys": {
363 "sphere_members_sphere_id_did_pk": {
364 "columns": ["sphere_id", "did"],
365 "name": "sphere_members_sphere_id_did_pk"
366 }
367 },
368 "uniqueConstraints": {},
369 "checkConstraints": {}
370 },
371 "sphere_modules": {
372 "name": "sphere_modules",
373 "columns": {
374 "sphere_id": {
375 "name": "sphere_id",
376 "type": "text",
377 "primaryKey": false,
378 "notNull": true,
379 "autoincrement": false
380 },
381 "module_name": {
382 "name": "module_name",
383 "type": "text",
384 "primaryKey": false,
385 "notNull": true,
386 "autoincrement": false
387 },
388 "enabled_at": {
389 "name": "enabled_at",
390 "type": "text",
391 "primaryKey": false,
392 "notNull": true,
393 "autoincrement": false,
394 "default": "(datetime('now'))"
395 }
396 },
397 "indexes": {},
398 "foreignKeys": {
399 "sphere_modules_sphere_id_spheres_id_fk": {
400 "name": "sphere_modules_sphere_id_spheres_id_fk",
401 "tableFrom": "sphere_modules",
402 "tableTo": "spheres",
403 "columnsFrom": ["sphere_id"],
404 "columnsTo": ["id"],
405 "onDelete": "no action",
406 "onUpdate": "no action"
407 }
408 },
409 "compositePrimaryKeys": {
410 "sphere_modules_sphere_id_module_name_pk": {
411 "columns": ["sphere_id", "module_name"],
412 "name": "sphere_modules_sphere_id_module_name_pk"
413 }
414 },
415 "uniqueConstraints": {},
416 "checkConstraints": {}
417 },
418 "sphere_permissions": {
419 "name": "sphere_permissions",
420 "columns": {
421 "sphere_id": {
422 "name": "sphere_id",
423 "type": "text",
424 "primaryKey": false,
425 "notNull": true,
426 "autoincrement": false
427 },
428 "action_key": {
429 "name": "action_key",
430 "type": "text",
431 "primaryKey": false,
432 "notNull": true,
433 "autoincrement": false
434 },
435 "min_role": {
436 "name": "min_role",
437 "type": "text",
438 "primaryKey": false,
439 "notNull": true,
440 "autoincrement": false
441 },
442 "updated_at": {
443 "name": "updated_at",
444 "type": "text",
445 "primaryKey": false,
446 "notNull": true,
447 "autoincrement": false,
448 "default": "(datetime('now'))"
449 }
450 },
451 "indexes": {},
452 "foreignKeys": {
453 "sphere_permissions_sphere_id_spheres_id_fk": {
454 "name": "sphere_permissions_sphere_id_spheres_id_fk",
455 "tableFrom": "sphere_permissions",
456 "tableTo": "spheres",
457 "columnsFrom": ["sphere_id"],
458 "columnsTo": ["id"],
459 "onDelete": "no action",
460 "onUpdate": "no action"
461 }
462 },
463 "compositePrimaryKeys": {
464 "sphere_permissions_sphere_id_action_key_pk": {
465 "columns": ["sphere_id", "action_key"],
466 "name": "sphere_permissions_sphere_id_action_key_pk"
467 }
468 },
469 "uniqueConstraints": {},
470 "checkConstraints": {}
471 },
472 "spheres": {
473 "name": "spheres",
474 "columns": {
475 "id": {
476 "name": "id",
477 "type": "text",
478 "primaryKey": true,
479 "notNull": true,
480 "autoincrement": false
481 },
482 "handle": {
483 "name": "handle",
484 "type": "text",
485 "primaryKey": false,
486 "notNull": true,
487 "autoincrement": false
488 },
489 "name": {
490 "name": "name",
491 "type": "text",
492 "primaryKey": false,
493 "notNull": true,
494 "autoincrement": false
495 },
496 "description": {
497 "name": "description",
498 "type": "text",
499 "primaryKey": false,
500 "notNull": false,
501 "autoincrement": false
502 },
503 "visibility": {
504 "name": "visibility",
505 "type": "text",
506 "primaryKey": false,
507 "notNull": true,
508 "autoincrement": false,
509 "default": "'public'"
510 },
511 "owner_did": {
512 "name": "owner_did",
513 "type": "text",
514 "primaryKey": false,
515 "notNull": true,
516 "autoincrement": false
517 },
518 "pds_uri": {
519 "name": "pds_uri",
520 "type": "text",
521 "primaryKey": false,
522 "notNull": false,
523 "autoincrement": false
524 },
525 "created_at": {
526 "name": "created_at",
527 "type": "text",
528 "primaryKey": false,
529 "notNull": true,
530 "autoincrement": false,
531 "default": "(datetime('now'))"
532 },
533 "updated_at": {
534 "name": "updated_at",
535 "type": "text",
536 "primaryKey": false,
537 "notNull": true,
538 "autoincrement": false,
539 "default": "(datetime('now'))"
540 }
541 },
542 "indexes": {
543 "spheres_handle_unique": {
544 "name": "spheres_handle_unique",
545 "columns": ["handle"],
546 "isUnique": true
547 }
548 },
549 "foreignKeys": {},
550 "compositePrimaryKeys": {},
551 "uniqueConstraints": {},
552 "checkConstraints": {}
553 },
554 "feature_request_comment_votes": {
555 "name": "feature_request_comment_votes",
556 "columns": {
557 "comment_id": {
558 "name": "comment_id",
559 "type": "text",
560 "primaryKey": false,
561 "notNull": true,
562 "autoincrement": false
563 },
564 "author_did": {
565 "name": "author_did",
566 "type": "text",
567 "primaryKey": false,
568 "notNull": true,
569 "autoincrement": false
570 },
571 "pds_uri": {
572 "name": "pds_uri",
573 "type": "text",
574 "primaryKey": false,
575 "notNull": false,
576 "autoincrement": false
577 },
578 "created_at": {
579 "name": "created_at",
580 "type": "text",
581 "primaryKey": false,
582 "notNull": true,
583 "autoincrement": false,
584 "default": "(datetime('now'))"
585 }
586 },
587 "indexes": {
588 "idx_feature_request_comment_votes_comment": {
589 "name": "idx_feature_request_comment_votes_comment",
590 "columns": ["comment_id"],
591 "isUnique": false
592 }
593 },
594 "foreignKeys": {
595 "feature_request_comment_votes_comment_id_feature_request_comments_id_fk": {
596 "name": "feature_request_comment_votes_comment_id_feature_request_comments_id_fk",
597 "tableFrom": "feature_request_comment_votes",
598 "tableTo": "feature_request_comments",
599 "columnsFrom": ["comment_id"],
600 "columnsTo": ["id"],
601 "onDelete": "no action",
602 "onUpdate": "no action"
603 }
604 },
605 "compositePrimaryKeys": {
606 "feature_request_comment_votes_comment_id_author_did_pk": {
607 "columns": ["comment_id", "author_did"],
608 "name": "feature_request_comment_votes_comment_id_author_did_pk"
609 }
610 },
611 "uniqueConstraints": {},
612 "checkConstraints": {}
613 },
614 "feature_request_comments": {
615 "name": "feature_request_comments",
616 "columns": {
617 "id": {
618 "name": "id",
619 "type": "text",
620 "primaryKey": true,
621 "notNull": true,
622 "autoincrement": false
623 },
624 "request_id": {
625 "name": "request_id",
626 "type": "text",
627 "primaryKey": false,
628 "notNull": true,
629 "autoincrement": false
630 },
631 "author_did": {
632 "name": "author_did",
633 "type": "text",
634 "primaryKey": false,
635 "notNull": true,
636 "autoincrement": false
637 },
638 "content": {
639 "name": "content",
640 "type": "text",
641 "primaryKey": false,
642 "notNull": true,
643 "autoincrement": false
644 },
645 "pds_uri": {
646 "name": "pds_uri",
647 "type": "text",
648 "primaryKey": false,
649 "notNull": false,
650 "autoincrement": false
651 },
652 "updated_at": {
653 "name": "updated_at",
654 "type": "text",
655 "primaryKey": false,
656 "notNull": true,
657 "autoincrement": false,
658 "default": "(datetime('now'))"
659 },
660 "hidden_at": {
661 "name": "hidden_at",
662 "type": "text",
663 "primaryKey": false,
664 "notNull": false,
665 "autoincrement": false
666 },
667 "moderated_by": {
668 "name": "moderated_by",
669 "type": "text",
670 "primaryKey": false,
671 "notNull": false,
672 "autoincrement": false
673 }
674 },
675 "indexes": {
676 "idx_feature_request_comments_request": {
677 "name": "idx_feature_request_comments_request",
678 "columns": ["request_id"],
679 "isUnique": false
680 },
681 "idx_feature_request_comments_author_request": {
682 "name": "idx_feature_request_comments_author_request",
683 "columns": ["author_did", "request_id"],
684 "isUnique": false
685 }
686 },
687 "foreignKeys": {
688 "feature_request_comments_request_id_feature_requests_id_fk": {
689 "name": "feature_request_comments_request_id_feature_requests_id_fk",
690 "tableFrom": "feature_request_comments",
691 "tableTo": "feature_requests",
692 "columnsFrom": ["request_id"],
693 "columnsTo": ["id"],
694 "onDelete": "no action",
695 "onUpdate": "no action"
696 }
697 },
698 "compositePrimaryKeys": {},
699 "uniqueConstraints": {},
700 "checkConstraints": {}
701 },
702 "feature_request_statuses": {
703 "name": "feature_request_statuses",
704 "columns": {
705 "id": {
706 "name": "id",
707 "type": "text",
708 "primaryKey": true,
709 "notNull": true,
710 "autoincrement": false
711 },
712 "request_id": {
713 "name": "request_id",
714 "type": "text",
715 "primaryKey": false,
716 "notNull": true,
717 "autoincrement": false
718 },
719 "author_did": {
720 "name": "author_did",
721 "type": "text",
722 "primaryKey": false,
723 "notNull": true,
724 "autoincrement": false
725 },
726 "status": {
727 "name": "status",
728 "type": "text",
729 "primaryKey": false,
730 "notNull": true,
731 "autoincrement": false
732 },
733 "pds_uri": {
734 "name": "pds_uri",
735 "type": "text",
736 "primaryKey": false,
737 "notNull": false,
738 "autoincrement": false
739 }
740 },
741 "indexes": {
742 "idx_feature_request_statuses_request": {
743 "name": "idx_feature_request_statuses_request",
744 "columns": ["request_id"],
745 "isUnique": false
746 }
747 },
748 "foreignKeys": {
749 "feature_request_statuses_request_id_feature_requests_id_fk": {
750 "name": "feature_request_statuses_request_id_feature_requests_id_fk",
751 "tableFrom": "feature_request_statuses",
752 "tableTo": "feature_requests",
753 "columnsFrom": ["request_id"],
754 "columnsTo": ["id"],
755 "onDelete": "no action",
756 "onUpdate": "no action"
757 }
758 },
759 "compositePrimaryKeys": {},
760 "uniqueConstraints": {},
761 "checkConstraints": {}
762 },
763 "feature_request_votes": {
764 "name": "feature_request_votes",
765 "columns": {
766 "request_id": {
767 "name": "request_id",
768 "type": "text",
769 "primaryKey": false,
770 "notNull": true,
771 "autoincrement": false
772 },
773 "author_did": {
774 "name": "author_did",
775 "type": "text",
776 "primaryKey": false,
777 "notNull": true,
778 "autoincrement": false
779 },
780 "pds_uri": {
781 "name": "pds_uri",
782 "type": "text",
783 "primaryKey": false,
784 "notNull": false,
785 "autoincrement": false
786 },
787 "created_at": {
788 "name": "created_at",
789 "type": "text",
790 "primaryKey": false,
791 "notNull": true,
792 "autoincrement": false,
793 "default": "(datetime('now'))"
794 }
795 },
796 "indexes": {
797 "idx_feature_request_votes_request": {
798 "name": "idx_feature_request_votes_request",
799 "columns": ["request_id"],
800 "isUnique": false
801 }
802 },
803 "foreignKeys": {
804 "feature_request_votes_request_id_feature_requests_id_fk": {
805 "name": "feature_request_votes_request_id_feature_requests_id_fk",
806 "tableFrom": "feature_request_votes",
807 "tableTo": "feature_requests",
808 "columnsFrom": ["request_id"],
809 "columnsTo": ["id"],
810 "onDelete": "no action",
811 "onUpdate": "no action"
812 }
813 },
814 "compositePrimaryKeys": {
815 "feature_request_votes_request_id_author_did_pk": {
816 "columns": ["request_id", "author_did"],
817 "name": "feature_request_votes_request_id_author_did_pk"
818 }
819 },
820 "uniqueConstraints": {},
821 "checkConstraints": {}
822 },
823 "feature_requests": {
824 "name": "feature_requests",
825 "columns": {
826 "id": {
827 "name": "id",
828 "type": "text",
829 "primaryKey": true,
830 "notNull": true,
831 "autoincrement": false
832 },
833 "sphere_id": {
834 "name": "sphere_id",
835 "type": "text",
836 "primaryKey": false,
837 "notNull": true,
838 "autoincrement": false
839 },
840 "number": {
841 "name": "number",
842 "type": "integer",
843 "primaryKey": false,
844 "notNull": true,
845 "autoincrement": false
846 },
847 "author_did": {
848 "name": "author_did",
849 "type": "text",
850 "primaryKey": false,
851 "notNull": true,
852 "autoincrement": false
853 },
854 "title": {
855 "name": "title",
856 "type": "text",
857 "primaryKey": false,
858 "notNull": true,
859 "autoincrement": false
860 },
861 "description": {
862 "name": "description",
863 "type": "text",
864 "primaryKey": false,
865 "notNull": true,
866 "autoincrement": false
867 },
868 "category": {
869 "name": "category",
870 "type": "text",
871 "primaryKey": false,
872 "notNull": true,
873 "autoincrement": false,
874 "default": "'general'"
875 },
876 "status": {
877 "name": "status",
878 "type": "text",
879 "primaryKey": false,
880 "notNull": true,
881 "autoincrement": false,
882 "default": "'requested'"
883 },
884 "duplicate_of_id": {
885 "name": "duplicate_of_id",
886 "type": "text",
887 "primaryKey": false,
888 "notNull": false,
889 "autoincrement": false
890 },
891 "pds_uri": {
892 "name": "pds_uri",
893 "type": "text",
894 "primaryKey": false,
895 "notNull": false,
896 "autoincrement": false
897 },
898 "hidden_at": {
899 "name": "hidden_at",
900 "type": "text",
901 "primaryKey": false,
902 "notNull": false,
903 "autoincrement": false
904 },
905 "moderated_by": {
906 "name": "moderated_by",
907 "type": "text",
908 "primaryKey": false,
909 "notNull": false,
910 "autoincrement": false
911 },
912 "updated_at": {
913 "name": "updated_at",
914 "type": "text",
915 "primaryKey": false,
916 "notNull": true,
917 "autoincrement": false,
918 "default": "(datetime('now'))"
919 }
920 },
921 "indexes": {
922 "idx_feature_requests_sphere_number": {
923 "name": "idx_feature_requests_sphere_number",
924 "columns": ["sphere_id", "number"],
925 "isUnique": true
926 },
927 "idx_feature_requests_sphere": {
928 "name": "idx_feature_requests_sphere",
929 "columns": ["sphere_id"],
930 "isUnique": false
931 },
932 "idx_feature_requests_status": {
933 "name": "idx_feature_requests_status",
934 "columns": ["status"],
935 "isUnique": false
936 },
937 "idx_feature_requests_category": {
938 "name": "idx_feature_requests_category",
939 "columns": ["category"],
940 "isUnique": false
941 }
942 },
943 "foreignKeys": {
944 "feature_requests_sphere_id_spheres_id_fk": {
945 "name": "feature_requests_sphere_id_spheres_id_fk",
946 "tableFrom": "feature_requests",
947 "tableTo": "spheres",
948 "columnsFrom": ["sphere_id"],
949 "columnsTo": ["id"],
950 "onDelete": "no action",
951 "onUpdate": "no action"
952 }
953 },
954 "compositePrimaryKeys": {},
955 "uniqueConstraints": {},
956 "checkConstraints": {}
957 },
958 "feed_posts": {
959 "name": "feed_posts",
960 "columns": {
961 "id": {
962 "name": "id",
963 "type": "text",
964 "primaryKey": true,
965 "notNull": true,
966 "autoincrement": false
967 },
968 "author_did": {
969 "name": "author_did",
970 "type": "text",
971 "primaryKey": false,
972 "notNull": true,
973 "autoincrement": false
974 },
975 "content": {
976 "name": "content",
977 "type": "text",
978 "primaryKey": false,
979 "notNull": true,
980 "autoincrement": false
981 },
982 "parent_id": {
983 "name": "parent_id",
984 "type": "text",
985 "primaryKey": false,
986 "notNull": false,
987 "autoincrement": false
988 },
989 "pds_uri": {
990 "name": "pds_uri",
991 "type": "text",
992 "primaryKey": false,
993 "notNull": false,
994 "autoincrement": false
995 },
996 "updated_at": {
997 "name": "updated_at",
998 "type": "text",
999 "primaryKey": false,
1000 "notNull": true,
1001 "autoincrement": false,
1002 "default": "(datetime('now'))"
1003 }
1004 },
1005 "indexes": {
1006 "idx_feed_posts_parent": {
1007 "name": "idx_feed_posts_parent",
1008 "columns": ["parent_id"],
1009 "isUnique": false
1010 }
1011 },
1012 "foreignKeys": {},
1013 "compositePrimaryKeys": {},
1014 "uniqueConstraints": {},
1015 "checkConstraints": {}
1016 },
1017 "kanban_columns": {
1018 "name": "kanban_columns",
1019 "columns": {
1020 "id": {
1021 "name": "id",
1022 "type": "text",
1023 "primaryKey": true,
1024 "notNull": true,
1025 "autoincrement": false
1026 },
1027 "sphere_id": {
1028 "name": "sphere_id",
1029 "type": "text",
1030 "primaryKey": false,
1031 "notNull": true,
1032 "autoincrement": false
1033 },
1034 "slug": {
1035 "name": "slug",
1036 "type": "text",
1037 "primaryKey": false,
1038 "notNull": true,
1039 "autoincrement": false
1040 },
1041 "label": {
1042 "name": "label",
1043 "type": "text",
1044 "primaryKey": false,
1045 "notNull": true,
1046 "autoincrement": false
1047 },
1048 "position": {
1049 "name": "position",
1050 "type": "integer",
1051 "primaryKey": false,
1052 "notNull": true,
1053 "autoincrement": false
1054 },
1055 "created_at": {
1056 "name": "created_at",
1057 "type": "text",
1058 "primaryKey": false,
1059 "notNull": true,
1060 "autoincrement": false,
1061 "default": "(datetime('now'))"
1062 }
1063 },
1064 "indexes": {
1065 "idx_kanban_columns_sphere_slug": {
1066 "name": "idx_kanban_columns_sphere_slug",
1067 "columns": ["sphere_id", "slug"],
1068 "isUnique": true
1069 },
1070 "idx_kanban_columns_sphere_position": {
1071 "name": "idx_kanban_columns_sphere_position",
1072 "columns": ["sphere_id", "position"],
1073 "isUnique": false
1074 }
1075 },
1076 "foreignKeys": {
1077 "kanban_columns_sphere_id_spheres_id_fk": {
1078 "name": "kanban_columns_sphere_id_spheres_id_fk",
1079 "tableFrom": "kanban_columns",
1080 "tableTo": "spheres",
1081 "columnsFrom": ["sphere_id"],
1082 "columnsTo": ["id"],
1083 "onDelete": "no action",
1084 "onUpdate": "no action"
1085 }
1086 },
1087 "compositePrimaryKeys": {},
1088 "uniqueConstraints": {},
1089 "checkConstraints": {}
1090 },
1091 "kanban_task_comments": {
1092 "name": "kanban_task_comments",
1093 "columns": {
1094 "id": {
1095 "name": "id",
1096 "type": "text",
1097 "primaryKey": true,
1098 "notNull": true,
1099 "autoincrement": false
1100 },
1101 "task_id": {
1102 "name": "task_id",
1103 "type": "text",
1104 "primaryKey": false,
1105 "notNull": true,
1106 "autoincrement": false
1107 },
1108 "author_did": {
1109 "name": "author_did",
1110 "type": "text",
1111 "primaryKey": false,
1112 "notNull": true,
1113 "autoincrement": false
1114 },
1115 "content": {
1116 "name": "content",
1117 "type": "text",
1118 "primaryKey": false,
1119 "notNull": true,
1120 "autoincrement": false
1121 },
1122 "pds_uri": {
1123 "name": "pds_uri",
1124 "type": "text",
1125 "primaryKey": false,
1126 "notNull": false,
1127 "autoincrement": false
1128 },
1129 "updated_at": {
1130 "name": "updated_at",
1131 "type": "text",
1132 "primaryKey": false,
1133 "notNull": true,
1134 "autoincrement": false,
1135 "default": "(datetime('now'))"
1136 },
1137 "hidden_at": {
1138 "name": "hidden_at",
1139 "type": "text",
1140 "primaryKey": false,
1141 "notNull": false,
1142 "autoincrement": false
1143 },
1144 "moderated_by": {
1145 "name": "moderated_by",
1146 "type": "text",
1147 "primaryKey": false,
1148 "notNull": false,
1149 "autoincrement": false
1150 }
1151 },
1152 "indexes": {
1153 "idx_kanban_task_comments_task": {
1154 "name": "idx_kanban_task_comments_task",
1155 "columns": ["task_id"],
1156 "isUnique": false
1157 },
1158 "idx_kanban_task_comments_author_task": {
1159 "name": "idx_kanban_task_comments_author_task",
1160 "columns": ["author_did", "task_id"],
1161 "isUnique": false
1162 }
1163 },
1164 "foreignKeys": {
1165 "kanban_task_comments_task_id_kanban_tasks_id_fk": {
1166 "name": "kanban_task_comments_task_id_kanban_tasks_id_fk",
1167 "tableFrom": "kanban_task_comments",
1168 "tableTo": "kanban_tasks",
1169 "columnsFrom": ["task_id"],
1170 "columnsTo": ["id"],
1171 "onDelete": "no action",
1172 "onUpdate": "no action"
1173 }
1174 },
1175 "compositePrimaryKeys": {},
1176 "uniqueConstraints": {},
1177 "checkConstraints": {}
1178 },
1179 "kanban_task_status_changes": {
1180 "name": "kanban_task_status_changes",
1181 "columns": {
1182 "id": {
1183 "name": "id",
1184 "type": "text",
1185 "primaryKey": true,
1186 "notNull": true,
1187 "autoincrement": false
1188 },
1189 "task_id": {
1190 "name": "task_id",
1191 "type": "text",
1192 "primaryKey": false,
1193 "notNull": true,
1194 "autoincrement": false
1195 },
1196 "author_did": {
1197 "name": "author_did",
1198 "type": "text",
1199 "primaryKey": false,
1200 "notNull": true,
1201 "autoincrement": false
1202 },
1203 "status": {
1204 "name": "status",
1205 "type": "text",
1206 "primaryKey": false,
1207 "notNull": true,
1208 "autoincrement": false
1209 },
1210 "pds_uri": {
1211 "name": "pds_uri",
1212 "type": "text",
1213 "primaryKey": false,
1214 "notNull": false,
1215 "autoincrement": false
1216 }
1217 },
1218 "indexes": {
1219 "idx_kanban_task_status_changes_task": {
1220 "name": "idx_kanban_task_status_changes_task",
1221 "columns": ["task_id"],
1222 "isUnique": false
1223 }
1224 },
1225 "foreignKeys": {
1226 "kanban_task_status_changes_task_id_kanban_tasks_id_fk": {
1227 "name": "kanban_task_status_changes_task_id_kanban_tasks_id_fk",
1228 "tableFrom": "kanban_task_status_changes",
1229 "tableTo": "kanban_tasks",
1230 "columnsFrom": ["task_id"],
1231 "columnsTo": ["id"],
1232 "onDelete": "no action",
1233 "onUpdate": "no action"
1234 }
1235 },
1236 "compositePrimaryKeys": {},
1237 "uniqueConstraints": {},
1238 "checkConstraints": {}
1239 },
1240 "kanban_tasks": {
1241 "name": "kanban_tasks",
1242 "columns": {
1243 "id": {
1244 "name": "id",
1245 "type": "text",
1246 "primaryKey": true,
1247 "notNull": true,
1248 "autoincrement": false
1249 },
1250 "sphere_id": {
1251 "name": "sphere_id",
1252 "type": "text",
1253 "primaryKey": false,
1254 "notNull": true,
1255 "autoincrement": false
1256 },
1257 "number": {
1258 "name": "number",
1259 "type": "integer",
1260 "primaryKey": false,
1261 "notNull": true,
1262 "autoincrement": false
1263 },
1264 "author_did": {
1265 "name": "author_did",
1266 "type": "text",
1267 "primaryKey": false,
1268 "notNull": true,
1269 "autoincrement": false
1270 },
1271 "title": {
1272 "name": "title",
1273 "type": "text",
1274 "primaryKey": false,
1275 "notNull": true,
1276 "autoincrement": false
1277 },
1278 "description": {
1279 "name": "description",
1280 "type": "text",
1281 "primaryKey": false,
1282 "notNull": true,
1283 "autoincrement": false,
1284 "default": "''"
1285 },
1286 "status": {
1287 "name": "status",
1288 "type": "text",
1289 "primaryKey": false,
1290 "notNull": true,
1291 "autoincrement": false,
1292 "default": "'backlog'"
1293 },
1294 "position": {
1295 "name": "position",
1296 "type": "integer",
1297 "primaryKey": false,
1298 "notNull": true,
1299 "autoincrement": false,
1300 "default": 0
1301 },
1302 "assignee_did": {
1303 "name": "assignee_did",
1304 "type": "text",
1305 "primaryKey": false,
1306 "notNull": false,
1307 "autoincrement": false
1308 },
1309 "pds_uri": {
1310 "name": "pds_uri",
1311 "type": "text",
1312 "primaryKey": false,
1313 "notNull": false,
1314 "autoincrement": false
1315 },
1316 "hidden_at": {
1317 "name": "hidden_at",
1318 "type": "text",
1319 "primaryKey": false,
1320 "notNull": false,
1321 "autoincrement": false
1322 },
1323 "moderated_by": {
1324 "name": "moderated_by",
1325 "type": "text",
1326 "primaryKey": false,
1327 "notNull": false,
1328 "autoincrement": false
1329 },
1330 "updated_at": {
1331 "name": "updated_at",
1332 "type": "text",
1333 "primaryKey": false,
1334 "notNull": true,
1335 "autoincrement": false,
1336 "default": "(datetime('now'))"
1337 }
1338 },
1339 "indexes": {
1340 "idx_kanban_tasks_sphere_number": {
1341 "name": "idx_kanban_tasks_sphere_number",
1342 "columns": ["sphere_id", "number"],
1343 "isUnique": true
1344 },
1345 "idx_kanban_tasks_sphere": {
1346 "name": "idx_kanban_tasks_sphere",
1347 "columns": ["sphere_id"],
1348 "isUnique": false
1349 },
1350 "idx_kanban_tasks_status": {
1351 "name": "idx_kanban_tasks_status",
1352 "columns": ["status"],
1353 "isUnique": false
1354 },
1355 "idx_kanban_tasks_sphere_status_position": {
1356 "name": "idx_kanban_tasks_sphere_status_position",
1357 "columns": ["sphere_id", "status", "position"],
1358 "isUnique": false
1359 }
1360 },
1361 "foreignKeys": {
1362 "kanban_tasks_sphere_id_spheres_id_fk": {
1363 "name": "kanban_tasks_sphere_id_spheres_id_fk",
1364 "tableFrom": "kanban_tasks",
1365 "tableTo": "spheres",
1366 "columnsFrom": ["sphere_id"],
1367 "columnsTo": ["id"],
1368 "onDelete": "no action",
1369 "onUpdate": "no action"
1370 }
1371 },
1372 "compositePrimaryKeys": {},
1373 "uniqueConstraints": {},
1374 "checkConstraints": {}
1375 }
1376 },
1377 "views": {},
1378 "enums": {},
1379 "_meta": {
1380 "schemas": {},
1381 "tables": {},
1382 "columns": {}
1383 },
1384 "internal": {
1385 "indexes": {}
1386 }
1387}