volute 0.54.0 → 0.56.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{activity-events-LQII6PZS.js → activity-events-YASF46HS.js} +3 -3
- package/dist/{ai-service-YW5SWCSB.js → ai-service-3UFNG6GI.js} +3 -5
- package/dist/{archive-FOHGXHPT.js → archive-L2OFBGDQ.js} +2 -2
- package/dist/{auth-KRDSM55Q.js → auth-N2F5ASAB.js} +4 -4
- package/dist/auto-upgrade-O4MQPYQF.js +46 -0
- package/dist/{avatar-image-52WGXLHV.js → avatar-image-QEKKUFDF.js} +3 -3
- package/dist/{backup-QRNX6RK7.js → backup-TPM7QQBQ.js} +13 -13
- package/dist/{channels-CKCY64TD.js → channels-JP3GYTPX.js} +18 -18
- package/dist/{chat-ZUGNL5GS.js → chat-7YCF4ZU5.js} +3 -3
- package/dist/{chunk-QUSMYGNQ.js → chunk-2674KIGI.js} +1 -0
- package/dist/{chunk-444RR3YF.js → chunk-2B4E6SL7.js} +14 -14
- package/dist/chunk-2GATCSZK.js +520 -0
- package/dist/{chunk-I7U5EEZC.js → chunk-2LFTJNVH.js} +2 -2
- package/dist/{chunk-L7BKTZ5U.js → chunk-2QLWAYIU.js} +2 -2
- package/dist/{chunk-F6D766VQ.js → chunk-45MCH4G4.js} +2 -2
- package/dist/{chunk-OGPVJ53N.js → chunk-4RZS7XCV.js} +5 -5
- package/dist/{chunk-HKGYZVWN.js → chunk-6LICEQGP.js} +38 -4
- package/dist/{chunk-LAUCO2HC.js → chunk-APDEUAIE.js} +1 -1
- package/dist/{chunk-5Y54AE3L.js → chunk-CLH357FI.js} +2 -2
- package/dist/{chunk-OAYY3WF3.js → chunk-CVPCRWWC.js} +1 -12
- package/dist/{chunk-EGV6R6UF.js → chunk-E2SN3ZOJ.js} +5 -40
- package/dist/{chunk-LGXVGIWN.js → chunk-ELQU2GBT.js} +193 -69
- package/dist/{chunk-OT5SXF7L.js → chunk-EPRLTYJR.js} +28 -14
- package/dist/{chunk-ATZF2RNJ.js → chunk-EYFBT2KP.js} +15 -15
- package/dist/{chunk-U54PJPTB.js → chunk-FYMIGUJ5.js} +2 -2
- package/dist/{chunk-7XKPG66D.js → chunk-G7A5LEVI.js} +5 -5
- package/dist/{chunk-RGHF3OK5.js → chunk-GAAATVTM.js} +17 -17
- package/dist/{chunk-7LT3YZUR.js → chunk-I3OJ342S.js} +2 -2
- package/dist/{chunk-3LHUXY3E.js → chunk-IABDYN4N.js} +4 -4
- package/dist/{chunk-VDUCLVZI.js → chunk-IOMBP2T5.js} +28 -26
- package/dist/{chunk-YSRYCS3N.js → chunk-IQROTVBG.js} +2 -2
- package/dist/{chunk-PPSN2MLC.js → chunk-IRNM4LSF.js} +9 -6
- package/dist/{chunk-ZNHL5KQJ.js → chunk-KN3UHV7O.js} +8 -3
- package/dist/{chunk-CV6BNGFK.js → chunk-KXM4K46T.js} +4 -4
- package/dist/{chunk-Z4Q6TQWL.js → chunk-LRRPKZBD.js} +2 -2
- package/dist/{chunk-LNNI3MS4.js → chunk-MNKPAAQF.js} +9 -2
- package/dist/{chunk-OIOW3FPT.js → chunk-NA2NJXY4.js} +1 -1
- package/dist/{chunk-GLM7TVWP.js → chunk-OHHS5PSI.js} +1 -1
- package/dist/{chunk-CKPAVQNK.js → chunk-OPTA3BJ4.js} +36 -24
- package/dist/{chunk-X67BDDZR.js → chunk-P3GXOT2X.js} +48 -2
- package/dist/{chunk-WHL6PKYP.js → chunk-PAO7JZNW.js} +52 -48
- package/dist/{chunk-TPX6E6PL.js → chunk-Q5M5QFKY.js} +3 -3
- package/dist/{chunk-OYF25B62.js → chunk-T7UMSTH2.js} +3 -3
- package/dist/{chunk-H6X6CKDN.js → chunk-TAVIVN2I.js} +2 -32
- package/dist/{chunk-56IT2ZXF.js → chunk-TGYKFUCF.js} +9 -15
- package/dist/{chunk-5U5GLZSD.js → chunk-TZ7OHGNL.js} +2 -2
- package/dist/{chunk-UFTDRTCP.js → chunk-UMQP5TC5.js} +2 -2
- package/dist/{chunk-LKUGUQUW.js → chunk-UNTDRIV2.js} +5 -5
- package/dist/{chunk-CLCHOXLR.js → chunk-V2M6PNLE.js} +5 -5
- package/dist/{chunk-ICXY54ZC.js → chunk-WTZD6LFW.js} +2 -2
- package/dist/{chunk-FLIEXG2T.js → chunk-XZP3FJ7Q.js} +1 -1
- package/dist/{chunk-HTRSSOHY.js → chunk-YU5EYQAE.js} +1 -1
- package/dist/cli.js +26 -23
- package/dist/{clock-X7V3C7NL.js → clock-ZT5YT6HA.js} +2 -2
- package/dist/{cloud-sync-52YNJRMR.js → cloud-sync-RTUXMYU2.js} +23 -23
- package/dist/{conversations-ZL6PHROD.js → conversations-ERMMPMOS.js} +4 -4
- package/dist/{create-G2RIKQYK.js → create-IUCFJXCE.js} +1 -1
- package/dist/{daemon-restart-QWHN5VMU.js → daemon-restart-N2YOISNJ.js} +11 -6
- package/dist/daemon.js +230 -279
- package/dist/{db-BONH4SUG.js → db-BQFYIONA.js} +1 -1
- package/dist/{db-I4EH5SLF.js → db-JH3NTERX.js} +17 -3
- package/dist/delivery-manager-5EGCFN4K.js +41 -0
- package/dist/{delivery-notices-RZQ6GONP.js → delivery-notices-LZKZXWTX.js} +6 -6
- package/dist/{delivery-router-QS4NLJR6.js → delivery-router-U6Q22ZYU.js} +3 -3
- package/dist/doctor-225FYBAQ.js +454 -0
- package/dist/{down-UN2EDX2Y.js → down-3BQSPUAZ.js} +4 -4
- package/dist/echo-text-Y2DFTD7L.js +40 -0
- package/dist/{env-SQFCWW52.js → env-4YX5YNWZ.js} +2 -2
- package/dist/{exec-Z34TTUO3.js → exec-Y5VMDAVA.js} +2 -2
- package/dist/{export-VBNWM7I4.js → export-ASRHBMRG.js} +2 -2
- package/dist/{extensions-QT65JGV6.js → extensions-YEPEWURN.js} +27 -23
- package/dist/{files-PCKBQHAY.js → files-FASUDSZQ.js} +3 -3
- package/dist/{import-DB2KULRO.js → import-O35Y7DSF.js} +6 -6
- package/dist/{isolation-UQPDO34R.js → isolation-ZOAUXYXA.js} +2 -2
- package/dist/{login-57MMYILL.js → login-54TZQQP4.js} +5 -5
- package/dist/{logout-YFZAJRPY.js → logout-4G46Z4RU.js} +1 -1
- package/dist/message-delivery-HBTMGWFU.js +46 -0
- package/dist/{mind-CT6ANXK4.js → mind-IKMX7K7G.js} +8 -24
- package/dist/{mind-activity-tracker-QF6DCX2X.js → mind-activity-tracker-ABAEIMA3.js} +4 -4
- package/dist/mind-service-LRVOQG2T.js +48 -0
- package/dist/{mind-sleep-24HV4RCA.js → mind-sleep-LZAFBDZD.js} +2 -2
- package/dist/{package-F6S5NHY2.js → package-X5O7OD2E.js} +12 -13
- package/dist/{prompts-JECJIFPQ.js → prompts-ZNOE3KN3.js} +2 -2
- package/dist/{registry-TRC2HJXR.js → registry-BTQXLDW6.js} +1 -1
- package/dist/{sandbox-NNWCTHRI.js → sandbox-OUFAGN45.js} +3 -3
- package/dist/scheduler-G6BCIVGP.js +27 -0
- package/dist/{seed-cmd-6IMTO3LG.js → seed-cmd-BGAW3WDY.js} +2 -2
- package/dist/{seed-create-VNLDYRFK.js → seed-create-SMCPEUFQ.js} +3 -3
- package/dist/{seed-readiness-H5TTPAQH.js → seed-readiness-RBANMSWW.js} +3 -3
- package/dist/{seed-sprout-PPGYGK4G.js → seed-sprout-CSHV36N3.js} +9 -9
- package/dist/{send-UXUQKO4N.js → send-D3ADUBR5.js} +6 -6
- package/dist/{service-T4P5W6RS.js → service-SWEEBOOY.js} +3 -24
- package/dist/{service-install-R4SNYUVO.js → service-install-RCC26KDV.js} +4 -4
- package/dist/{setup-YUAQMDVZ.js → setup-L5NZG2U3.js} +5 -5
- package/dist/{setup-WZSXHHRJ.js → setup-R7Q4HFJP.js} +1 -5
- package/dist/skills/volute-mind/SKILL.md +8 -0
- package/dist/{skills-GMQ5UIIW.js → skills-BCCU4OJW.js} +4 -4
- package/dist/sleep-manager-25P44HAO.js +42 -0
- package/dist/{spirit-Q5VGFWUI.js → spirit-YPG2MU6W.js} +7 -7
- package/dist/spirit-availability-ZQM5IH4C.js +43 -0
- package/dist/{src-H3UCOP6B.js → src-246GSX7A.js} +5 -2
- package/dist/src-LOUB3WPR.js +4189 -0
- package/dist/{status-LCKTTIWS.js → status-BYPCJU6H.js} +4 -4
- package/dist/{system-events-Q7IVZ5T4.js → system-events-CWC7CBKP.js} +6 -4
- package/dist/{systems-HL7SGSW7.js → systems-VDRUZXNF.js} +2 -2
- package/dist/{tailscale-KHNZFC7L.js → tailscale-4XY7B5A2.js} +2 -2
- package/dist/{template-hash-YKWMVYMM.js → template-hash-RJRMF6DT.js} +2 -2
- package/dist/{template-staleness-PY2CULH6.js → template-staleness-CL4V7BT7.js} +5 -5
- package/dist/{turn-tracker-HZDPMSCC.js → turn-tracker-LZP5X6GZ.js} +8 -8
- package/dist/{up-XZDSJVMU.js → up-3AAN4GYY.js} +4 -4
- package/dist/{update-ILCPVNDD.js → update-2MWXRE2S.js} +4 -4
- package/dist/{update-check-SZ7B5IFI.js → update-check-PJOZXZYJ.js} +2 -2
- package/dist/variant-cleanup-K7RFMSH7.js +24 -0
- package/dist/{version-notify-VNVFX6UP.js → version-notify-QIDHR6WO.js} +12 -12
- package/dist/web-assets/assets/{index-CwtxGwe_.js → index-Bfvls20e.js} +17 -17
- package/dist/web-assets/assets/index-hPn_fkz3.css +1 -0
- package/dist/web-assets/index.html +2 -2
- package/drizzle/0000_crazy_epoch.sql +232 -0
- package/drizzle/README.md +42 -0
- package/drizzle/meta/0000_snapshot.json +1420 -3
- package/drizzle/meta/_journal.json +2 -128
- package/package.json +12 -13
- package/packages/extensions/intentions/dist/ui/assets/index-Bl5KEcli.js +67 -0
- package/packages/extensions/intentions/dist/ui/index.html +1 -1
- package/packages/extensions/pages/dist/ui/assets/index-BKxVQkA9.css +1 -0
- package/packages/extensions/pages/dist/ui/assets/index-BMt6sStP.js +68 -0
- package/packages/extensions/pages/dist/ui/index.html +2 -2
- package/packages/extensions/pages/skills/pages/SKILL.md +123 -4
- package/templates/_base/.init/.config/prompts.json +0 -1
- package/templates/_base/.init/.local/hooks/pre-prompt/turn-context.ts +30 -0
- package/templates/_base/src/lib/codex-session-seed.ts +6 -55
- package/templates/_base/src/lib/pi-session-seed.ts +8 -57
- package/templates/_base/src/lib/seed-note.ts +4 -4
- package/templates/_base/src/lib/session-seed.ts +8 -53
- package/templates/_base/src/lib/startup.ts +0 -20
- package/templates/claude/package.json +2 -2
- package/templates/claude/src/agent.ts +34 -102
- package/templates/claude/src/lib/hooks/pre-compact.ts +6 -6
- package/templates/claude/src/server.ts +0 -1
- package/templates/codex/package.json +2 -2
- package/templates/codex/src/agent.ts +23 -89
- package/templates/pi/package.json +1 -1
- package/templates/pi/src/agent.ts +26 -93
- package/templates/pi/src/server.ts +0 -1
- package/dist/auto-upgrade-HEVZKPTF.js +0 -46
- package/dist/chunk-AAPNU7GA.js +0 -168
- package/dist/delivery-manager-7R2YIQ2W.js +0 -41
- package/dist/echo-text-73CYQRL7.js +0 -40
- package/dist/message-delivery-TRKT4T2P.js +0 -46
- package/dist/migrate-name-placeholder-C7NCNLWF.js +0 -37
- package/dist/migrate-thread-config-EQSEP2XG.js +0 -90
- package/dist/mind-service-7EFIJ3ZA.js +0 -48
- package/dist/scheduler-73Q4MQ7Y.js +0 -27
- package/dist/seed-DRKAP3XV.js +0 -11
- package/dist/sleep-manager-KHI65FEX.js +0 -42
- package/dist/spirit-availability-G5FMWKRH.js +0 -43
- package/dist/sprout-PMTRL7QN.js +0 -11
- package/dist/src-3FIW7DLH.js +0 -2376
- package/dist/src-LTTQVN2Z.js +0 -832
- package/dist/variant-HHDTW74J.js +0 -62
- package/dist/variant-cleanup-QHGGY7ND.js +0 -24
- package/dist/web-assets/assets/index-DhM1yYRN.css +0 -1
- package/drizzle/0000_baseline.sql +0 -152
- package/drizzle/0001_add_conversation_private.sql +0 -1
- package/drizzle/0002_turns.sql +0 -21
- package/drizzle/0003_turn_feed_links.sql +0 -11
- package/drizzle/0004_spirits.sql +0 -5
- package/drizzle/0005_meta_summaries.sql +0 -15
- package/drizzle/0006_channels.sql +0 -17
- package/drizzle/0007_drop_conversation_name_title.sql +0 -11
- package/drizzle/0008_performance_indexes.sql +0 -6
- package/drizzle/0009_mind_notices.sql +0 -14
- package/drizzle/0010_delivery_queue_redrive.sql +0 -10
- package/drizzle/0011_drop_turn_summary_event_id.sql +0 -3
- package/drizzle/0012_channel_gates.sql +0 -17
- package/drizzle/0013_variant_purpose.sql +0 -3
- package/drizzle/0014_system_events.sql +0 -26
- package/drizzle/0015_rename_session_to_thread.sql +0 -12
- package/drizzle/0016_brain_to_human.sql +0 -4
- package/drizzle/0017_event_history_rows.sql +0 -9
- package/drizzle/0018_api_tokens.sql +0 -20
- package/drizzle/meta/0001_snapshot.json +0 -7
- package/drizzle/meta/0002_snapshot.json +0 -7
- package/drizzle/meta/0003_snapshot.json +0 -7
- package/drizzle/meta/0004_snapshot.json +0 -7
- package/drizzle/meta/0005_snapshot.json +0 -7
- package/drizzle/meta/0006_snapshot.json +0 -7
- package/drizzle/meta/0007_snapshot.json +0 -7
- package/packages/extensions/intentions/dist/ui/assets/index-CQz4aceM.js +0 -67
- package/packages/extensions/notes/dist/ui/assets/index-BBs8pyel.js +0 -67
- package/packages/extensions/notes/dist/ui/assets/index-D3cdui42.css +0 -1
- package/packages/extensions/notes/dist/ui/index.html +0 -14
- package/packages/extensions/notes/skills/notes/SKILL.md +0 -90
- package/packages/extensions/pages/dist/ui/assets/index-B589e8Xe.js +0 -2
- package/packages/extensions/pages/dist/ui/assets/index-BuXnE-rb.css +0 -1
- package/dist/{env-7AZFBPWX.js → env-IBW2QI6K.js} +5 -5
- package/dist/{login-4NUS72Z5.js → login-RJJTCVR3.js} +3 -3
- package/dist/{mind-contacts-PEXCDRXA.js → mind-contacts-KV64UDJS.js} +6 -6
- package/dist/{mind-history-RZMMCHMX.js → mind-history-H45GM2M2.js} +6 -6
- package/dist/{register-WNCSOTAU.js → register-OX4HRSGC.js} +3 -3
- package/dist/{restart-B4GNMVF2.js → restart-AGEGNSYQ.js} +4 -4
- package/dist/{skill-QYTBUDNQ.js → skill-B5OJEQUA.js} +4 -4
- package/dist/{start-BDHJVOVX.js → start-MUMNFR52.js} +3 -3
- package/dist/{stop-45QYSGYS.js → stop-EKERNYTX.js} +4 -4
|
@@ -1,7 +1,1424 @@
|
|
|
1
1
|
{
|
|
2
|
-
"id": "0000_baseline",
|
|
3
|
-
"prevId": "",
|
|
4
2
|
"version": "6",
|
|
5
3
|
"dialect": "sqlite",
|
|
6
|
-
"
|
|
4
|
+
"id": "d7bf9184-e44d-43ad-ade0-6eed5fbf7bc8",
|
|
5
|
+
"prevId": "00000000-0000-0000-0000-000000000000",
|
|
6
|
+
"tables": {
|
|
7
|
+
"activity": {
|
|
8
|
+
"name": "activity",
|
|
9
|
+
"columns": {
|
|
10
|
+
"id": {
|
|
11
|
+
"name": "id",
|
|
12
|
+
"type": "integer",
|
|
13
|
+
"primaryKey": true,
|
|
14
|
+
"notNull": true,
|
|
15
|
+
"autoincrement": true
|
|
16
|
+
},
|
|
17
|
+
"type": {
|
|
18
|
+
"name": "type",
|
|
19
|
+
"type": "text",
|
|
20
|
+
"primaryKey": false,
|
|
21
|
+
"notNull": true,
|
|
22
|
+
"autoincrement": false
|
|
23
|
+
},
|
|
24
|
+
"mind": {
|
|
25
|
+
"name": "mind",
|
|
26
|
+
"type": "text",
|
|
27
|
+
"primaryKey": false,
|
|
28
|
+
"notNull": true,
|
|
29
|
+
"autoincrement": false
|
|
30
|
+
},
|
|
31
|
+
"summary": {
|
|
32
|
+
"name": "summary",
|
|
33
|
+
"type": "text",
|
|
34
|
+
"primaryKey": false,
|
|
35
|
+
"notNull": true,
|
|
36
|
+
"autoincrement": false
|
|
37
|
+
},
|
|
38
|
+
"metadata": {
|
|
39
|
+
"name": "metadata",
|
|
40
|
+
"type": "text",
|
|
41
|
+
"primaryKey": false,
|
|
42
|
+
"notNull": false,
|
|
43
|
+
"autoincrement": false
|
|
44
|
+
},
|
|
45
|
+
"turn_id": {
|
|
46
|
+
"name": "turn_id",
|
|
47
|
+
"type": "text",
|
|
48
|
+
"primaryKey": false,
|
|
49
|
+
"notNull": false,
|
|
50
|
+
"autoincrement": false
|
|
51
|
+
},
|
|
52
|
+
"source_event_id": {
|
|
53
|
+
"name": "source_event_id",
|
|
54
|
+
"type": "integer",
|
|
55
|
+
"primaryKey": false,
|
|
56
|
+
"notNull": false,
|
|
57
|
+
"autoincrement": false
|
|
58
|
+
},
|
|
59
|
+
"created_at": {
|
|
60
|
+
"name": "created_at",
|
|
61
|
+
"type": "text",
|
|
62
|
+
"primaryKey": false,
|
|
63
|
+
"notNull": true,
|
|
64
|
+
"autoincrement": false,
|
|
65
|
+
"default": "(datetime('now'))"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"indexes": {
|
|
69
|
+
"idx_activity_created_at": {
|
|
70
|
+
"name": "idx_activity_created_at",
|
|
71
|
+
"columns": ["created_at"],
|
|
72
|
+
"isUnique": false
|
|
73
|
+
},
|
|
74
|
+
"idx_activity_mind": {
|
|
75
|
+
"name": "idx_activity_mind",
|
|
76
|
+
"columns": ["mind"],
|
|
77
|
+
"isUnique": false
|
|
78
|
+
},
|
|
79
|
+
"idx_activity_turn_id": {
|
|
80
|
+
"name": "idx_activity_turn_id",
|
|
81
|
+
"columns": ["turn_id"],
|
|
82
|
+
"isUnique": false
|
|
83
|
+
},
|
|
84
|
+
"idx_activity_type": {
|
|
85
|
+
"name": "idx_activity_type",
|
|
86
|
+
"columns": ["type"],
|
|
87
|
+
"isUnique": false
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"foreignKeys": {},
|
|
91
|
+
"compositePrimaryKeys": {},
|
|
92
|
+
"uniqueConstraints": {},
|
|
93
|
+
"checkConstraints": {}
|
|
94
|
+
},
|
|
95
|
+
"api_tokens": {
|
|
96
|
+
"name": "api_tokens",
|
|
97
|
+
"columns": {
|
|
98
|
+
"id": {
|
|
99
|
+
"name": "id",
|
|
100
|
+
"type": "integer",
|
|
101
|
+
"primaryKey": true,
|
|
102
|
+
"notNull": true,
|
|
103
|
+
"autoincrement": true
|
|
104
|
+
},
|
|
105
|
+
"user_id": {
|
|
106
|
+
"name": "user_id",
|
|
107
|
+
"type": "integer",
|
|
108
|
+
"primaryKey": false,
|
|
109
|
+
"notNull": true,
|
|
110
|
+
"autoincrement": false
|
|
111
|
+
},
|
|
112
|
+
"token_hash": {
|
|
113
|
+
"name": "token_hash",
|
|
114
|
+
"type": "text",
|
|
115
|
+
"primaryKey": false,
|
|
116
|
+
"notNull": true,
|
|
117
|
+
"autoincrement": false
|
|
118
|
+
},
|
|
119
|
+
"label": {
|
|
120
|
+
"name": "label",
|
|
121
|
+
"type": "text",
|
|
122
|
+
"primaryKey": false,
|
|
123
|
+
"notNull": false,
|
|
124
|
+
"autoincrement": false
|
|
125
|
+
},
|
|
126
|
+
"created_at": {
|
|
127
|
+
"name": "created_at",
|
|
128
|
+
"type": "text",
|
|
129
|
+
"primaryKey": false,
|
|
130
|
+
"notNull": true,
|
|
131
|
+
"autoincrement": false,
|
|
132
|
+
"default": "(datetime('now'))"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"indexes": {
|
|
136
|
+
"idx_api_tokens_hash": {
|
|
137
|
+
"name": "idx_api_tokens_hash",
|
|
138
|
+
"columns": ["token_hash"],
|
|
139
|
+
"isUnique": true
|
|
140
|
+
},
|
|
141
|
+
"idx_api_tokens_user": {
|
|
142
|
+
"name": "idx_api_tokens_user",
|
|
143
|
+
"columns": ["user_id"],
|
|
144
|
+
"isUnique": false
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"foreignKeys": {
|
|
148
|
+
"api_tokens_user_id_users_id_fk": {
|
|
149
|
+
"name": "api_tokens_user_id_users_id_fk",
|
|
150
|
+
"tableFrom": "api_tokens",
|
|
151
|
+
"tableTo": "users",
|
|
152
|
+
"columnsFrom": ["user_id"],
|
|
153
|
+
"columnsTo": ["id"],
|
|
154
|
+
"onDelete": "cascade",
|
|
155
|
+
"onUpdate": "no action"
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
"compositePrimaryKeys": {},
|
|
159
|
+
"uniqueConstraints": {},
|
|
160
|
+
"checkConstraints": {}
|
|
161
|
+
},
|
|
162
|
+
"channel_gates": {
|
|
163
|
+
"name": "channel_gates",
|
|
164
|
+
"columns": {
|
|
165
|
+
"mind": {
|
|
166
|
+
"name": "mind",
|
|
167
|
+
"type": "text",
|
|
168
|
+
"primaryKey": false,
|
|
169
|
+
"notNull": true,
|
|
170
|
+
"autoincrement": false
|
|
171
|
+
},
|
|
172
|
+
"channel": {
|
|
173
|
+
"name": "channel",
|
|
174
|
+
"type": "text",
|
|
175
|
+
"primaryKey": false,
|
|
176
|
+
"notNull": true,
|
|
177
|
+
"autoincrement": false
|
|
178
|
+
},
|
|
179
|
+
"state": {
|
|
180
|
+
"name": "state",
|
|
181
|
+
"type": "text",
|
|
182
|
+
"primaryKey": false,
|
|
183
|
+
"notNull": true,
|
|
184
|
+
"autoincrement": false
|
|
185
|
+
},
|
|
186
|
+
"updated_at": {
|
|
187
|
+
"name": "updated_at",
|
|
188
|
+
"type": "text",
|
|
189
|
+
"primaryKey": false,
|
|
190
|
+
"notNull": true,
|
|
191
|
+
"autoincrement": false,
|
|
192
|
+
"default": "(datetime('now'))"
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"indexes": {},
|
|
196
|
+
"foreignKeys": {},
|
|
197
|
+
"compositePrimaryKeys": {
|
|
198
|
+
"channel_gates_mind_channel_pk": {
|
|
199
|
+
"columns": ["mind", "channel"],
|
|
200
|
+
"name": "channel_gates_mind_channel_pk"
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"uniqueConstraints": {},
|
|
204
|
+
"checkConstraints": {}
|
|
205
|
+
},
|
|
206
|
+
"channels": {
|
|
207
|
+
"name": "channels",
|
|
208
|
+
"columns": {
|
|
209
|
+
"conversation_id": {
|
|
210
|
+
"name": "conversation_id",
|
|
211
|
+
"type": "text",
|
|
212
|
+
"primaryKey": true,
|
|
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
|
+
"rules": {
|
|
231
|
+
"name": "rules",
|
|
232
|
+
"type": "text",
|
|
233
|
+
"primaryKey": false,
|
|
234
|
+
"notNull": false,
|
|
235
|
+
"autoincrement": false
|
|
236
|
+
},
|
|
237
|
+
"char_limit": {
|
|
238
|
+
"name": "char_limit",
|
|
239
|
+
"type": "integer",
|
|
240
|
+
"primaryKey": false,
|
|
241
|
+
"notNull": false,
|
|
242
|
+
"autoincrement": false
|
|
243
|
+
},
|
|
244
|
+
"private": {
|
|
245
|
+
"name": "private",
|
|
246
|
+
"type": "integer",
|
|
247
|
+
"primaryKey": false,
|
|
248
|
+
"notNull": true,
|
|
249
|
+
"autoincrement": false,
|
|
250
|
+
"default": 0
|
|
251
|
+
},
|
|
252
|
+
"created_at": {
|
|
253
|
+
"name": "created_at",
|
|
254
|
+
"type": "text",
|
|
255
|
+
"primaryKey": false,
|
|
256
|
+
"notNull": true,
|
|
257
|
+
"autoincrement": false,
|
|
258
|
+
"default": "(datetime('now'))"
|
|
259
|
+
},
|
|
260
|
+
"updated_at": {
|
|
261
|
+
"name": "updated_at",
|
|
262
|
+
"type": "text",
|
|
263
|
+
"primaryKey": false,
|
|
264
|
+
"notNull": true,
|
|
265
|
+
"autoincrement": false,
|
|
266
|
+
"default": "(datetime('now'))"
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
"indexes": {
|
|
270
|
+
"idx_channels_name": {
|
|
271
|
+
"name": "idx_channels_name",
|
|
272
|
+
"columns": ["name"],
|
|
273
|
+
"isUnique": true
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
"foreignKeys": {
|
|
277
|
+
"channels_conversation_id_conversations_id_fk": {
|
|
278
|
+
"name": "channels_conversation_id_conversations_id_fk",
|
|
279
|
+
"tableFrom": "channels",
|
|
280
|
+
"tableTo": "conversations",
|
|
281
|
+
"columnsFrom": ["conversation_id"],
|
|
282
|
+
"columnsTo": ["id"],
|
|
283
|
+
"onDelete": "cascade",
|
|
284
|
+
"onUpdate": "no action"
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
"compositePrimaryKeys": {},
|
|
288
|
+
"uniqueConstraints": {},
|
|
289
|
+
"checkConstraints": {}
|
|
290
|
+
},
|
|
291
|
+
"conversation_participants": {
|
|
292
|
+
"name": "conversation_participants",
|
|
293
|
+
"columns": {
|
|
294
|
+
"conversation_id": {
|
|
295
|
+
"name": "conversation_id",
|
|
296
|
+
"type": "text",
|
|
297
|
+
"primaryKey": false,
|
|
298
|
+
"notNull": true,
|
|
299
|
+
"autoincrement": false
|
|
300
|
+
},
|
|
301
|
+
"user_id": {
|
|
302
|
+
"name": "user_id",
|
|
303
|
+
"type": "integer",
|
|
304
|
+
"primaryKey": false,
|
|
305
|
+
"notNull": true,
|
|
306
|
+
"autoincrement": false
|
|
307
|
+
},
|
|
308
|
+
"role": {
|
|
309
|
+
"name": "role",
|
|
310
|
+
"type": "text",
|
|
311
|
+
"primaryKey": false,
|
|
312
|
+
"notNull": true,
|
|
313
|
+
"autoincrement": false,
|
|
314
|
+
"default": "'member'"
|
|
315
|
+
},
|
|
316
|
+
"joined_at": {
|
|
317
|
+
"name": "joined_at",
|
|
318
|
+
"type": "text",
|
|
319
|
+
"primaryKey": false,
|
|
320
|
+
"notNull": true,
|
|
321
|
+
"autoincrement": false,
|
|
322
|
+
"default": "(datetime('now'))"
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
"indexes": {
|
|
326
|
+
"idx_cp_unique": {
|
|
327
|
+
"name": "idx_cp_unique",
|
|
328
|
+
"columns": ["conversation_id", "user_id"],
|
|
329
|
+
"isUnique": true
|
|
330
|
+
},
|
|
331
|
+
"idx_cp_user_id": {
|
|
332
|
+
"name": "idx_cp_user_id",
|
|
333
|
+
"columns": ["user_id"],
|
|
334
|
+
"isUnique": false
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
"foreignKeys": {
|
|
338
|
+
"conversation_participants_conversation_id_conversations_id_fk": {
|
|
339
|
+
"name": "conversation_participants_conversation_id_conversations_id_fk",
|
|
340
|
+
"tableFrom": "conversation_participants",
|
|
341
|
+
"tableTo": "conversations",
|
|
342
|
+
"columnsFrom": ["conversation_id"],
|
|
343
|
+
"columnsTo": ["id"],
|
|
344
|
+
"onDelete": "cascade",
|
|
345
|
+
"onUpdate": "no action"
|
|
346
|
+
},
|
|
347
|
+
"conversation_participants_user_id_users_id_fk": {
|
|
348
|
+
"name": "conversation_participants_user_id_users_id_fk",
|
|
349
|
+
"tableFrom": "conversation_participants",
|
|
350
|
+
"tableTo": "users",
|
|
351
|
+
"columnsFrom": ["user_id"],
|
|
352
|
+
"columnsTo": ["id"],
|
|
353
|
+
"onDelete": "cascade",
|
|
354
|
+
"onUpdate": "no action"
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
"compositePrimaryKeys": {},
|
|
358
|
+
"uniqueConstraints": {},
|
|
359
|
+
"checkConstraints": {}
|
|
360
|
+
},
|
|
361
|
+
"conversation_reads": {
|
|
362
|
+
"name": "conversation_reads",
|
|
363
|
+
"columns": {
|
|
364
|
+
"user_id": {
|
|
365
|
+
"name": "user_id",
|
|
366
|
+
"type": "integer",
|
|
367
|
+
"primaryKey": false,
|
|
368
|
+
"notNull": true,
|
|
369
|
+
"autoincrement": false
|
|
370
|
+
},
|
|
371
|
+
"conversation_id": {
|
|
372
|
+
"name": "conversation_id",
|
|
373
|
+
"type": "text",
|
|
374
|
+
"primaryKey": false,
|
|
375
|
+
"notNull": true,
|
|
376
|
+
"autoincrement": false
|
|
377
|
+
},
|
|
378
|
+
"last_read_message_id": {
|
|
379
|
+
"name": "last_read_message_id",
|
|
380
|
+
"type": "integer",
|
|
381
|
+
"primaryKey": false,
|
|
382
|
+
"notNull": true,
|
|
383
|
+
"autoincrement": false,
|
|
384
|
+
"default": 0
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
"indexes": {
|
|
388
|
+
"idx_conversation_reads_unique": {
|
|
389
|
+
"name": "idx_conversation_reads_unique",
|
|
390
|
+
"columns": ["user_id", "conversation_id"],
|
|
391
|
+
"isUnique": true
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
"foreignKeys": {
|
|
395
|
+
"conversation_reads_user_id_users_id_fk": {
|
|
396
|
+
"name": "conversation_reads_user_id_users_id_fk",
|
|
397
|
+
"tableFrom": "conversation_reads",
|
|
398
|
+
"tableTo": "users",
|
|
399
|
+
"columnsFrom": ["user_id"],
|
|
400
|
+
"columnsTo": ["id"],
|
|
401
|
+
"onDelete": "cascade",
|
|
402
|
+
"onUpdate": "no action"
|
|
403
|
+
},
|
|
404
|
+
"conversation_reads_conversation_id_conversations_id_fk": {
|
|
405
|
+
"name": "conversation_reads_conversation_id_conversations_id_fk",
|
|
406
|
+
"tableFrom": "conversation_reads",
|
|
407
|
+
"tableTo": "conversations",
|
|
408
|
+
"columnsFrom": ["conversation_id"],
|
|
409
|
+
"columnsTo": ["id"],
|
|
410
|
+
"onDelete": "cascade",
|
|
411
|
+
"onUpdate": "no action"
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
"compositePrimaryKeys": {},
|
|
415
|
+
"uniqueConstraints": {},
|
|
416
|
+
"checkConstraints": {}
|
|
417
|
+
},
|
|
418
|
+
"conversations": {
|
|
419
|
+
"name": "conversations",
|
|
420
|
+
"columns": {
|
|
421
|
+
"id": {
|
|
422
|
+
"name": "id",
|
|
423
|
+
"type": "text",
|
|
424
|
+
"primaryKey": true,
|
|
425
|
+
"notNull": true,
|
|
426
|
+
"autoincrement": false
|
|
427
|
+
},
|
|
428
|
+
"type": {
|
|
429
|
+
"name": "type",
|
|
430
|
+
"type": "text",
|
|
431
|
+
"primaryKey": false,
|
|
432
|
+
"notNull": true,
|
|
433
|
+
"autoincrement": false,
|
|
434
|
+
"default": "'dm'"
|
|
435
|
+
},
|
|
436
|
+
"user_id": {
|
|
437
|
+
"name": "user_id",
|
|
438
|
+
"type": "integer",
|
|
439
|
+
"primaryKey": false,
|
|
440
|
+
"notNull": false,
|
|
441
|
+
"autoincrement": false
|
|
442
|
+
},
|
|
443
|
+
"private": {
|
|
444
|
+
"name": "private",
|
|
445
|
+
"type": "integer",
|
|
446
|
+
"primaryKey": false,
|
|
447
|
+
"notNull": true,
|
|
448
|
+
"autoincrement": false,
|
|
449
|
+
"default": 0
|
|
450
|
+
},
|
|
451
|
+
"created_at": {
|
|
452
|
+
"name": "created_at",
|
|
453
|
+
"type": "text",
|
|
454
|
+
"primaryKey": false,
|
|
455
|
+
"notNull": true,
|
|
456
|
+
"autoincrement": false,
|
|
457
|
+
"default": "(datetime('now'))"
|
|
458
|
+
},
|
|
459
|
+
"updated_at": {
|
|
460
|
+
"name": "updated_at",
|
|
461
|
+
"type": "text",
|
|
462
|
+
"primaryKey": false,
|
|
463
|
+
"notNull": true,
|
|
464
|
+
"autoincrement": false,
|
|
465
|
+
"default": "(datetime('now'))"
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
"indexes": {
|
|
469
|
+
"idx_conversations_user_id": {
|
|
470
|
+
"name": "idx_conversations_user_id",
|
|
471
|
+
"columns": ["user_id"],
|
|
472
|
+
"isUnique": false
|
|
473
|
+
},
|
|
474
|
+
"idx_conversations_updated_at": {
|
|
475
|
+
"name": "idx_conversations_updated_at",
|
|
476
|
+
"columns": ["updated_at"],
|
|
477
|
+
"isUnique": false
|
|
478
|
+
}
|
|
479
|
+
},
|
|
480
|
+
"foreignKeys": {
|
|
481
|
+
"conversations_user_id_users_id_fk": {
|
|
482
|
+
"name": "conversations_user_id_users_id_fk",
|
|
483
|
+
"tableFrom": "conversations",
|
|
484
|
+
"tableTo": "users",
|
|
485
|
+
"columnsFrom": ["user_id"],
|
|
486
|
+
"columnsTo": ["id"],
|
|
487
|
+
"onDelete": "no action",
|
|
488
|
+
"onUpdate": "no action"
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
"compositePrimaryKeys": {},
|
|
492
|
+
"uniqueConstraints": {},
|
|
493
|
+
"checkConstraints": {}
|
|
494
|
+
},
|
|
495
|
+
"delivery_queue": {
|
|
496
|
+
"name": "delivery_queue",
|
|
497
|
+
"columns": {
|
|
498
|
+
"id": {
|
|
499
|
+
"name": "id",
|
|
500
|
+
"type": "integer",
|
|
501
|
+
"primaryKey": true,
|
|
502
|
+
"notNull": true,
|
|
503
|
+
"autoincrement": true
|
|
504
|
+
},
|
|
505
|
+
"mind": {
|
|
506
|
+
"name": "mind",
|
|
507
|
+
"type": "text",
|
|
508
|
+
"primaryKey": false,
|
|
509
|
+
"notNull": true,
|
|
510
|
+
"autoincrement": false
|
|
511
|
+
},
|
|
512
|
+
"target_mind": {
|
|
513
|
+
"name": "target_mind",
|
|
514
|
+
"type": "text",
|
|
515
|
+
"primaryKey": false,
|
|
516
|
+
"notNull": false,
|
|
517
|
+
"autoincrement": false
|
|
518
|
+
},
|
|
519
|
+
"thread": {
|
|
520
|
+
"name": "thread",
|
|
521
|
+
"type": "text",
|
|
522
|
+
"primaryKey": false,
|
|
523
|
+
"notNull": true,
|
|
524
|
+
"autoincrement": false
|
|
525
|
+
},
|
|
526
|
+
"channel": {
|
|
527
|
+
"name": "channel",
|
|
528
|
+
"type": "text",
|
|
529
|
+
"primaryKey": false,
|
|
530
|
+
"notNull": false,
|
|
531
|
+
"autoincrement": false
|
|
532
|
+
},
|
|
533
|
+
"sender": {
|
|
534
|
+
"name": "sender",
|
|
535
|
+
"type": "text",
|
|
536
|
+
"primaryKey": false,
|
|
537
|
+
"notNull": false,
|
|
538
|
+
"autoincrement": false
|
|
539
|
+
},
|
|
540
|
+
"status": {
|
|
541
|
+
"name": "status",
|
|
542
|
+
"type": "text",
|
|
543
|
+
"primaryKey": false,
|
|
544
|
+
"notNull": true,
|
|
545
|
+
"autoincrement": false,
|
|
546
|
+
"default": "'pending'"
|
|
547
|
+
},
|
|
548
|
+
"payload": {
|
|
549
|
+
"name": "payload",
|
|
550
|
+
"type": "text",
|
|
551
|
+
"primaryKey": false,
|
|
552
|
+
"notNull": true,
|
|
553
|
+
"autoincrement": false
|
|
554
|
+
},
|
|
555
|
+
"attempts": {
|
|
556
|
+
"name": "attempts",
|
|
557
|
+
"type": "integer",
|
|
558
|
+
"primaryKey": false,
|
|
559
|
+
"notNull": true,
|
|
560
|
+
"autoincrement": false,
|
|
561
|
+
"default": 0
|
|
562
|
+
},
|
|
563
|
+
"next_attempt_at": {
|
|
564
|
+
"name": "next_attempt_at",
|
|
565
|
+
"type": "text",
|
|
566
|
+
"primaryKey": false,
|
|
567
|
+
"notNull": false,
|
|
568
|
+
"autoincrement": false
|
|
569
|
+
},
|
|
570
|
+
"created_at": {
|
|
571
|
+
"name": "created_at",
|
|
572
|
+
"type": "text",
|
|
573
|
+
"primaryKey": false,
|
|
574
|
+
"notNull": true,
|
|
575
|
+
"autoincrement": false,
|
|
576
|
+
"default": "(datetime('now'))"
|
|
577
|
+
}
|
|
578
|
+
},
|
|
579
|
+
"indexes": {
|
|
580
|
+
"idx_delivery_queue_mind_thread": {
|
|
581
|
+
"name": "idx_delivery_queue_mind_thread",
|
|
582
|
+
"columns": ["mind", "thread"],
|
|
583
|
+
"isUnique": false
|
|
584
|
+
},
|
|
585
|
+
"idx_delivery_queue_mind_status": {
|
|
586
|
+
"name": "idx_delivery_queue_mind_status",
|
|
587
|
+
"columns": ["mind", "status"],
|
|
588
|
+
"isUnique": false
|
|
589
|
+
},
|
|
590
|
+
"idx_delivery_queue_status": {
|
|
591
|
+
"name": "idx_delivery_queue_status",
|
|
592
|
+
"columns": ["status"],
|
|
593
|
+
"isUnique": false
|
|
594
|
+
},
|
|
595
|
+
"idx_delivery_queue_status_next": {
|
|
596
|
+
"name": "idx_delivery_queue_status_next",
|
|
597
|
+
"columns": ["status", "next_attempt_at"],
|
|
598
|
+
"isUnique": false
|
|
599
|
+
}
|
|
600
|
+
},
|
|
601
|
+
"foreignKeys": {},
|
|
602
|
+
"compositePrimaryKeys": {},
|
|
603
|
+
"uniqueConstraints": {},
|
|
604
|
+
"checkConstraints": {}
|
|
605
|
+
},
|
|
606
|
+
"messages": {
|
|
607
|
+
"name": "messages",
|
|
608
|
+
"columns": {
|
|
609
|
+
"id": {
|
|
610
|
+
"name": "id",
|
|
611
|
+
"type": "integer",
|
|
612
|
+
"primaryKey": true,
|
|
613
|
+
"notNull": true,
|
|
614
|
+
"autoincrement": true
|
|
615
|
+
},
|
|
616
|
+
"conversation_id": {
|
|
617
|
+
"name": "conversation_id",
|
|
618
|
+
"type": "text",
|
|
619
|
+
"primaryKey": false,
|
|
620
|
+
"notNull": true,
|
|
621
|
+
"autoincrement": false
|
|
622
|
+
},
|
|
623
|
+
"role": {
|
|
624
|
+
"name": "role",
|
|
625
|
+
"type": "text",
|
|
626
|
+
"primaryKey": false,
|
|
627
|
+
"notNull": true,
|
|
628
|
+
"autoincrement": false
|
|
629
|
+
},
|
|
630
|
+
"sender_name": {
|
|
631
|
+
"name": "sender_name",
|
|
632
|
+
"type": "text",
|
|
633
|
+
"primaryKey": false,
|
|
634
|
+
"notNull": false,
|
|
635
|
+
"autoincrement": false
|
|
636
|
+
},
|
|
637
|
+
"content": {
|
|
638
|
+
"name": "content",
|
|
639
|
+
"type": "text",
|
|
640
|
+
"primaryKey": false,
|
|
641
|
+
"notNull": true,
|
|
642
|
+
"autoincrement": false
|
|
643
|
+
},
|
|
644
|
+
"source_event_id": {
|
|
645
|
+
"name": "source_event_id",
|
|
646
|
+
"type": "integer",
|
|
647
|
+
"primaryKey": false,
|
|
648
|
+
"notNull": false,
|
|
649
|
+
"autoincrement": false
|
|
650
|
+
},
|
|
651
|
+
"turn_id": {
|
|
652
|
+
"name": "turn_id",
|
|
653
|
+
"type": "text",
|
|
654
|
+
"primaryKey": false,
|
|
655
|
+
"notNull": false,
|
|
656
|
+
"autoincrement": false
|
|
657
|
+
},
|
|
658
|
+
"created_at": {
|
|
659
|
+
"name": "created_at",
|
|
660
|
+
"type": "text",
|
|
661
|
+
"primaryKey": false,
|
|
662
|
+
"notNull": true,
|
|
663
|
+
"autoincrement": false,
|
|
664
|
+
"default": "(datetime('now'))"
|
|
665
|
+
}
|
|
666
|
+
},
|
|
667
|
+
"indexes": {
|
|
668
|
+
"idx_messages_conversation_id": {
|
|
669
|
+
"name": "idx_messages_conversation_id",
|
|
670
|
+
"columns": ["conversation_id"],
|
|
671
|
+
"isUnique": false
|
|
672
|
+
},
|
|
673
|
+
"idx_messages_turn_id": {
|
|
674
|
+
"name": "idx_messages_turn_id",
|
|
675
|
+
"columns": ["turn_id"],
|
|
676
|
+
"isUnique": false
|
|
677
|
+
}
|
|
678
|
+
},
|
|
679
|
+
"foreignKeys": {
|
|
680
|
+
"messages_conversation_id_conversations_id_fk": {
|
|
681
|
+
"name": "messages_conversation_id_conversations_id_fk",
|
|
682
|
+
"tableFrom": "messages",
|
|
683
|
+
"tableTo": "conversations",
|
|
684
|
+
"columnsFrom": ["conversation_id"],
|
|
685
|
+
"columnsTo": ["id"],
|
|
686
|
+
"onDelete": "cascade",
|
|
687
|
+
"onUpdate": "no action"
|
|
688
|
+
}
|
|
689
|
+
},
|
|
690
|
+
"compositePrimaryKeys": {},
|
|
691
|
+
"uniqueConstraints": {},
|
|
692
|
+
"checkConstraints": {}
|
|
693
|
+
},
|
|
694
|
+
"mind_history": {
|
|
695
|
+
"name": "mind_history",
|
|
696
|
+
"columns": {
|
|
697
|
+
"id": {
|
|
698
|
+
"name": "id",
|
|
699
|
+
"type": "integer",
|
|
700
|
+
"primaryKey": true,
|
|
701
|
+
"notNull": true,
|
|
702
|
+
"autoincrement": true
|
|
703
|
+
},
|
|
704
|
+
"mind": {
|
|
705
|
+
"name": "mind",
|
|
706
|
+
"type": "text",
|
|
707
|
+
"primaryKey": false,
|
|
708
|
+
"notNull": true,
|
|
709
|
+
"autoincrement": false
|
|
710
|
+
},
|
|
711
|
+
"channel": {
|
|
712
|
+
"name": "channel",
|
|
713
|
+
"type": "text",
|
|
714
|
+
"primaryKey": false,
|
|
715
|
+
"notNull": false,
|
|
716
|
+
"autoincrement": false
|
|
717
|
+
},
|
|
718
|
+
"thread": {
|
|
719
|
+
"name": "thread",
|
|
720
|
+
"type": "text",
|
|
721
|
+
"primaryKey": false,
|
|
722
|
+
"notNull": false,
|
|
723
|
+
"autoincrement": false
|
|
724
|
+
},
|
|
725
|
+
"sender": {
|
|
726
|
+
"name": "sender",
|
|
727
|
+
"type": "text",
|
|
728
|
+
"primaryKey": false,
|
|
729
|
+
"notNull": false,
|
|
730
|
+
"autoincrement": false
|
|
731
|
+
},
|
|
732
|
+
"message_id": {
|
|
733
|
+
"name": "message_id",
|
|
734
|
+
"type": "text",
|
|
735
|
+
"primaryKey": false,
|
|
736
|
+
"notNull": false,
|
|
737
|
+
"autoincrement": false
|
|
738
|
+
},
|
|
739
|
+
"type": {
|
|
740
|
+
"name": "type",
|
|
741
|
+
"type": "text",
|
|
742
|
+
"primaryKey": false,
|
|
743
|
+
"notNull": true,
|
|
744
|
+
"autoincrement": false
|
|
745
|
+
},
|
|
746
|
+
"content": {
|
|
747
|
+
"name": "content",
|
|
748
|
+
"type": "text",
|
|
749
|
+
"primaryKey": false,
|
|
750
|
+
"notNull": false,
|
|
751
|
+
"autoincrement": false
|
|
752
|
+
},
|
|
753
|
+
"metadata": {
|
|
754
|
+
"name": "metadata",
|
|
755
|
+
"type": "text",
|
|
756
|
+
"primaryKey": false,
|
|
757
|
+
"notNull": false,
|
|
758
|
+
"autoincrement": false
|
|
759
|
+
},
|
|
760
|
+
"turn_id": {
|
|
761
|
+
"name": "turn_id",
|
|
762
|
+
"type": "text",
|
|
763
|
+
"primaryKey": false,
|
|
764
|
+
"notNull": false,
|
|
765
|
+
"autoincrement": false
|
|
766
|
+
},
|
|
767
|
+
"created_at": {
|
|
768
|
+
"name": "created_at",
|
|
769
|
+
"type": "text",
|
|
770
|
+
"primaryKey": false,
|
|
771
|
+
"notNull": true,
|
|
772
|
+
"autoincrement": false,
|
|
773
|
+
"default": "(datetime('now'))"
|
|
774
|
+
}
|
|
775
|
+
},
|
|
776
|
+
"indexes": {
|
|
777
|
+
"idx_mind_history_mind": {
|
|
778
|
+
"name": "idx_mind_history_mind",
|
|
779
|
+
"columns": ["mind"],
|
|
780
|
+
"isUnique": false
|
|
781
|
+
},
|
|
782
|
+
"idx_mind_history_mind_channel": {
|
|
783
|
+
"name": "idx_mind_history_mind_channel",
|
|
784
|
+
"columns": ["mind", "channel"],
|
|
785
|
+
"isUnique": false
|
|
786
|
+
},
|
|
787
|
+
"idx_mind_history_mind_type": {
|
|
788
|
+
"name": "idx_mind_history_mind_type",
|
|
789
|
+
"columns": ["mind", "type"],
|
|
790
|
+
"isUnique": false
|
|
791
|
+
},
|
|
792
|
+
"idx_mind_history_turn_id": {
|
|
793
|
+
"name": "idx_mind_history_turn_id",
|
|
794
|
+
"columns": ["turn_id"],
|
|
795
|
+
"isUnique": false
|
|
796
|
+
},
|
|
797
|
+
"idx_mind_history_thread": {
|
|
798
|
+
"name": "idx_mind_history_thread",
|
|
799
|
+
"columns": ["thread"],
|
|
800
|
+
"isUnique": false
|
|
801
|
+
},
|
|
802
|
+
"idx_mind_history_mind_created_at": {
|
|
803
|
+
"name": "idx_mind_history_mind_created_at",
|
|
804
|
+
"columns": ["mind", "created_at"],
|
|
805
|
+
"isUnique": false
|
|
806
|
+
}
|
|
807
|
+
},
|
|
808
|
+
"foreignKeys": {},
|
|
809
|
+
"compositePrimaryKeys": {},
|
|
810
|
+
"uniqueConstraints": {},
|
|
811
|
+
"checkConstraints": {}
|
|
812
|
+
},
|
|
813
|
+
"minds": {
|
|
814
|
+
"name": "minds",
|
|
815
|
+
"columns": {
|
|
816
|
+
"name": {
|
|
817
|
+
"name": "name",
|
|
818
|
+
"type": "text",
|
|
819
|
+
"primaryKey": true,
|
|
820
|
+
"notNull": true,
|
|
821
|
+
"autoincrement": false
|
|
822
|
+
},
|
|
823
|
+
"port": {
|
|
824
|
+
"name": "port",
|
|
825
|
+
"type": "integer",
|
|
826
|
+
"primaryKey": false,
|
|
827
|
+
"notNull": true,
|
|
828
|
+
"autoincrement": false
|
|
829
|
+
},
|
|
830
|
+
"parent": {
|
|
831
|
+
"name": "parent",
|
|
832
|
+
"type": "text",
|
|
833
|
+
"primaryKey": false,
|
|
834
|
+
"notNull": false,
|
|
835
|
+
"autoincrement": false
|
|
836
|
+
},
|
|
837
|
+
"dir": {
|
|
838
|
+
"name": "dir",
|
|
839
|
+
"type": "text",
|
|
840
|
+
"primaryKey": false,
|
|
841
|
+
"notNull": false,
|
|
842
|
+
"autoincrement": false
|
|
843
|
+
},
|
|
844
|
+
"branch": {
|
|
845
|
+
"name": "branch",
|
|
846
|
+
"type": "text",
|
|
847
|
+
"primaryKey": false,
|
|
848
|
+
"notNull": false,
|
|
849
|
+
"autoincrement": false
|
|
850
|
+
},
|
|
851
|
+
"stage": {
|
|
852
|
+
"name": "stage",
|
|
853
|
+
"type": "text",
|
|
854
|
+
"primaryKey": false,
|
|
855
|
+
"notNull": false,
|
|
856
|
+
"autoincrement": false
|
|
857
|
+
},
|
|
858
|
+
"purpose": {
|
|
859
|
+
"name": "purpose",
|
|
860
|
+
"type": "text",
|
|
861
|
+
"primaryKey": false,
|
|
862
|
+
"notNull": false,
|
|
863
|
+
"autoincrement": false
|
|
864
|
+
},
|
|
865
|
+
"template": {
|
|
866
|
+
"name": "template",
|
|
867
|
+
"type": "text",
|
|
868
|
+
"primaryKey": false,
|
|
869
|
+
"notNull": false,
|
|
870
|
+
"autoincrement": false
|
|
871
|
+
},
|
|
872
|
+
"template_hash": {
|
|
873
|
+
"name": "template_hash",
|
|
874
|
+
"type": "text",
|
|
875
|
+
"primaryKey": false,
|
|
876
|
+
"notNull": false,
|
|
877
|
+
"autoincrement": false
|
|
878
|
+
},
|
|
879
|
+
"running": {
|
|
880
|
+
"name": "running",
|
|
881
|
+
"type": "integer",
|
|
882
|
+
"primaryKey": false,
|
|
883
|
+
"notNull": true,
|
|
884
|
+
"autoincrement": false,
|
|
885
|
+
"default": 0
|
|
886
|
+
},
|
|
887
|
+
"mind_type": {
|
|
888
|
+
"name": "mind_type",
|
|
889
|
+
"type": "text",
|
|
890
|
+
"primaryKey": false,
|
|
891
|
+
"notNull": true,
|
|
892
|
+
"autoincrement": false,
|
|
893
|
+
"default": "'mind'"
|
|
894
|
+
},
|
|
895
|
+
"created_by": {
|
|
896
|
+
"name": "created_by",
|
|
897
|
+
"type": "text",
|
|
898
|
+
"primaryKey": false,
|
|
899
|
+
"notNull": false,
|
|
900
|
+
"autoincrement": false
|
|
901
|
+
},
|
|
902
|
+
"created_at": {
|
|
903
|
+
"name": "created_at",
|
|
904
|
+
"type": "text",
|
|
905
|
+
"primaryKey": false,
|
|
906
|
+
"notNull": true,
|
|
907
|
+
"autoincrement": false,
|
|
908
|
+
"default": "(datetime('now'))"
|
|
909
|
+
}
|
|
910
|
+
},
|
|
911
|
+
"indexes": {
|
|
912
|
+
"minds_port_unique": {
|
|
913
|
+
"name": "minds_port_unique",
|
|
914
|
+
"columns": ["port"],
|
|
915
|
+
"isUnique": true
|
|
916
|
+
},
|
|
917
|
+
"idx_minds_parent": {
|
|
918
|
+
"name": "idx_minds_parent",
|
|
919
|
+
"columns": ["parent"],
|
|
920
|
+
"isUnique": false
|
|
921
|
+
},
|
|
922
|
+
"idx_minds_mind_type": {
|
|
923
|
+
"name": "idx_minds_mind_type",
|
|
924
|
+
"columns": ["mind_type"],
|
|
925
|
+
"isUnique": false
|
|
926
|
+
}
|
|
927
|
+
},
|
|
928
|
+
"foreignKeys": {
|
|
929
|
+
"minds_parent_minds_name_fk": {
|
|
930
|
+
"name": "minds_parent_minds_name_fk",
|
|
931
|
+
"tableFrom": "minds",
|
|
932
|
+
"tableTo": "minds",
|
|
933
|
+
"columnsFrom": ["parent"],
|
|
934
|
+
"columnsTo": ["name"],
|
|
935
|
+
"onDelete": "cascade",
|
|
936
|
+
"onUpdate": "no action"
|
|
937
|
+
}
|
|
938
|
+
},
|
|
939
|
+
"compositePrimaryKeys": {},
|
|
940
|
+
"uniqueConstraints": {},
|
|
941
|
+
"checkConstraints": {}
|
|
942
|
+
},
|
|
943
|
+
"sessions": {
|
|
944
|
+
"name": "sessions",
|
|
945
|
+
"columns": {
|
|
946
|
+
"id": {
|
|
947
|
+
"name": "id",
|
|
948
|
+
"type": "text",
|
|
949
|
+
"primaryKey": true,
|
|
950
|
+
"notNull": true,
|
|
951
|
+
"autoincrement": false
|
|
952
|
+
},
|
|
953
|
+
"user_id": {
|
|
954
|
+
"name": "user_id",
|
|
955
|
+
"type": "integer",
|
|
956
|
+
"primaryKey": false,
|
|
957
|
+
"notNull": true,
|
|
958
|
+
"autoincrement": false
|
|
959
|
+
},
|
|
960
|
+
"created_at": {
|
|
961
|
+
"name": "created_at",
|
|
962
|
+
"type": "integer",
|
|
963
|
+
"primaryKey": false,
|
|
964
|
+
"notNull": true,
|
|
965
|
+
"autoincrement": false
|
|
966
|
+
}
|
|
967
|
+
},
|
|
968
|
+
"indexes": {},
|
|
969
|
+
"foreignKeys": {
|
|
970
|
+
"sessions_user_id_users_id_fk": {
|
|
971
|
+
"name": "sessions_user_id_users_id_fk",
|
|
972
|
+
"tableFrom": "sessions",
|
|
973
|
+
"tableTo": "users",
|
|
974
|
+
"columnsFrom": ["user_id"],
|
|
975
|
+
"columnsTo": ["id"],
|
|
976
|
+
"onDelete": "cascade",
|
|
977
|
+
"onUpdate": "no action"
|
|
978
|
+
}
|
|
979
|
+
},
|
|
980
|
+
"compositePrimaryKeys": {},
|
|
981
|
+
"uniqueConstraints": {},
|
|
982
|
+
"checkConstraints": {}
|
|
983
|
+
},
|
|
984
|
+
"shared_skills": {
|
|
985
|
+
"name": "shared_skills",
|
|
986
|
+
"columns": {
|
|
987
|
+
"id": {
|
|
988
|
+
"name": "id",
|
|
989
|
+
"type": "text",
|
|
990
|
+
"primaryKey": true,
|
|
991
|
+
"notNull": true,
|
|
992
|
+
"autoincrement": false
|
|
993
|
+
},
|
|
994
|
+
"name": {
|
|
995
|
+
"name": "name",
|
|
996
|
+
"type": "text",
|
|
997
|
+
"primaryKey": false,
|
|
998
|
+
"notNull": true,
|
|
999
|
+
"autoincrement": false
|
|
1000
|
+
},
|
|
1001
|
+
"description": {
|
|
1002
|
+
"name": "description",
|
|
1003
|
+
"type": "text",
|
|
1004
|
+
"primaryKey": false,
|
|
1005
|
+
"notNull": true,
|
|
1006
|
+
"autoincrement": false,
|
|
1007
|
+
"default": "''"
|
|
1008
|
+
},
|
|
1009
|
+
"author": {
|
|
1010
|
+
"name": "author",
|
|
1011
|
+
"type": "text",
|
|
1012
|
+
"primaryKey": false,
|
|
1013
|
+
"notNull": true,
|
|
1014
|
+
"autoincrement": false
|
|
1015
|
+
},
|
|
1016
|
+
"version": {
|
|
1017
|
+
"name": "version",
|
|
1018
|
+
"type": "integer",
|
|
1019
|
+
"primaryKey": false,
|
|
1020
|
+
"notNull": true,
|
|
1021
|
+
"autoincrement": false,
|
|
1022
|
+
"default": 1
|
|
1023
|
+
},
|
|
1024
|
+
"created_at": {
|
|
1025
|
+
"name": "created_at",
|
|
1026
|
+
"type": "text",
|
|
1027
|
+
"primaryKey": false,
|
|
1028
|
+
"notNull": true,
|
|
1029
|
+
"autoincrement": false,
|
|
1030
|
+
"default": "(datetime('now'))"
|
|
1031
|
+
},
|
|
1032
|
+
"updated_at": {
|
|
1033
|
+
"name": "updated_at",
|
|
1034
|
+
"type": "text",
|
|
1035
|
+
"primaryKey": false,
|
|
1036
|
+
"notNull": true,
|
|
1037
|
+
"autoincrement": false,
|
|
1038
|
+
"default": "(datetime('now'))"
|
|
1039
|
+
}
|
|
1040
|
+
},
|
|
1041
|
+
"indexes": {},
|
|
1042
|
+
"foreignKeys": {},
|
|
1043
|
+
"compositePrimaryKeys": {},
|
|
1044
|
+
"uniqueConstraints": {},
|
|
1045
|
+
"checkConstraints": {}
|
|
1046
|
+
},
|
|
1047
|
+
"summaries": {
|
|
1048
|
+
"name": "summaries",
|
|
1049
|
+
"columns": {
|
|
1050
|
+
"id": {
|
|
1051
|
+
"name": "id",
|
|
1052
|
+
"type": "integer",
|
|
1053
|
+
"primaryKey": true,
|
|
1054
|
+
"notNull": true,
|
|
1055
|
+
"autoincrement": true
|
|
1056
|
+
},
|
|
1057
|
+
"mind": {
|
|
1058
|
+
"name": "mind",
|
|
1059
|
+
"type": "text",
|
|
1060
|
+
"primaryKey": false,
|
|
1061
|
+
"notNull": true,
|
|
1062
|
+
"autoincrement": false
|
|
1063
|
+
},
|
|
1064
|
+
"period": {
|
|
1065
|
+
"name": "period",
|
|
1066
|
+
"type": "text",
|
|
1067
|
+
"primaryKey": false,
|
|
1068
|
+
"notNull": true,
|
|
1069
|
+
"autoincrement": false
|
|
1070
|
+
},
|
|
1071
|
+
"period_key": {
|
|
1072
|
+
"name": "period_key",
|
|
1073
|
+
"type": "text",
|
|
1074
|
+
"primaryKey": false,
|
|
1075
|
+
"notNull": true,
|
|
1076
|
+
"autoincrement": false
|
|
1077
|
+
},
|
|
1078
|
+
"content": {
|
|
1079
|
+
"name": "content",
|
|
1080
|
+
"type": "text",
|
|
1081
|
+
"primaryKey": false,
|
|
1082
|
+
"notNull": true,
|
|
1083
|
+
"autoincrement": false
|
|
1084
|
+
},
|
|
1085
|
+
"metadata": {
|
|
1086
|
+
"name": "metadata",
|
|
1087
|
+
"type": "text",
|
|
1088
|
+
"primaryKey": false,
|
|
1089
|
+
"notNull": false,
|
|
1090
|
+
"autoincrement": false
|
|
1091
|
+
},
|
|
1092
|
+
"created_at": {
|
|
1093
|
+
"name": "created_at",
|
|
1094
|
+
"type": "text",
|
|
1095
|
+
"primaryKey": false,
|
|
1096
|
+
"notNull": true,
|
|
1097
|
+
"autoincrement": false,
|
|
1098
|
+
"default": "(datetime('now'))"
|
|
1099
|
+
}
|
|
1100
|
+
},
|
|
1101
|
+
"indexes": {
|
|
1102
|
+
"idx_summaries_unique": {
|
|
1103
|
+
"name": "idx_summaries_unique",
|
|
1104
|
+
"columns": ["mind", "period", "period_key"],
|
|
1105
|
+
"isUnique": true
|
|
1106
|
+
},
|
|
1107
|
+
"idx_summaries_mind_period": {
|
|
1108
|
+
"name": "idx_summaries_mind_period",
|
|
1109
|
+
"columns": ["mind", "period"],
|
|
1110
|
+
"isUnique": false
|
|
1111
|
+
},
|
|
1112
|
+
"idx_summaries_mind_period_key": {
|
|
1113
|
+
"name": "idx_summaries_mind_period_key",
|
|
1114
|
+
"columns": ["mind", "period_key"],
|
|
1115
|
+
"isUnique": false
|
|
1116
|
+
}
|
|
1117
|
+
},
|
|
1118
|
+
"foreignKeys": {},
|
|
1119
|
+
"compositePrimaryKeys": {},
|
|
1120
|
+
"uniqueConstraints": {},
|
|
1121
|
+
"checkConstraints": {}
|
|
1122
|
+
},
|
|
1123
|
+
"system_events": {
|
|
1124
|
+
"name": "system_events",
|
|
1125
|
+
"columns": {
|
|
1126
|
+
"id": {
|
|
1127
|
+
"name": "id",
|
|
1128
|
+
"type": "integer",
|
|
1129
|
+
"primaryKey": true,
|
|
1130
|
+
"notNull": true,
|
|
1131
|
+
"autoincrement": true
|
|
1132
|
+
},
|
|
1133
|
+
"mind": {
|
|
1134
|
+
"name": "mind",
|
|
1135
|
+
"type": "text",
|
|
1136
|
+
"primaryKey": false,
|
|
1137
|
+
"notNull": true,
|
|
1138
|
+
"autoincrement": false
|
|
1139
|
+
},
|
|
1140
|
+
"type": {
|
|
1141
|
+
"name": "type",
|
|
1142
|
+
"type": "text",
|
|
1143
|
+
"primaryKey": false,
|
|
1144
|
+
"notNull": true,
|
|
1145
|
+
"autoincrement": false
|
|
1146
|
+
},
|
|
1147
|
+
"body": {
|
|
1148
|
+
"name": "body",
|
|
1149
|
+
"type": "text",
|
|
1150
|
+
"primaryKey": false,
|
|
1151
|
+
"notNull": true,
|
|
1152
|
+
"autoincrement": false
|
|
1153
|
+
},
|
|
1154
|
+
"meta": {
|
|
1155
|
+
"name": "meta",
|
|
1156
|
+
"type": "text",
|
|
1157
|
+
"primaryKey": false,
|
|
1158
|
+
"notNull": false,
|
|
1159
|
+
"autoincrement": false
|
|
1160
|
+
},
|
|
1161
|
+
"delivery": {
|
|
1162
|
+
"name": "delivery",
|
|
1163
|
+
"type": "text",
|
|
1164
|
+
"primaryKey": false,
|
|
1165
|
+
"notNull": true,
|
|
1166
|
+
"autoincrement": false,
|
|
1167
|
+
"default": "'immediate'"
|
|
1168
|
+
},
|
|
1169
|
+
"thread": {
|
|
1170
|
+
"name": "thread",
|
|
1171
|
+
"type": "text",
|
|
1172
|
+
"primaryKey": false,
|
|
1173
|
+
"notNull": true,
|
|
1174
|
+
"autoincrement": false,
|
|
1175
|
+
"default": "'main'"
|
|
1176
|
+
},
|
|
1177
|
+
"created_at": {
|
|
1178
|
+
"name": "created_at",
|
|
1179
|
+
"type": "text",
|
|
1180
|
+
"primaryKey": false,
|
|
1181
|
+
"notNull": true,
|
|
1182
|
+
"autoincrement": false,
|
|
1183
|
+
"default": "(datetime('now'))"
|
|
1184
|
+
},
|
|
1185
|
+
"delivered_at": {
|
|
1186
|
+
"name": "delivered_at",
|
|
1187
|
+
"type": "text",
|
|
1188
|
+
"primaryKey": false,
|
|
1189
|
+
"notNull": false,
|
|
1190
|
+
"autoincrement": false
|
|
1191
|
+
},
|
|
1192
|
+
"reflection": {
|
|
1193
|
+
"name": "reflection",
|
|
1194
|
+
"type": "text",
|
|
1195
|
+
"primaryKey": false,
|
|
1196
|
+
"notNull": false,
|
|
1197
|
+
"autoincrement": false
|
|
1198
|
+
}
|
|
1199
|
+
},
|
|
1200
|
+
"indexes": {
|
|
1201
|
+
"idx_system_events_mind": {
|
|
1202
|
+
"name": "idx_system_events_mind",
|
|
1203
|
+
"columns": ["mind"],
|
|
1204
|
+
"isUnique": false
|
|
1205
|
+
},
|
|
1206
|
+
"idx_system_events_mind_delivery": {
|
|
1207
|
+
"name": "idx_system_events_mind_delivery",
|
|
1208
|
+
"columns": ["mind", "delivery", "delivered_at"],
|
|
1209
|
+
"isUnique": false
|
|
1210
|
+
},
|
|
1211
|
+
"idx_system_events_mind_type": {
|
|
1212
|
+
"name": "idx_system_events_mind_type",
|
|
1213
|
+
"columns": ["mind", "type"],
|
|
1214
|
+
"isUnique": false
|
|
1215
|
+
}
|
|
1216
|
+
},
|
|
1217
|
+
"foreignKeys": {},
|
|
1218
|
+
"compositePrimaryKeys": {},
|
|
1219
|
+
"uniqueConstraints": {},
|
|
1220
|
+
"checkConstraints": {}
|
|
1221
|
+
},
|
|
1222
|
+
"system_prompts": {
|
|
1223
|
+
"name": "system_prompts",
|
|
1224
|
+
"columns": {
|
|
1225
|
+
"key": {
|
|
1226
|
+
"name": "key",
|
|
1227
|
+
"type": "text",
|
|
1228
|
+
"primaryKey": true,
|
|
1229
|
+
"notNull": true,
|
|
1230
|
+
"autoincrement": false
|
|
1231
|
+
},
|
|
1232
|
+
"content": {
|
|
1233
|
+
"name": "content",
|
|
1234
|
+
"type": "text",
|
|
1235
|
+
"primaryKey": false,
|
|
1236
|
+
"notNull": true,
|
|
1237
|
+
"autoincrement": false
|
|
1238
|
+
},
|
|
1239
|
+
"updated_at": {
|
|
1240
|
+
"name": "updated_at",
|
|
1241
|
+
"type": "text",
|
|
1242
|
+
"primaryKey": false,
|
|
1243
|
+
"notNull": true,
|
|
1244
|
+
"autoincrement": false,
|
|
1245
|
+
"default": "(datetime('now'))"
|
|
1246
|
+
}
|
|
1247
|
+
},
|
|
1248
|
+
"indexes": {},
|
|
1249
|
+
"foreignKeys": {},
|
|
1250
|
+
"compositePrimaryKeys": {},
|
|
1251
|
+
"uniqueConstraints": {},
|
|
1252
|
+
"checkConstraints": {}
|
|
1253
|
+
},
|
|
1254
|
+
"turns": {
|
|
1255
|
+
"name": "turns",
|
|
1256
|
+
"columns": {
|
|
1257
|
+
"id": {
|
|
1258
|
+
"name": "id",
|
|
1259
|
+
"type": "text",
|
|
1260
|
+
"primaryKey": true,
|
|
1261
|
+
"notNull": true,
|
|
1262
|
+
"autoincrement": false
|
|
1263
|
+
},
|
|
1264
|
+
"mind": {
|
|
1265
|
+
"name": "mind",
|
|
1266
|
+
"type": "text",
|
|
1267
|
+
"primaryKey": false,
|
|
1268
|
+
"notNull": true,
|
|
1269
|
+
"autoincrement": false
|
|
1270
|
+
},
|
|
1271
|
+
"thread": {
|
|
1272
|
+
"name": "thread",
|
|
1273
|
+
"type": "text",
|
|
1274
|
+
"primaryKey": false,
|
|
1275
|
+
"notNull": false,
|
|
1276
|
+
"autoincrement": false
|
|
1277
|
+
},
|
|
1278
|
+
"trigger_event_id": {
|
|
1279
|
+
"name": "trigger_event_id",
|
|
1280
|
+
"type": "integer",
|
|
1281
|
+
"primaryKey": false,
|
|
1282
|
+
"notNull": false,
|
|
1283
|
+
"autoincrement": false
|
|
1284
|
+
},
|
|
1285
|
+
"summary_id": {
|
|
1286
|
+
"name": "summary_id",
|
|
1287
|
+
"type": "integer",
|
|
1288
|
+
"primaryKey": false,
|
|
1289
|
+
"notNull": false,
|
|
1290
|
+
"autoincrement": false
|
|
1291
|
+
},
|
|
1292
|
+
"status": {
|
|
1293
|
+
"name": "status",
|
|
1294
|
+
"type": "text",
|
|
1295
|
+
"primaryKey": false,
|
|
1296
|
+
"notNull": true,
|
|
1297
|
+
"autoincrement": false,
|
|
1298
|
+
"default": "'active'"
|
|
1299
|
+
},
|
|
1300
|
+
"created_at": {
|
|
1301
|
+
"name": "created_at",
|
|
1302
|
+
"type": "text",
|
|
1303
|
+
"primaryKey": false,
|
|
1304
|
+
"notNull": true,
|
|
1305
|
+
"autoincrement": false,
|
|
1306
|
+
"default": "(datetime('now'))"
|
|
1307
|
+
}
|
|
1308
|
+
},
|
|
1309
|
+
"indexes": {
|
|
1310
|
+
"idx_turns_mind": {
|
|
1311
|
+
"name": "idx_turns_mind",
|
|
1312
|
+
"columns": ["mind"],
|
|
1313
|
+
"isUnique": false
|
|
1314
|
+
},
|
|
1315
|
+
"idx_turns_mind_status": {
|
|
1316
|
+
"name": "idx_turns_mind_status",
|
|
1317
|
+
"columns": ["mind", "status"],
|
|
1318
|
+
"isUnique": false
|
|
1319
|
+
},
|
|
1320
|
+
"idx_turns_mind_created_at": {
|
|
1321
|
+
"name": "idx_turns_mind_created_at",
|
|
1322
|
+
"columns": ["mind", "created_at"],
|
|
1323
|
+
"isUnique": false
|
|
1324
|
+
}
|
|
1325
|
+
},
|
|
1326
|
+
"foreignKeys": {},
|
|
1327
|
+
"compositePrimaryKeys": {},
|
|
1328
|
+
"uniqueConstraints": {},
|
|
1329
|
+
"checkConstraints": {}
|
|
1330
|
+
},
|
|
1331
|
+
"users": {
|
|
1332
|
+
"name": "users",
|
|
1333
|
+
"columns": {
|
|
1334
|
+
"id": {
|
|
1335
|
+
"name": "id",
|
|
1336
|
+
"type": "integer",
|
|
1337
|
+
"primaryKey": true,
|
|
1338
|
+
"notNull": true,
|
|
1339
|
+
"autoincrement": true
|
|
1340
|
+
},
|
|
1341
|
+
"username": {
|
|
1342
|
+
"name": "username",
|
|
1343
|
+
"type": "text",
|
|
1344
|
+
"primaryKey": false,
|
|
1345
|
+
"notNull": true,
|
|
1346
|
+
"autoincrement": false
|
|
1347
|
+
},
|
|
1348
|
+
"password_hash": {
|
|
1349
|
+
"name": "password_hash",
|
|
1350
|
+
"type": "text",
|
|
1351
|
+
"primaryKey": false,
|
|
1352
|
+
"notNull": true,
|
|
1353
|
+
"autoincrement": false
|
|
1354
|
+
},
|
|
1355
|
+
"role": {
|
|
1356
|
+
"name": "role",
|
|
1357
|
+
"type": "text",
|
|
1358
|
+
"primaryKey": false,
|
|
1359
|
+
"notNull": true,
|
|
1360
|
+
"autoincrement": false,
|
|
1361
|
+
"default": "'pending'"
|
|
1362
|
+
},
|
|
1363
|
+
"user_type": {
|
|
1364
|
+
"name": "user_type",
|
|
1365
|
+
"type": "text",
|
|
1366
|
+
"primaryKey": false,
|
|
1367
|
+
"notNull": true,
|
|
1368
|
+
"autoincrement": false,
|
|
1369
|
+
"default": "'human'"
|
|
1370
|
+
},
|
|
1371
|
+
"display_name": {
|
|
1372
|
+
"name": "display_name",
|
|
1373
|
+
"type": "text",
|
|
1374
|
+
"primaryKey": false,
|
|
1375
|
+
"notNull": false,
|
|
1376
|
+
"autoincrement": false
|
|
1377
|
+
},
|
|
1378
|
+
"description": {
|
|
1379
|
+
"name": "description",
|
|
1380
|
+
"type": "text",
|
|
1381
|
+
"primaryKey": false,
|
|
1382
|
+
"notNull": false,
|
|
1383
|
+
"autoincrement": false
|
|
1384
|
+
},
|
|
1385
|
+
"avatar": {
|
|
1386
|
+
"name": "avatar",
|
|
1387
|
+
"type": "text",
|
|
1388
|
+
"primaryKey": false,
|
|
1389
|
+
"notNull": false,
|
|
1390
|
+
"autoincrement": false
|
|
1391
|
+
},
|
|
1392
|
+
"created_at": {
|
|
1393
|
+
"name": "created_at",
|
|
1394
|
+
"type": "text",
|
|
1395
|
+
"primaryKey": false,
|
|
1396
|
+
"notNull": true,
|
|
1397
|
+
"autoincrement": false,
|
|
1398
|
+
"default": "(datetime('now'))"
|
|
1399
|
+
}
|
|
1400
|
+
},
|
|
1401
|
+
"indexes": {
|
|
1402
|
+
"users_username_unique": {
|
|
1403
|
+
"name": "users_username_unique",
|
|
1404
|
+
"columns": ["username"],
|
|
1405
|
+
"isUnique": true
|
|
1406
|
+
}
|
|
1407
|
+
},
|
|
1408
|
+
"foreignKeys": {},
|
|
1409
|
+
"compositePrimaryKeys": {},
|
|
1410
|
+
"uniqueConstraints": {},
|
|
1411
|
+
"checkConstraints": {}
|
|
1412
|
+
}
|
|
1413
|
+
},
|
|
1414
|
+
"views": {},
|
|
1415
|
+
"enums": {},
|
|
1416
|
+
"_meta": {
|
|
1417
|
+
"schemas": {},
|
|
1418
|
+
"tables": {},
|
|
1419
|
+
"columns": {}
|
|
1420
|
+
},
|
|
1421
|
+
"internal": {
|
|
1422
|
+
"indexes": {}
|
|
1423
|
+
}
|
|
7
1424
|
}
|