cognova 0.2.26 → 0.2.28

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.
Files changed (200) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/{CxNJcty6.js → -XfM4jpu.js} +1 -1
  3. package/.output/public/_nuxt/0L-9iIbm.js +1 -0
  4. package/.output/public/_nuxt/{RIAd5Wd1.js → 0mcDe5Hg.js} +1 -1
  5. package/.output/public/_nuxt/{DLfV22bF.js → 4Nlt-3Ix.js} +1 -1
  6. package/.output/public/_nuxt/{C_hl3kCw.js → 5FVMuLeh.js} +1 -1
  7. package/.output/public/_nuxt/{C4Ii8cYC.js → 5qkiDtwf.js} +1 -1
  8. package/.output/public/_nuxt/{n_Arasow.js → 6_fEEpaq.js} +1 -1
  9. package/.output/public/_nuxt/{BZjMzGZM.js → 944smzho.js} +1 -1
  10. package/.output/public/_nuxt/{C-tfM08H.js → B03oRqJe.js} +1 -1
  11. package/.output/public/_nuxt/{CGgHmnnS.js → B06CcGVK.js} +3 -3
  12. package/.output/public/_nuxt/{FmfogFAR.js → B0UpgYEt.js} +1 -1
  13. package/.output/public/_nuxt/{CcJ0pNID.js → B0YLhHra.js} +1 -1
  14. package/.output/public/_nuxt/B0v0agy0.js +1 -0
  15. package/.output/public/_nuxt/{DmGbOc_e.js → B1A26hhf.js} +1 -1
  16. package/.output/public/_nuxt/{B38X0n2w.js → B592hx40.js} +1 -1
  17. package/.output/public/_nuxt/B5l6QVGz.js +1 -0
  18. package/.output/public/_nuxt/{BD07a6OS.js → B6BF2w8r.js} +3 -3
  19. package/.output/public/_nuxt/{rY0W1r76.js → B6m5ExpJ.js} +2 -2
  20. package/.output/public/_nuxt/{iTZxBLAr.js → B91qlTSF.js} +3 -3
  21. package/.output/public/_nuxt/B9sXHKws.js +1 -0
  22. package/.output/public/_nuxt/{eB60bVen.js → BAh-k-y8.js} +1 -1
  23. package/.output/public/_nuxt/{wSCSxjgr.js → BDQ6hxO7.js} +1 -1
  24. package/.output/public/_nuxt/{DEmzTuCa.js → BGytjslk.js} +1 -1
  25. package/.output/public/_nuxt/{CZQeFnOf.js → BIoHE1oQ.js} +1 -1
  26. package/.output/public/_nuxt/{BHcVB9Fo.js → BNXyokAF.js} +1 -1
  27. package/.output/public/_nuxt/{Irw5CrIe.js → BNxg8OvE.js} +1 -1
  28. package/.output/public/_nuxt/{C1wI_STa.js → BPBLcBHM.js} +2 -2
  29. package/.output/public/_nuxt/{BGV4_re9.js → BQeDYnyj.js} +1 -1
  30. package/.output/public/_nuxt/{pJF5jz72.js → BUfJTKJk.js} +1 -1
  31. package/.output/public/_nuxt/{B27NM422.js → BVJkcOi4.js} +1 -1
  32. package/.output/public/_nuxt/{B8fLdQfp.js → BVNZYpXH.js} +1 -1
  33. package/.output/public/_nuxt/{Dc_VwXJs.js → BZ3u3Znq.js} +1 -1
  34. package/.output/public/_nuxt/{CjkXqgrT.js → B_V_KZmg.js} +1 -1
  35. package/.output/public/_nuxt/{DB0uzc_1.js → BaTcZylh.js} +1 -1
  36. package/.output/public/_nuxt/{zvDhkxQS.js → BbdFZa4U.js} +1 -1
  37. package/.output/public/_nuxt/{DmHn_Ae8.js → BeAxkmtt.js} +1 -1
  38. package/.output/public/_nuxt/{CruI_TS3.js → BfiU8B4M.js} +1 -1
  39. package/.output/public/_nuxt/{DuH9QzIG.js → BhOf69HZ.js} +1 -1
  40. package/.output/public/_nuxt/{lfg-J79K.js → BlKgmZLh.js} +1 -1
  41. package/.output/public/_nuxt/{Cfce_cVw.js → BlplwzgB.js} +1 -1
  42. package/.output/public/_nuxt/{D5IKvGig.js → BnmZcuhY.js} +1 -1
  43. package/.output/public/_nuxt/{DfAWgXhg.js → BpExBTyC.js} +1 -1
  44. package/.output/public/_nuxt/{DIMnGgEU.js → BuURpKT4.js} +1 -1
  45. package/.output/public/_nuxt/{B5oEzB-M.js → Bvqgc_wA.js} +1 -1
  46. package/.output/public/_nuxt/{Dfi2mj_-.js → C0FuVjdX.js} +1 -1
  47. package/.output/public/_nuxt/{QNqSZCYh.js → C1RFLzd_.js} +1 -1
  48. package/.output/public/_nuxt/{DMCE1Up6.js → C4MrxKnP.js} +1 -1
  49. package/.output/public/_nuxt/{D5AjrkGO.js → C4ui9LWq.js} +1 -1
  50. package/.output/public/_nuxt/{iVfmia7K.js → C7RIYfkH.js} +1 -1
  51. package/.output/public/_nuxt/{D4wS6gzr.js → C7hn68Tp.js} +1 -1
  52. package/.output/public/_nuxt/{BHAaeL5L.js → C8gC5cUj.js} +1 -1
  53. package/.output/public/_nuxt/{CBJQYyqD.js → CAJH0xMY.js} +1 -1
  54. package/.output/public/_nuxt/{Bk_mzzQ3.js → CBpuaar1.js} +1 -1
  55. package/.output/public/_nuxt/{m9zGH_2s.js → CDP4J5em.js} +1 -1
  56. package/.output/public/_nuxt/{NNQizITf.js → CGTQGJ_c.js} +1 -1
  57. package/.output/public/_nuxt/{Ehiy7Wkv.js → CHd8mdNy.js} +1 -1
  58. package/.output/public/_nuxt/{BtVAOj3K.js → CHn6tbtE.js} +1 -1
  59. package/.output/public/_nuxt/{B1ea1Zc2.js → CKfAI3Hb.js} +1 -1
  60. package/.output/public/_nuxt/{CbLvLXmb.js → CLm_rHHY.js} +1 -1
  61. package/.output/public/_nuxt/{DFPu4h4a.js → CLzxl_Kg.js} +1 -1
  62. package/.output/public/_nuxt/{C3dJrgZH.js → CNVj60PG.js} +1 -1
  63. package/.output/public/_nuxt/{VRRYjCaC.js → CNi_mvQS.js} +1 -1
  64. package/.output/public/_nuxt/{46eRQaVv.js → COMJZX17.js} +1 -1
  65. package/.output/public/_nuxt/{Brmj91Ns.js → CQcJNYmv.js} +1 -1
  66. package/.output/public/_nuxt/{BMTKvzsm.js → CT8T1FW9.js} +1 -1
  67. package/.output/public/_nuxt/{B02JOKtW.js → CTJDAjdO.js} +1 -1
  68. package/.output/public/_nuxt/{w3RSHXA6.js → CTXxmwx3.js} +1 -1
  69. package/.output/public/_nuxt/{CIMG8oEU.js → CV92g0qz.js} +1 -1
  70. package/.output/public/_nuxt/{DEBOaUgW.js → CVwzer_Y.js} +1 -1
  71. package/.output/public/_nuxt/{6k0gxaWW.js → CXRkSVkD.js} +1 -1
  72. package/.output/public/_nuxt/{C7Wu2u5C.js → CamCmKfq.js} +1 -1
  73. package/.output/public/_nuxt/{DM9s28TO.js → CaohnGAD.js} +1 -1
  74. package/.output/public/_nuxt/{BqyI8nU4.js → Cg8k3_b4.js} +1 -1
  75. package/.output/public/_nuxt/{rVZcJ6Pz.js → CiQJYbKL.js} +1 -1
  76. package/.output/public/_nuxt/{Co86ycpI.js → Cjj-eCEV.js} +1 -1
  77. package/.output/public/_nuxt/{B3TXSB_R.js → CkfP4uja.js} +1 -1
  78. package/.output/public/_nuxt/{81-iumfM.js → CoUQ3qpL.js} +1 -1
  79. package/.output/public/_nuxt/{CPb6IrVT.js → CopZwjN8.js} +1 -1
  80. package/.output/public/_nuxt/{FGRiZ9J1.js → Cpyrc9BG.js} +1 -1
  81. package/.output/public/_nuxt/{6DKJrPTD.js → CtLfbSRS.js} +1 -1
  82. package/.output/public/_nuxt/{CVTUqEcr.js → CtyKXJ-J.js} +1 -1
  83. package/.output/public/_nuxt/{By5L5Smf.js → CvaD7s2l.js} +1 -1
  84. package/.output/public/_nuxt/{QmdcFt0E.js → Cw2TcJMF.js} +1 -1
  85. package/.output/public/_nuxt/{ByXbV9Xa.js → Cwel2ykQ.js} +1 -1
  86. package/.output/public/_nuxt/{CLmiWiqr.js → CyZlzytZ.js} +1 -1
  87. package/.output/public/_nuxt/{DXAD_aZW.js → Cygjd4rF.js} +1 -1
  88. package/.output/public/_nuxt/{DoSrePUc.js → CzxGRepV.js} +1 -1
  89. package/.output/public/_nuxt/{Dkpxacka.js → D0fJg-Y2.js} +1 -1
  90. package/.output/public/_nuxt/{BW-7wimi.js → D12yGpMq.js} +1 -1
  91. package/.output/public/_nuxt/{uCsI7fpg.js → D7Bxfxio.js} +1 -1
  92. package/.output/public/_nuxt/{D_1GDAlv.js → DEl5RR7R.js} +1 -1
  93. package/.output/public/_nuxt/{3hFj0Mf_.js → DFVXHy0C.js} +1 -1
  94. package/.output/public/_nuxt/{7msxmF5v.js → DFW8HOVB.js} +1 -1
  95. package/.output/public/_nuxt/{CD6r4z4e.js → DH2yWNbZ.js} +1 -1
  96. package/.output/public/_nuxt/{AMPsjNHJ.js → DIDjR8Ry.js} +1 -1
  97. package/.output/public/_nuxt/{B8na0pik.js → DKHJBr2m.js} +1 -1
  98. package/.output/public/_nuxt/{CDKJK4wW.js → DKd2_wBj.js} +1 -1
  99. package/.output/public/_nuxt/{CD_jDSWh.js → DKrd1pCW.js} +1 -1
  100. package/.output/public/_nuxt/{gTGPvkTX.js → DOcEwtqN.js} +1 -1
  101. package/.output/public/_nuxt/{B0_Iu2zi.js → DSQ9bpNJ.js} +1 -1
  102. package/.output/public/_nuxt/{BigIAhcT.js → DWG9jKCo.js} +1 -1
  103. package/.output/public/_nuxt/{Cj3gDP-y.js → DY78sr_b.js} +1 -1
  104. package/.output/public/_nuxt/{Cwdn7ZtG.js → DZQxxfue.js} +1 -1
  105. package/.output/public/_nuxt/{DN5cHXGS.js → DZpgj5sA.js} +1 -1
  106. package/.output/public/_nuxt/{CZ5B974o.js → Dc8vLBQN.js} +1 -1
  107. package/.output/public/_nuxt/{9vdFTPZC.js → DcT64MxD.js} +1 -1
  108. package/.output/public/_nuxt/{BwLYFg9w.js → DdmLHNRP.js} +1 -1
  109. package/.output/public/_nuxt/{Bn175bDC.js → Dg19_qAK.js} +1 -1
  110. package/.output/public/_nuxt/{BTImkTzA.js → DhIZvLeI.js} +1 -1
  111. package/.output/public/_nuxt/{DOTIy97K.js → DjaEQQhf.js} +1 -1
  112. package/.output/public/_nuxt/{CJLlvuDm.js → DkUMlRf8.js} +1 -1
  113. package/.output/public/_nuxt/{BTs0cu3F.js → DkjKiJOq.js} +1 -1
  114. package/.output/public/_nuxt/{CIDjuJ7I.js → DlR5hUi3.js} +1 -1
  115. package/.output/public/_nuxt/{P3qGksT8.js → DnfG5RzJ.js} +1 -1
  116. package/.output/public/_nuxt/{DOs_ozN6.js → DohhIeRk.js} +1 -1
  117. package/.output/public/_nuxt/{lA6pb86B.js → Dom1vIen.js} +1 -1
  118. package/.output/public/_nuxt/{BGa5KqPj.js → Ds97nj0P.js} +1 -1
  119. package/.output/public/_nuxt/{v-LIF5tR.js → DxT3YmAC.js} +1 -1
  120. package/.output/public/_nuxt/{UQIfAAmf.js → DxcN7Uv7.js} +1 -1
  121. package/.output/public/_nuxt/{qI8JV5dU.js → DxcbYcrE.js} +1 -1
  122. package/.output/public/_nuxt/{DfP6jcEM.js → DyVUuE07.js} +1 -1
  123. package/.output/public/_nuxt/{DoGLYOlq.js → Dz-vwDzE.js} +1 -1
  124. package/.output/public/_nuxt/{CrHLmWKE.js → EeCE4NvG.js} +1 -1
  125. package/.output/public/_nuxt/{BVkPh7-9.js → EnGykH_X.js} +1 -1
  126. package/.output/public/_nuxt/{By6urPVf.js → GJMyZaby.js} +1 -1
  127. package/.output/public/_nuxt/{mLs_Q7_U.js → I7OHJVxg.js} +1 -1
  128. package/.output/public/_nuxt/{bHsFNLQP.js → K0RZW9fp.js} +1 -1
  129. package/.output/public/_nuxt/{CSyssKl8.js → K1o4brLx.js} +1 -1
  130. package/.output/public/_nuxt/{CZvTOsiz.js → OKVQJ7yj.js} +1 -1
  131. package/.output/public/_nuxt/{3AgfIirx.js → Q3QJAuZ2.js} +1 -1
  132. package/.output/public/_nuxt/{D57E8FC4.js → Tirj2rC0.js} +1 -1
  133. package/.output/public/_nuxt/{BVcLiEDk.js → VcsszHDj.js} +1 -1
  134. package/.output/public/_nuxt/WG3LXN-9.js +1 -0
  135. package/.output/public/_nuxt/{CCmSsj4q.js → aUYaYlYl.js} +1 -1
  136. package/.output/public/_nuxt/builds/latest.json +1 -1
  137. package/.output/public/_nuxt/builds/meta/7de5e0df-2e0a-435c-a2e3-fc2312beb6ad.json +1 -0
  138. package/.output/public/_nuxt/{swgNRlWy.js → cGEbEAGz.js} +1 -1
  139. package/.output/public/_nuxt/{BaHB7JKe.js → ds0WOZHj.js} +1 -1
  140. package/.output/public/_nuxt/{IIvTjJqa.js → e4zQkzJm.js} +1 -1
  141. package/.output/public/_nuxt/{D45gWhSU.js → eFu2sWbl.js} +1 -1
  142. package/.output/public/_nuxt/entry.B0qcqYYu.css +1 -0
  143. package/.output/public/_nuxt/{ChIzYvpz.js → ggWK6BEa.js} +1 -1
  144. package/.output/public/_nuxt/{pFPRVtL-.js → hkCaWCzP.js} +1 -1
  145. package/.output/public/_nuxt/{BW0bq0Nu.js → jF9FNyOl.js} +1 -1
  146. package/.output/public/_nuxt/{CjVBL0o-.js → jenjyHml.js} +1 -1
  147. package/.output/public/_nuxt/{CtNN2F57.js → kMwuhvCf.js} +1 -1
  148. package/.output/public/_nuxt/{1_nO5SO6.js → oWO88tvt.js} +1 -1
  149. package/.output/public/_nuxt/{d85YwuyC.js → olSL1K5t.js} +1 -1
  150. package/.output/public/_nuxt/{DwEfItxe.js → ptAR8AWT.js} +1 -1
  151. package/.output/public/_nuxt/{Dbv2gAYq.js → rTscsMvH.js} +1 -1
  152. package/.output/public/_nuxt/{Bxs6RCfp.js → xooRr3tW.js} +1 -1
  153. package/.output/public/_nuxt/{n5X4vNX9.js → zApTn6EM.js} +2 -2
  154. package/.output/server/chunks/build/client.precomputed.mjs +1 -1
  155. package/.output/server/chunks/build/{memories-BqA719O1.mjs → memories-DLa6uEfV.mjs} +2 -31
  156. package/.output/server/chunks/build/memories-DLa6uEfV.mjs.map +1 -0
  157. package/.output/server/chunks/build/server.mjs +1 -1
  158. package/.output/server/chunks/nitro/nitro.mjs +944 -922
  159. package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
  160. package/.output/server/chunks/routes/{terminal.mjs → _ws/terminal.mjs} +39 -28
  161. package/.output/server/chunks/routes/_ws/terminal.mjs.map +1 -0
  162. package/.output/server/chunks/routes/api/memory/context.get.mjs +13 -9
  163. package/.output/server/chunks/routes/api/memory/context.get.mjs.map +1 -1
  164. package/.output/server/chunks/routes/api/memory/extract.post.mjs +4 -7
  165. package/.output/server/chunks/routes/api/memory/extract.post.mjs.map +1 -1
  166. package/.output/server/chunks/routes/api/memory/search.get.mjs +22 -25
  167. package/.output/server/chunks/routes/api/memory/search.get.mjs.map +1 -1
  168. package/.output/server/chunks/routes/api/memory/store.post.mjs +1 -3
  169. package/.output/server/chunks/routes/api/memory/store.post.mjs.map +1 -1
  170. package/.output/server/chunks/routes/notifications.mjs +1 -1
  171. package/.output/server/package.json +1 -1
  172. package/Claude/skills/memory/memory.py +1 -7
  173. package/app/composables/useTerminal.ts +1 -1
  174. package/app/pages/memories.vue +0 -15
  175. package/dist/cli/index.js +1 -0
  176. package/package.json +1 -1
  177. package/server/api/memory/context.get.ts +19 -15
  178. package/server/api/memory/extract.post.ts +1 -2
  179. package/server/api/memory/search.get.ts +29 -34
  180. package/server/api/memory/store.post.ts +1 -2
  181. package/server/bridge/responder.ts +10 -5
  182. package/server/db/schema.ts +1 -2
  183. package/server/drizzle/migrations/0017_unusual_landau.sql +1 -0
  184. package/server/drizzle/migrations/meta/0017_snapshot.json +1965 -0
  185. package/server/drizzle/migrations/meta/_journal.json +7 -0
  186. package/server/routes/_ws/terminal.ts +111 -0
  187. package/server/services/memory-extractor.ts +3 -6
  188. package/server/utils/document-sync.ts +27 -20
  189. package/server/utils/pty-manager.ts +12 -3
  190. package/shared/types/index.ts +1 -4
  191. package/.output/public/_nuxt/BhtKu4xV.js +0 -1
  192. package/.output/public/_nuxt/CNB4wNeh.js +0 -1
  193. package/.output/public/_nuxt/CnB-ybCZ.js +0 -1
  194. package/.output/public/_nuxt/DAjV9Cip.js +0 -1
  195. package/.output/public/_nuxt/Suor9Vto.js +0 -1
  196. package/.output/public/_nuxt/builds/meta/d37c41da-8cec-4479-a3ac-3097aa4fb2e0.json +0 -1
  197. package/.output/public/_nuxt/entry.ZJxWCrU6.css +0 -1
  198. package/.output/server/chunks/build/memories-BqA719O1.mjs.map +0 -1
  199. package/.output/server/chunks/routes/terminal.mjs.map +0 -1
  200. package/server/routes/terminal.ts +0 -98
@@ -0,0 +1,1965 @@
1
+ {
2
+ "id": "1e93e20c-f66a-4bb5-9cde-085632145023",
3
+ "prevId": "459e61ff-a395-4a9c-9e9a-eb617249e3de",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.account": {
8
+ "name": "account",
9
+ "schema": "",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "text",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "user_id": {
18
+ "name": "user_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "account_id": {
24
+ "name": "account_id",
25
+ "type": "text",
26
+ "primaryKey": false,
27
+ "notNull": true
28
+ },
29
+ "provider_id": {
30
+ "name": "provider_id",
31
+ "type": "text",
32
+ "primaryKey": false,
33
+ "notNull": true
34
+ },
35
+ "access_token": {
36
+ "name": "access_token",
37
+ "type": "text",
38
+ "primaryKey": false,
39
+ "notNull": false
40
+ },
41
+ "refresh_token": {
42
+ "name": "refresh_token",
43
+ "type": "text",
44
+ "primaryKey": false,
45
+ "notNull": false
46
+ },
47
+ "access_token_expires_at": {
48
+ "name": "access_token_expires_at",
49
+ "type": "timestamp with time zone",
50
+ "primaryKey": false,
51
+ "notNull": false
52
+ },
53
+ "refresh_token_expires_at": {
54
+ "name": "refresh_token_expires_at",
55
+ "type": "timestamp with time zone",
56
+ "primaryKey": false,
57
+ "notNull": false
58
+ },
59
+ "scope": {
60
+ "name": "scope",
61
+ "type": "text",
62
+ "primaryKey": false,
63
+ "notNull": false
64
+ },
65
+ "id_token": {
66
+ "name": "id_token",
67
+ "type": "text",
68
+ "primaryKey": false,
69
+ "notNull": false
70
+ },
71
+ "password": {
72
+ "name": "password",
73
+ "type": "text",
74
+ "primaryKey": false,
75
+ "notNull": false
76
+ },
77
+ "created_at": {
78
+ "name": "created_at",
79
+ "type": "timestamp with time zone",
80
+ "primaryKey": false,
81
+ "notNull": true,
82
+ "default": "now()"
83
+ },
84
+ "updated_at": {
85
+ "name": "updated_at",
86
+ "type": "timestamp with time zone",
87
+ "primaryKey": false,
88
+ "notNull": true,
89
+ "default": "now()"
90
+ }
91
+ },
92
+ "indexes": {},
93
+ "foreignKeys": {
94
+ "account_user_id_user_id_fk": {
95
+ "name": "account_user_id_user_id_fk",
96
+ "tableFrom": "account",
97
+ "tableTo": "user",
98
+ "columnsFrom": [
99
+ "user_id"
100
+ ],
101
+ "columnsTo": [
102
+ "id"
103
+ ],
104
+ "onDelete": "cascade",
105
+ "onUpdate": "no action"
106
+ }
107
+ },
108
+ "compositePrimaryKeys": {},
109
+ "uniqueConstraints": {},
110
+ "policies": {},
111
+ "checkConstraints": {},
112
+ "isRLSEnabled": false
113
+ },
114
+ "public.bridge_messages": {
115
+ "name": "bridge_messages",
116
+ "schema": "",
117
+ "columns": {
118
+ "id": {
119
+ "name": "id",
120
+ "type": "uuid",
121
+ "primaryKey": true,
122
+ "notNull": true,
123
+ "default": "gen_random_uuid()"
124
+ },
125
+ "bridge_id": {
126
+ "name": "bridge_id",
127
+ "type": "uuid",
128
+ "primaryKey": false,
129
+ "notNull": true
130
+ },
131
+ "direction": {
132
+ "name": "direction",
133
+ "type": "text",
134
+ "primaryKey": false,
135
+ "notNull": true
136
+ },
137
+ "platform": {
138
+ "name": "platform",
139
+ "type": "text",
140
+ "primaryKey": false,
141
+ "notNull": true
142
+ },
143
+ "sender": {
144
+ "name": "sender",
145
+ "type": "text",
146
+ "primaryKey": false,
147
+ "notNull": false
148
+ },
149
+ "sender_name": {
150
+ "name": "sender_name",
151
+ "type": "text",
152
+ "primaryKey": false,
153
+ "notNull": false
154
+ },
155
+ "content": {
156
+ "name": "content",
157
+ "type": "text",
158
+ "primaryKey": false,
159
+ "notNull": true
160
+ },
161
+ "attachments": {
162
+ "name": "attachments",
163
+ "type": "text",
164
+ "primaryKey": false,
165
+ "notNull": false
166
+ },
167
+ "platform_message_id": {
168
+ "name": "platform_message_id",
169
+ "type": "text",
170
+ "primaryKey": false,
171
+ "notNull": false
172
+ },
173
+ "conversation_id": {
174
+ "name": "conversation_id",
175
+ "type": "uuid",
176
+ "primaryKey": false,
177
+ "notNull": false
178
+ },
179
+ "status": {
180
+ "name": "status",
181
+ "type": "text",
182
+ "primaryKey": false,
183
+ "notNull": true,
184
+ "default": "'pending'"
185
+ },
186
+ "attempts": {
187
+ "name": "attempts",
188
+ "type": "integer",
189
+ "primaryKey": false,
190
+ "notNull": true,
191
+ "default": 0
192
+ },
193
+ "last_error": {
194
+ "name": "last_error",
195
+ "type": "text",
196
+ "primaryKey": false,
197
+ "notNull": false
198
+ },
199
+ "created_at": {
200
+ "name": "created_at",
201
+ "type": "timestamp with time zone",
202
+ "primaryKey": false,
203
+ "notNull": true,
204
+ "default": "now()"
205
+ },
206
+ "sent_at": {
207
+ "name": "sent_at",
208
+ "type": "timestamp with time zone",
209
+ "primaryKey": false,
210
+ "notNull": false
211
+ }
212
+ },
213
+ "indexes": {},
214
+ "foreignKeys": {
215
+ "bridge_messages_bridge_id_bridges_id_fk": {
216
+ "name": "bridge_messages_bridge_id_bridges_id_fk",
217
+ "tableFrom": "bridge_messages",
218
+ "tableTo": "bridges",
219
+ "columnsFrom": [
220
+ "bridge_id"
221
+ ],
222
+ "columnsTo": [
223
+ "id"
224
+ ],
225
+ "onDelete": "cascade",
226
+ "onUpdate": "no action"
227
+ },
228
+ "bridge_messages_conversation_id_conversations_id_fk": {
229
+ "name": "bridge_messages_conversation_id_conversations_id_fk",
230
+ "tableFrom": "bridge_messages",
231
+ "tableTo": "conversations",
232
+ "columnsFrom": [
233
+ "conversation_id"
234
+ ],
235
+ "columnsTo": [
236
+ "id"
237
+ ],
238
+ "onDelete": "set null",
239
+ "onUpdate": "no action"
240
+ }
241
+ },
242
+ "compositePrimaryKeys": {},
243
+ "uniqueConstraints": {},
244
+ "policies": {},
245
+ "checkConstraints": {},
246
+ "isRLSEnabled": false
247
+ },
248
+ "public.bridges": {
249
+ "name": "bridges",
250
+ "schema": "",
251
+ "columns": {
252
+ "id": {
253
+ "name": "id",
254
+ "type": "uuid",
255
+ "primaryKey": true,
256
+ "notNull": true,
257
+ "default": "gen_random_uuid()"
258
+ },
259
+ "platform": {
260
+ "name": "platform",
261
+ "type": "text",
262
+ "primaryKey": false,
263
+ "notNull": true
264
+ },
265
+ "name": {
266
+ "name": "name",
267
+ "type": "text",
268
+ "primaryKey": false,
269
+ "notNull": true
270
+ },
271
+ "enabled": {
272
+ "name": "enabled",
273
+ "type": "boolean",
274
+ "primaryKey": false,
275
+ "notNull": true,
276
+ "default": false
277
+ },
278
+ "config": {
279
+ "name": "config",
280
+ "type": "text",
281
+ "primaryKey": false,
282
+ "notNull": false
283
+ },
284
+ "secret_keys": {
285
+ "name": "secret_keys",
286
+ "type": "text[]",
287
+ "primaryKey": false,
288
+ "notNull": false,
289
+ "default": "'{}'"
290
+ },
291
+ "health_status": {
292
+ "name": "health_status",
293
+ "type": "text",
294
+ "primaryKey": false,
295
+ "notNull": true,
296
+ "default": "'unconfigured'"
297
+ },
298
+ "health_message": {
299
+ "name": "health_message",
300
+ "type": "text",
301
+ "primaryKey": false,
302
+ "notNull": false
303
+ },
304
+ "last_health_check": {
305
+ "name": "last_health_check",
306
+ "type": "timestamp with time zone",
307
+ "primaryKey": false,
308
+ "notNull": false
309
+ },
310
+ "created_at": {
311
+ "name": "created_at",
312
+ "type": "timestamp with time zone",
313
+ "primaryKey": false,
314
+ "notNull": true,
315
+ "default": "now()"
316
+ },
317
+ "updated_at": {
318
+ "name": "updated_at",
319
+ "type": "timestamp with time zone",
320
+ "primaryKey": false,
321
+ "notNull": true,
322
+ "default": "now()"
323
+ },
324
+ "created_by": {
325
+ "name": "created_by",
326
+ "type": "text",
327
+ "primaryKey": false,
328
+ "notNull": false
329
+ }
330
+ },
331
+ "indexes": {},
332
+ "foreignKeys": {
333
+ "bridges_created_by_user_id_fk": {
334
+ "name": "bridges_created_by_user_id_fk",
335
+ "tableFrom": "bridges",
336
+ "tableTo": "user",
337
+ "columnsFrom": [
338
+ "created_by"
339
+ ],
340
+ "columnsTo": [
341
+ "id"
342
+ ],
343
+ "onDelete": "set null",
344
+ "onUpdate": "no action"
345
+ }
346
+ },
347
+ "compositePrimaryKeys": {},
348
+ "uniqueConstraints": {},
349
+ "policies": {},
350
+ "checkConstraints": {},
351
+ "isRLSEnabled": false
352
+ },
353
+ "public.conversation_messages": {
354
+ "name": "conversation_messages",
355
+ "schema": "",
356
+ "columns": {
357
+ "id": {
358
+ "name": "id",
359
+ "type": "uuid",
360
+ "primaryKey": true,
361
+ "notNull": true,
362
+ "default": "gen_random_uuid()"
363
+ },
364
+ "conversation_id": {
365
+ "name": "conversation_id",
366
+ "type": "uuid",
367
+ "primaryKey": false,
368
+ "notNull": true
369
+ },
370
+ "role": {
371
+ "name": "role",
372
+ "type": "text",
373
+ "primaryKey": false,
374
+ "notNull": true
375
+ },
376
+ "content": {
377
+ "name": "content",
378
+ "type": "text",
379
+ "primaryKey": false,
380
+ "notNull": true
381
+ },
382
+ "source": {
383
+ "name": "source",
384
+ "type": "text",
385
+ "primaryKey": false,
386
+ "notNull": false
387
+ },
388
+ "cost_usd": {
389
+ "name": "cost_usd",
390
+ "type": "real",
391
+ "primaryKey": false,
392
+ "notNull": false
393
+ },
394
+ "duration_ms": {
395
+ "name": "duration_ms",
396
+ "type": "integer",
397
+ "primaryKey": false,
398
+ "notNull": false
399
+ },
400
+ "created_at": {
401
+ "name": "created_at",
402
+ "type": "timestamp with time zone",
403
+ "primaryKey": false,
404
+ "notNull": true,
405
+ "default": "now()"
406
+ }
407
+ },
408
+ "indexes": {},
409
+ "foreignKeys": {
410
+ "conversation_messages_conversation_id_conversations_id_fk": {
411
+ "name": "conversation_messages_conversation_id_conversations_id_fk",
412
+ "tableFrom": "conversation_messages",
413
+ "tableTo": "conversations",
414
+ "columnsFrom": [
415
+ "conversation_id"
416
+ ],
417
+ "columnsTo": [
418
+ "id"
419
+ ],
420
+ "onDelete": "cascade",
421
+ "onUpdate": "no action"
422
+ }
423
+ },
424
+ "compositePrimaryKeys": {},
425
+ "uniqueConstraints": {},
426
+ "policies": {},
427
+ "checkConstraints": {},
428
+ "isRLSEnabled": false
429
+ },
430
+ "public.conversations": {
431
+ "name": "conversations",
432
+ "schema": "",
433
+ "columns": {
434
+ "id": {
435
+ "name": "id",
436
+ "type": "uuid",
437
+ "primaryKey": true,
438
+ "notNull": true,
439
+ "default": "gen_random_uuid()"
440
+ },
441
+ "session_id": {
442
+ "name": "session_id",
443
+ "type": "text",
444
+ "primaryKey": false,
445
+ "notNull": true
446
+ },
447
+ "sdk_session_id": {
448
+ "name": "sdk_session_id",
449
+ "type": "text",
450
+ "primaryKey": false,
451
+ "notNull": false
452
+ },
453
+ "title": {
454
+ "name": "title",
455
+ "type": "text",
456
+ "primaryKey": false,
457
+ "notNull": false
458
+ },
459
+ "summary": {
460
+ "name": "summary",
461
+ "type": "text",
462
+ "primaryKey": false,
463
+ "notNull": false
464
+ },
465
+ "status": {
466
+ "name": "status",
467
+ "type": "text",
468
+ "primaryKey": false,
469
+ "notNull": true,
470
+ "default": "'idle'"
471
+ },
472
+ "total_cost_usd": {
473
+ "name": "total_cost_usd",
474
+ "type": "real",
475
+ "primaryKey": false,
476
+ "notNull": true,
477
+ "default": 0
478
+ },
479
+ "is_main": {
480
+ "name": "is_main",
481
+ "type": "boolean",
482
+ "primaryKey": false,
483
+ "notNull": true,
484
+ "default": false
485
+ },
486
+ "started_at": {
487
+ "name": "started_at",
488
+ "type": "timestamp with time zone",
489
+ "primaryKey": false,
490
+ "notNull": true,
491
+ "default": "now()"
492
+ },
493
+ "ended_at": {
494
+ "name": "ended_at",
495
+ "type": "timestamp with time zone",
496
+ "primaryKey": false,
497
+ "notNull": false
498
+ },
499
+ "message_count": {
500
+ "name": "message_count",
501
+ "type": "integer",
502
+ "primaryKey": false,
503
+ "notNull": true,
504
+ "default": 0
505
+ }
506
+ },
507
+ "indexes": {},
508
+ "foreignKeys": {},
509
+ "compositePrimaryKeys": {},
510
+ "uniqueConstraints": {
511
+ "conversations_session_id_unique": {
512
+ "name": "conversations_session_id_unique",
513
+ "nullsNotDistinct": false,
514
+ "columns": [
515
+ "session_id"
516
+ ]
517
+ }
518
+ },
519
+ "policies": {},
520
+ "checkConstraints": {},
521
+ "isRLSEnabled": false
522
+ },
523
+ "public.cron_agent_runs": {
524
+ "name": "cron_agent_runs",
525
+ "schema": "",
526
+ "columns": {
527
+ "id": {
528
+ "name": "id",
529
+ "type": "uuid",
530
+ "primaryKey": true,
531
+ "notNull": true,
532
+ "default": "gen_random_uuid()"
533
+ },
534
+ "agent_id": {
535
+ "name": "agent_id",
536
+ "type": "uuid",
537
+ "primaryKey": false,
538
+ "notNull": true
539
+ },
540
+ "status": {
541
+ "name": "status",
542
+ "type": "text",
543
+ "primaryKey": false,
544
+ "notNull": true
545
+ },
546
+ "output": {
547
+ "name": "output",
548
+ "type": "text",
549
+ "primaryKey": false,
550
+ "notNull": false
551
+ },
552
+ "error": {
553
+ "name": "error",
554
+ "type": "text",
555
+ "primaryKey": false,
556
+ "notNull": false
557
+ },
558
+ "cost_usd": {
559
+ "name": "cost_usd",
560
+ "type": "real",
561
+ "primaryKey": false,
562
+ "notNull": false
563
+ },
564
+ "input_tokens": {
565
+ "name": "input_tokens",
566
+ "type": "integer",
567
+ "primaryKey": false,
568
+ "notNull": false
569
+ },
570
+ "output_tokens": {
571
+ "name": "output_tokens",
572
+ "type": "integer",
573
+ "primaryKey": false,
574
+ "notNull": false
575
+ },
576
+ "num_turns": {
577
+ "name": "num_turns",
578
+ "type": "integer",
579
+ "primaryKey": false,
580
+ "notNull": false
581
+ },
582
+ "started_at": {
583
+ "name": "started_at",
584
+ "type": "timestamp with time zone",
585
+ "primaryKey": false,
586
+ "notNull": true,
587
+ "default": "now()"
588
+ },
589
+ "completed_at": {
590
+ "name": "completed_at",
591
+ "type": "timestamp with time zone",
592
+ "primaryKey": false,
593
+ "notNull": false
594
+ },
595
+ "duration_ms": {
596
+ "name": "duration_ms",
597
+ "type": "integer",
598
+ "primaryKey": false,
599
+ "notNull": false
600
+ }
601
+ },
602
+ "indexes": {},
603
+ "foreignKeys": {
604
+ "cron_agent_runs_agent_id_cron_agents_id_fk": {
605
+ "name": "cron_agent_runs_agent_id_cron_agents_id_fk",
606
+ "tableFrom": "cron_agent_runs",
607
+ "tableTo": "cron_agents",
608
+ "columnsFrom": [
609
+ "agent_id"
610
+ ],
611
+ "columnsTo": [
612
+ "id"
613
+ ],
614
+ "onDelete": "cascade",
615
+ "onUpdate": "no action"
616
+ }
617
+ },
618
+ "compositePrimaryKeys": {},
619
+ "uniqueConstraints": {},
620
+ "policies": {},
621
+ "checkConstraints": {},
622
+ "isRLSEnabled": false
623
+ },
624
+ "public.cron_agents": {
625
+ "name": "cron_agents",
626
+ "schema": "",
627
+ "columns": {
628
+ "id": {
629
+ "name": "id",
630
+ "type": "uuid",
631
+ "primaryKey": true,
632
+ "notNull": true,
633
+ "default": "gen_random_uuid()"
634
+ },
635
+ "name": {
636
+ "name": "name",
637
+ "type": "text",
638
+ "primaryKey": false,
639
+ "notNull": true
640
+ },
641
+ "description": {
642
+ "name": "description",
643
+ "type": "text",
644
+ "primaryKey": false,
645
+ "notNull": false
646
+ },
647
+ "schedule": {
648
+ "name": "schedule",
649
+ "type": "text",
650
+ "primaryKey": false,
651
+ "notNull": true
652
+ },
653
+ "prompt": {
654
+ "name": "prompt",
655
+ "type": "text",
656
+ "primaryKey": false,
657
+ "notNull": true
658
+ },
659
+ "enabled": {
660
+ "name": "enabled",
661
+ "type": "boolean",
662
+ "primaryKey": false,
663
+ "notNull": true,
664
+ "default": true
665
+ },
666
+ "max_turns": {
667
+ "name": "max_turns",
668
+ "type": "integer",
669
+ "primaryKey": false,
670
+ "notNull": false,
671
+ "default": 50
672
+ },
673
+ "max_budget_usd": {
674
+ "name": "max_budget_usd",
675
+ "type": "real",
676
+ "primaryKey": false,
677
+ "notNull": false
678
+ },
679
+ "last_run_at": {
680
+ "name": "last_run_at",
681
+ "type": "timestamp with time zone",
682
+ "primaryKey": false,
683
+ "notNull": false
684
+ },
685
+ "last_status": {
686
+ "name": "last_status",
687
+ "type": "text",
688
+ "primaryKey": false,
689
+ "notNull": false
690
+ },
691
+ "created_at": {
692
+ "name": "created_at",
693
+ "type": "timestamp with time zone",
694
+ "primaryKey": false,
695
+ "notNull": true,
696
+ "default": "now()"
697
+ },
698
+ "updated_at": {
699
+ "name": "updated_at",
700
+ "type": "timestamp with time zone",
701
+ "primaryKey": false,
702
+ "notNull": true,
703
+ "default": "now()"
704
+ },
705
+ "created_by": {
706
+ "name": "created_by",
707
+ "type": "text",
708
+ "primaryKey": false,
709
+ "notNull": false
710
+ }
711
+ },
712
+ "indexes": {},
713
+ "foreignKeys": {
714
+ "cron_agents_created_by_user_id_fk": {
715
+ "name": "cron_agents_created_by_user_id_fk",
716
+ "tableFrom": "cron_agents",
717
+ "tableTo": "user",
718
+ "columnsFrom": [
719
+ "created_by"
720
+ ],
721
+ "columnsTo": [
722
+ "id"
723
+ ],
724
+ "onDelete": "set null",
725
+ "onUpdate": "no action"
726
+ }
727
+ },
728
+ "compositePrimaryKeys": {},
729
+ "uniqueConstraints": {},
730
+ "policies": {},
731
+ "checkConstraints": {},
732
+ "isRLSEnabled": false
733
+ },
734
+ "public.documents": {
735
+ "name": "documents",
736
+ "schema": "",
737
+ "columns": {
738
+ "id": {
739
+ "name": "id",
740
+ "type": "uuid",
741
+ "primaryKey": true,
742
+ "notNull": true,
743
+ "default": "gen_random_uuid()"
744
+ },
745
+ "title": {
746
+ "name": "title",
747
+ "type": "text",
748
+ "primaryKey": false,
749
+ "notNull": true
750
+ },
751
+ "path": {
752
+ "name": "path",
753
+ "type": "text",
754
+ "primaryKey": false,
755
+ "notNull": true
756
+ },
757
+ "content": {
758
+ "name": "content",
759
+ "type": "text",
760
+ "primaryKey": false,
761
+ "notNull": false
762
+ },
763
+ "content_hash": {
764
+ "name": "content_hash",
765
+ "type": "text",
766
+ "primaryKey": false,
767
+ "notNull": false
768
+ },
769
+ "tags": {
770
+ "name": "tags",
771
+ "type": "text[]",
772
+ "primaryKey": false,
773
+ "notNull": false,
774
+ "default": "'{}'"
775
+ },
776
+ "project_id": {
777
+ "name": "project_id",
778
+ "type": "uuid",
779
+ "primaryKey": false,
780
+ "notNull": false
781
+ },
782
+ "shared": {
783
+ "name": "shared",
784
+ "type": "boolean",
785
+ "primaryKey": false,
786
+ "notNull": true,
787
+ "default": false
788
+ },
789
+ "share_type": {
790
+ "name": "share_type",
791
+ "type": "text",
792
+ "primaryKey": false,
793
+ "notNull": false
794
+ },
795
+ "file_type": {
796
+ "name": "file_type",
797
+ "type": "text",
798
+ "primaryKey": false,
799
+ "notNull": true
800
+ },
801
+ "mime_type": {
802
+ "name": "mime_type",
803
+ "type": "text",
804
+ "primaryKey": false,
805
+ "notNull": false
806
+ },
807
+ "synced_at": {
808
+ "name": "synced_at",
809
+ "type": "timestamp with time zone",
810
+ "primaryKey": false,
811
+ "notNull": false
812
+ },
813
+ "created_at": {
814
+ "name": "created_at",
815
+ "type": "timestamp with time zone",
816
+ "primaryKey": false,
817
+ "notNull": true,
818
+ "default": "now()"
819
+ },
820
+ "created_by": {
821
+ "name": "created_by",
822
+ "type": "text",
823
+ "primaryKey": false,
824
+ "notNull": false
825
+ },
826
+ "modified_at": {
827
+ "name": "modified_at",
828
+ "type": "timestamp with time zone",
829
+ "primaryKey": false,
830
+ "notNull": false
831
+ },
832
+ "modified_by": {
833
+ "name": "modified_by",
834
+ "type": "text",
835
+ "primaryKey": false,
836
+ "notNull": false
837
+ },
838
+ "deleted_at": {
839
+ "name": "deleted_at",
840
+ "type": "timestamp with time zone",
841
+ "primaryKey": false,
842
+ "notNull": false
843
+ },
844
+ "deleted_by": {
845
+ "name": "deleted_by",
846
+ "type": "text",
847
+ "primaryKey": false,
848
+ "notNull": false
849
+ }
850
+ },
851
+ "indexes": {},
852
+ "foreignKeys": {
853
+ "documents_project_id_projects_id_fk": {
854
+ "name": "documents_project_id_projects_id_fk",
855
+ "tableFrom": "documents",
856
+ "tableTo": "projects",
857
+ "columnsFrom": [
858
+ "project_id"
859
+ ],
860
+ "columnsTo": [
861
+ "id"
862
+ ],
863
+ "onDelete": "set null",
864
+ "onUpdate": "no action"
865
+ },
866
+ "documents_created_by_user_id_fk": {
867
+ "name": "documents_created_by_user_id_fk",
868
+ "tableFrom": "documents",
869
+ "tableTo": "user",
870
+ "columnsFrom": [
871
+ "created_by"
872
+ ],
873
+ "columnsTo": [
874
+ "id"
875
+ ],
876
+ "onDelete": "set null",
877
+ "onUpdate": "no action"
878
+ },
879
+ "documents_modified_by_user_id_fk": {
880
+ "name": "documents_modified_by_user_id_fk",
881
+ "tableFrom": "documents",
882
+ "tableTo": "user",
883
+ "columnsFrom": [
884
+ "modified_by"
885
+ ],
886
+ "columnsTo": [
887
+ "id"
888
+ ],
889
+ "onDelete": "set null",
890
+ "onUpdate": "no action"
891
+ },
892
+ "documents_deleted_by_user_id_fk": {
893
+ "name": "documents_deleted_by_user_id_fk",
894
+ "tableFrom": "documents",
895
+ "tableTo": "user",
896
+ "columnsFrom": [
897
+ "deleted_by"
898
+ ],
899
+ "columnsTo": [
900
+ "id"
901
+ ],
902
+ "onDelete": "set null",
903
+ "onUpdate": "no action"
904
+ }
905
+ },
906
+ "compositePrimaryKeys": {},
907
+ "uniqueConstraints": {
908
+ "documents_path_unique": {
909
+ "name": "documents_path_unique",
910
+ "nullsNotDistinct": false,
911
+ "columns": [
912
+ "path"
913
+ ]
914
+ }
915
+ },
916
+ "policies": {},
917
+ "checkConstraints": {},
918
+ "isRLSEnabled": false
919
+ },
920
+ "public.hook_events": {
921
+ "name": "hook_events",
922
+ "schema": "",
923
+ "columns": {
924
+ "id": {
925
+ "name": "id",
926
+ "type": "uuid",
927
+ "primaryKey": true,
928
+ "notNull": true,
929
+ "default": "gen_random_uuid()"
930
+ },
931
+ "event_type": {
932
+ "name": "event_type",
933
+ "type": "text",
934
+ "primaryKey": false,
935
+ "notNull": true
936
+ },
937
+ "session_id": {
938
+ "name": "session_id",
939
+ "type": "text",
940
+ "primaryKey": false,
941
+ "notNull": false
942
+ },
943
+ "project_dir": {
944
+ "name": "project_dir",
945
+ "type": "text",
946
+ "primaryKey": false,
947
+ "notNull": false
948
+ },
949
+ "tool_name": {
950
+ "name": "tool_name",
951
+ "type": "text",
952
+ "primaryKey": false,
953
+ "notNull": false
954
+ },
955
+ "tool_matcher": {
956
+ "name": "tool_matcher",
957
+ "type": "text",
958
+ "primaryKey": false,
959
+ "notNull": false
960
+ },
961
+ "event_data": {
962
+ "name": "event_data",
963
+ "type": "text",
964
+ "primaryKey": false,
965
+ "notNull": false
966
+ },
967
+ "exit_code": {
968
+ "name": "exit_code",
969
+ "type": "integer",
970
+ "primaryKey": false,
971
+ "notNull": false
972
+ },
973
+ "blocked": {
974
+ "name": "blocked",
975
+ "type": "boolean",
976
+ "primaryKey": false,
977
+ "notNull": true,
978
+ "default": false
979
+ },
980
+ "block_reason": {
981
+ "name": "block_reason",
982
+ "type": "text",
983
+ "primaryKey": false,
984
+ "notNull": false
985
+ },
986
+ "duration_ms": {
987
+ "name": "duration_ms",
988
+ "type": "integer",
989
+ "primaryKey": false,
990
+ "notNull": false
991
+ },
992
+ "hook_script": {
993
+ "name": "hook_script",
994
+ "type": "text",
995
+ "primaryKey": false,
996
+ "notNull": false
997
+ },
998
+ "created_at": {
999
+ "name": "created_at",
1000
+ "type": "timestamp with time zone",
1001
+ "primaryKey": false,
1002
+ "notNull": true,
1003
+ "default": "now()"
1004
+ }
1005
+ },
1006
+ "indexes": {},
1007
+ "foreignKeys": {},
1008
+ "compositePrimaryKeys": {},
1009
+ "uniqueConstraints": {},
1010
+ "policies": {},
1011
+ "checkConstraints": {},
1012
+ "isRLSEnabled": false
1013
+ },
1014
+ "public.memory_chunks": {
1015
+ "name": "memory_chunks",
1016
+ "schema": "",
1017
+ "columns": {
1018
+ "id": {
1019
+ "name": "id",
1020
+ "type": "uuid",
1021
+ "primaryKey": true,
1022
+ "notNull": true,
1023
+ "default": "gen_random_uuid()"
1024
+ },
1025
+ "session_id": {
1026
+ "name": "session_id",
1027
+ "type": "text",
1028
+ "primaryKey": false,
1029
+ "notNull": false
1030
+ },
1031
+ "project_path": {
1032
+ "name": "project_path",
1033
+ "type": "text",
1034
+ "primaryKey": false,
1035
+ "notNull": false
1036
+ },
1037
+ "chunk_type": {
1038
+ "name": "chunk_type",
1039
+ "type": "text",
1040
+ "primaryKey": false,
1041
+ "notNull": true
1042
+ },
1043
+ "content": {
1044
+ "name": "content",
1045
+ "type": "text",
1046
+ "primaryKey": false,
1047
+ "notNull": true
1048
+ },
1049
+ "source_excerpt": {
1050
+ "name": "source_excerpt",
1051
+ "type": "text",
1052
+ "primaryKey": false,
1053
+ "notNull": false
1054
+ },
1055
+ "access_count": {
1056
+ "name": "access_count",
1057
+ "type": "integer",
1058
+ "primaryKey": false,
1059
+ "notNull": true,
1060
+ "default": 0
1061
+ },
1062
+ "last_accessed_at": {
1063
+ "name": "last_accessed_at",
1064
+ "type": "timestamp with time zone",
1065
+ "primaryKey": false,
1066
+ "notNull": false
1067
+ },
1068
+ "created_at": {
1069
+ "name": "created_at",
1070
+ "type": "timestamp with time zone",
1071
+ "primaryKey": false,
1072
+ "notNull": true,
1073
+ "default": "now()"
1074
+ },
1075
+ "expires_at": {
1076
+ "name": "expires_at",
1077
+ "type": "timestamp with time zone",
1078
+ "primaryKey": false,
1079
+ "notNull": false
1080
+ }
1081
+ },
1082
+ "indexes": {},
1083
+ "foreignKeys": {},
1084
+ "compositePrimaryKeys": {},
1085
+ "uniqueConstraints": {},
1086
+ "policies": {},
1087
+ "checkConstraints": {},
1088
+ "isRLSEnabled": false
1089
+ },
1090
+ "public.projects": {
1091
+ "name": "projects",
1092
+ "schema": "",
1093
+ "columns": {
1094
+ "id": {
1095
+ "name": "id",
1096
+ "type": "uuid",
1097
+ "primaryKey": true,
1098
+ "notNull": true,
1099
+ "default": "gen_random_uuid()"
1100
+ },
1101
+ "name": {
1102
+ "name": "name",
1103
+ "type": "text",
1104
+ "primaryKey": false,
1105
+ "notNull": true
1106
+ },
1107
+ "color": {
1108
+ "name": "color",
1109
+ "type": "text",
1110
+ "primaryKey": false,
1111
+ "notNull": true
1112
+ },
1113
+ "description": {
1114
+ "name": "description",
1115
+ "type": "text",
1116
+ "primaryKey": false,
1117
+ "notNull": false
1118
+ },
1119
+ "created_at": {
1120
+ "name": "created_at",
1121
+ "type": "timestamp with time zone",
1122
+ "primaryKey": false,
1123
+ "notNull": true,
1124
+ "default": "now()"
1125
+ },
1126
+ "modified_at": {
1127
+ "name": "modified_at",
1128
+ "type": "timestamp with time zone",
1129
+ "primaryKey": false,
1130
+ "notNull": false
1131
+ },
1132
+ "deleted_at": {
1133
+ "name": "deleted_at",
1134
+ "type": "timestamp with time zone",
1135
+ "primaryKey": false,
1136
+ "notNull": false
1137
+ },
1138
+ "created_by": {
1139
+ "name": "created_by",
1140
+ "type": "text",
1141
+ "primaryKey": false,
1142
+ "notNull": false
1143
+ },
1144
+ "modified_by": {
1145
+ "name": "modified_by",
1146
+ "type": "text",
1147
+ "primaryKey": false,
1148
+ "notNull": false
1149
+ },
1150
+ "deleted_by": {
1151
+ "name": "deleted_by",
1152
+ "type": "text",
1153
+ "primaryKey": false,
1154
+ "notNull": false
1155
+ }
1156
+ },
1157
+ "indexes": {},
1158
+ "foreignKeys": {
1159
+ "projects_created_by_user_id_fk": {
1160
+ "name": "projects_created_by_user_id_fk",
1161
+ "tableFrom": "projects",
1162
+ "tableTo": "user",
1163
+ "columnsFrom": [
1164
+ "created_by"
1165
+ ],
1166
+ "columnsTo": [
1167
+ "id"
1168
+ ],
1169
+ "onDelete": "set null",
1170
+ "onUpdate": "no action"
1171
+ },
1172
+ "projects_modified_by_user_id_fk": {
1173
+ "name": "projects_modified_by_user_id_fk",
1174
+ "tableFrom": "projects",
1175
+ "tableTo": "user",
1176
+ "columnsFrom": [
1177
+ "modified_by"
1178
+ ],
1179
+ "columnsTo": [
1180
+ "id"
1181
+ ],
1182
+ "onDelete": "set null",
1183
+ "onUpdate": "no action"
1184
+ },
1185
+ "projects_deleted_by_user_id_fk": {
1186
+ "name": "projects_deleted_by_user_id_fk",
1187
+ "tableFrom": "projects",
1188
+ "tableTo": "user",
1189
+ "columnsFrom": [
1190
+ "deleted_by"
1191
+ ],
1192
+ "columnsTo": [
1193
+ "id"
1194
+ ],
1195
+ "onDelete": "set null",
1196
+ "onUpdate": "no action"
1197
+ }
1198
+ },
1199
+ "compositePrimaryKeys": {},
1200
+ "uniqueConstraints": {},
1201
+ "policies": {},
1202
+ "checkConstraints": {},
1203
+ "isRLSEnabled": false
1204
+ },
1205
+ "public.reminders": {
1206
+ "name": "reminders",
1207
+ "schema": "",
1208
+ "columns": {
1209
+ "id": {
1210
+ "name": "id",
1211
+ "type": "uuid",
1212
+ "primaryKey": true,
1213
+ "notNull": true,
1214
+ "default": "gen_random_uuid()"
1215
+ },
1216
+ "task_id": {
1217
+ "name": "task_id",
1218
+ "type": "uuid",
1219
+ "primaryKey": false,
1220
+ "notNull": false
1221
+ },
1222
+ "message": {
1223
+ "name": "message",
1224
+ "type": "text",
1225
+ "primaryKey": false,
1226
+ "notNull": true
1227
+ },
1228
+ "remind_at": {
1229
+ "name": "remind_at",
1230
+ "type": "timestamp with time zone",
1231
+ "primaryKey": false,
1232
+ "notNull": true
1233
+ },
1234
+ "notified": {
1235
+ "name": "notified",
1236
+ "type": "boolean",
1237
+ "primaryKey": false,
1238
+ "notNull": true,
1239
+ "default": false
1240
+ },
1241
+ "created_at": {
1242
+ "name": "created_at",
1243
+ "type": "timestamp with time zone",
1244
+ "primaryKey": false,
1245
+ "notNull": true,
1246
+ "default": "now()"
1247
+ }
1248
+ },
1249
+ "indexes": {},
1250
+ "foreignKeys": {
1251
+ "reminders_task_id_tasks_id_fk": {
1252
+ "name": "reminders_task_id_tasks_id_fk",
1253
+ "tableFrom": "reminders",
1254
+ "tableTo": "tasks",
1255
+ "columnsFrom": [
1256
+ "task_id"
1257
+ ],
1258
+ "columnsTo": [
1259
+ "id"
1260
+ ],
1261
+ "onDelete": "cascade",
1262
+ "onUpdate": "no action"
1263
+ }
1264
+ },
1265
+ "compositePrimaryKeys": {},
1266
+ "uniqueConstraints": {},
1267
+ "policies": {},
1268
+ "checkConstraints": {},
1269
+ "isRLSEnabled": false
1270
+ },
1271
+ "public.secrets": {
1272
+ "name": "secrets",
1273
+ "schema": "",
1274
+ "columns": {
1275
+ "id": {
1276
+ "name": "id",
1277
+ "type": "uuid",
1278
+ "primaryKey": true,
1279
+ "notNull": true,
1280
+ "default": "gen_random_uuid()"
1281
+ },
1282
+ "key": {
1283
+ "name": "key",
1284
+ "type": "text",
1285
+ "primaryKey": false,
1286
+ "notNull": true
1287
+ },
1288
+ "encrypted_value": {
1289
+ "name": "encrypted_value",
1290
+ "type": "text",
1291
+ "primaryKey": false,
1292
+ "notNull": true
1293
+ },
1294
+ "iv": {
1295
+ "name": "iv",
1296
+ "type": "text",
1297
+ "primaryKey": false,
1298
+ "notNull": true
1299
+ },
1300
+ "description": {
1301
+ "name": "description",
1302
+ "type": "text",
1303
+ "primaryKey": false,
1304
+ "notNull": false
1305
+ },
1306
+ "created_at": {
1307
+ "name": "created_at",
1308
+ "type": "timestamp with time zone",
1309
+ "primaryKey": false,
1310
+ "notNull": true,
1311
+ "default": "now()"
1312
+ },
1313
+ "updated_at": {
1314
+ "name": "updated_at",
1315
+ "type": "timestamp with time zone",
1316
+ "primaryKey": false,
1317
+ "notNull": true,
1318
+ "default": "now()"
1319
+ },
1320
+ "created_by": {
1321
+ "name": "created_by",
1322
+ "type": "text",
1323
+ "primaryKey": false,
1324
+ "notNull": false
1325
+ }
1326
+ },
1327
+ "indexes": {},
1328
+ "foreignKeys": {
1329
+ "secrets_created_by_user_id_fk": {
1330
+ "name": "secrets_created_by_user_id_fk",
1331
+ "tableFrom": "secrets",
1332
+ "tableTo": "user",
1333
+ "columnsFrom": [
1334
+ "created_by"
1335
+ ],
1336
+ "columnsTo": [
1337
+ "id"
1338
+ ],
1339
+ "onDelete": "set null",
1340
+ "onUpdate": "no action"
1341
+ }
1342
+ },
1343
+ "compositePrimaryKeys": {},
1344
+ "uniqueConstraints": {
1345
+ "secrets_key_unique": {
1346
+ "name": "secrets_key_unique",
1347
+ "nullsNotDistinct": false,
1348
+ "columns": [
1349
+ "key"
1350
+ ]
1351
+ }
1352
+ },
1353
+ "policies": {},
1354
+ "checkConstraints": {},
1355
+ "isRLSEnabled": false
1356
+ },
1357
+ "public.session": {
1358
+ "name": "session",
1359
+ "schema": "",
1360
+ "columns": {
1361
+ "id": {
1362
+ "name": "id",
1363
+ "type": "text",
1364
+ "primaryKey": true,
1365
+ "notNull": true
1366
+ },
1367
+ "user_id": {
1368
+ "name": "user_id",
1369
+ "type": "text",
1370
+ "primaryKey": false,
1371
+ "notNull": true
1372
+ },
1373
+ "token": {
1374
+ "name": "token",
1375
+ "type": "text",
1376
+ "primaryKey": false,
1377
+ "notNull": true
1378
+ },
1379
+ "expires_at": {
1380
+ "name": "expires_at",
1381
+ "type": "timestamp with time zone",
1382
+ "primaryKey": false,
1383
+ "notNull": true
1384
+ },
1385
+ "ip_address": {
1386
+ "name": "ip_address",
1387
+ "type": "text",
1388
+ "primaryKey": false,
1389
+ "notNull": false
1390
+ },
1391
+ "user_agent": {
1392
+ "name": "user_agent",
1393
+ "type": "text",
1394
+ "primaryKey": false,
1395
+ "notNull": false
1396
+ },
1397
+ "created_at": {
1398
+ "name": "created_at",
1399
+ "type": "timestamp with time zone",
1400
+ "primaryKey": false,
1401
+ "notNull": true,
1402
+ "default": "now()"
1403
+ },
1404
+ "updated_at": {
1405
+ "name": "updated_at",
1406
+ "type": "timestamp with time zone",
1407
+ "primaryKey": false,
1408
+ "notNull": true,
1409
+ "default": "now()"
1410
+ }
1411
+ },
1412
+ "indexes": {},
1413
+ "foreignKeys": {
1414
+ "session_user_id_user_id_fk": {
1415
+ "name": "session_user_id_user_id_fk",
1416
+ "tableFrom": "session",
1417
+ "tableTo": "user",
1418
+ "columnsFrom": [
1419
+ "user_id"
1420
+ ],
1421
+ "columnsTo": [
1422
+ "id"
1423
+ ],
1424
+ "onDelete": "cascade",
1425
+ "onUpdate": "no action"
1426
+ }
1427
+ },
1428
+ "compositePrimaryKeys": {},
1429
+ "uniqueConstraints": {
1430
+ "session_token_unique": {
1431
+ "name": "session_token_unique",
1432
+ "nullsNotDistinct": false,
1433
+ "columns": [
1434
+ "token"
1435
+ ]
1436
+ }
1437
+ },
1438
+ "policies": {},
1439
+ "checkConstraints": {},
1440
+ "isRLSEnabled": false
1441
+ },
1442
+ "public.skills_catalog": {
1443
+ "name": "skills_catalog",
1444
+ "schema": "",
1445
+ "columns": {
1446
+ "id": {
1447
+ "name": "id",
1448
+ "type": "uuid",
1449
+ "primaryKey": true,
1450
+ "notNull": true,
1451
+ "default": "gen_random_uuid()"
1452
+ },
1453
+ "name": {
1454
+ "name": "name",
1455
+ "type": "text",
1456
+ "primaryKey": false,
1457
+ "notNull": true
1458
+ },
1459
+ "description": {
1460
+ "name": "description",
1461
+ "type": "text",
1462
+ "primaryKey": false,
1463
+ "notNull": true
1464
+ },
1465
+ "version": {
1466
+ "name": "version",
1467
+ "type": "text",
1468
+ "primaryKey": false,
1469
+ "notNull": true
1470
+ },
1471
+ "author": {
1472
+ "name": "author",
1473
+ "type": "text",
1474
+ "primaryKey": false,
1475
+ "notNull": true
1476
+ },
1477
+ "tags": {
1478
+ "name": "tags",
1479
+ "type": "text[]",
1480
+ "primaryKey": false,
1481
+ "notNull": false,
1482
+ "default": "'{}'"
1483
+ },
1484
+ "requires_secrets": {
1485
+ "name": "requires_secrets",
1486
+ "type": "text[]",
1487
+ "primaryKey": false,
1488
+ "notNull": false,
1489
+ "default": "'{}'"
1490
+ },
1491
+ "files": {
1492
+ "name": "files",
1493
+ "type": "text[]",
1494
+ "primaryKey": false,
1495
+ "notNull": false,
1496
+ "default": "'{}'"
1497
+ },
1498
+ "updated_at": {
1499
+ "name": "updated_at",
1500
+ "type": "timestamp with time zone",
1501
+ "primaryKey": false,
1502
+ "notNull": true
1503
+ },
1504
+ "synced_at": {
1505
+ "name": "synced_at",
1506
+ "type": "timestamp with time zone",
1507
+ "primaryKey": false,
1508
+ "notNull": true,
1509
+ "default": "now()"
1510
+ }
1511
+ },
1512
+ "indexes": {},
1513
+ "foreignKeys": {},
1514
+ "compositePrimaryKeys": {},
1515
+ "uniqueConstraints": {
1516
+ "skills_catalog_name_unique": {
1517
+ "name": "skills_catalog_name_unique",
1518
+ "nullsNotDistinct": false,
1519
+ "columns": [
1520
+ "name"
1521
+ ]
1522
+ }
1523
+ },
1524
+ "policies": {},
1525
+ "checkConstraints": {},
1526
+ "isRLSEnabled": false
1527
+ },
1528
+ "public.tasks": {
1529
+ "name": "tasks",
1530
+ "schema": "",
1531
+ "columns": {
1532
+ "id": {
1533
+ "name": "id",
1534
+ "type": "uuid",
1535
+ "primaryKey": true,
1536
+ "notNull": true,
1537
+ "default": "gen_random_uuid()"
1538
+ },
1539
+ "title": {
1540
+ "name": "title",
1541
+ "type": "text",
1542
+ "primaryKey": false,
1543
+ "notNull": true
1544
+ },
1545
+ "description": {
1546
+ "name": "description",
1547
+ "type": "text",
1548
+ "primaryKey": false,
1549
+ "notNull": false
1550
+ },
1551
+ "status": {
1552
+ "name": "status",
1553
+ "type": "text",
1554
+ "primaryKey": false,
1555
+ "notNull": true,
1556
+ "default": "'todo'"
1557
+ },
1558
+ "priority": {
1559
+ "name": "priority",
1560
+ "type": "integer",
1561
+ "primaryKey": false,
1562
+ "notNull": true,
1563
+ "default": 2
1564
+ },
1565
+ "project_id": {
1566
+ "name": "project_id",
1567
+ "type": "uuid",
1568
+ "primaryKey": false,
1569
+ "notNull": false
1570
+ },
1571
+ "due_date": {
1572
+ "name": "due_date",
1573
+ "type": "timestamp with time zone",
1574
+ "primaryKey": false,
1575
+ "notNull": false
1576
+ },
1577
+ "tags": {
1578
+ "name": "tags",
1579
+ "type": "text[]",
1580
+ "primaryKey": false,
1581
+ "notNull": false,
1582
+ "default": "'{}'"
1583
+ },
1584
+ "created_at": {
1585
+ "name": "created_at",
1586
+ "type": "timestamp with time zone",
1587
+ "primaryKey": false,
1588
+ "notNull": true,
1589
+ "default": "now()"
1590
+ },
1591
+ "modified_at": {
1592
+ "name": "modified_at",
1593
+ "type": "timestamp with time zone",
1594
+ "primaryKey": false,
1595
+ "notNull": false
1596
+ },
1597
+ "completed_at": {
1598
+ "name": "completed_at",
1599
+ "type": "timestamp with time zone",
1600
+ "primaryKey": false,
1601
+ "notNull": false
1602
+ },
1603
+ "deleted_at": {
1604
+ "name": "deleted_at",
1605
+ "type": "timestamp with time zone",
1606
+ "primaryKey": false,
1607
+ "notNull": false
1608
+ },
1609
+ "created_by": {
1610
+ "name": "created_by",
1611
+ "type": "text",
1612
+ "primaryKey": false,
1613
+ "notNull": false
1614
+ },
1615
+ "modified_by": {
1616
+ "name": "modified_by",
1617
+ "type": "text",
1618
+ "primaryKey": false,
1619
+ "notNull": false
1620
+ },
1621
+ "deleted_by": {
1622
+ "name": "deleted_by",
1623
+ "type": "text",
1624
+ "primaryKey": false,
1625
+ "notNull": false
1626
+ }
1627
+ },
1628
+ "indexes": {},
1629
+ "foreignKeys": {
1630
+ "tasks_project_id_projects_id_fk": {
1631
+ "name": "tasks_project_id_projects_id_fk",
1632
+ "tableFrom": "tasks",
1633
+ "tableTo": "projects",
1634
+ "columnsFrom": [
1635
+ "project_id"
1636
+ ],
1637
+ "columnsTo": [
1638
+ "id"
1639
+ ],
1640
+ "onDelete": "set null",
1641
+ "onUpdate": "no action"
1642
+ },
1643
+ "tasks_created_by_user_id_fk": {
1644
+ "name": "tasks_created_by_user_id_fk",
1645
+ "tableFrom": "tasks",
1646
+ "tableTo": "user",
1647
+ "columnsFrom": [
1648
+ "created_by"
1649
+ ],
1650
+ "columnsTo": [
1651
+ "id"
1652
+ ],
1653
+ "onDelete": "set null",
1654
+ "onUpdate": "no action"
1655
+ },
1656
+ "tasks_modified_by_user_id_fk": {
1657
+ "name": "tasks_modified_by_user_id_fk",
1658
+ "tableFrom": "tasks",
1659
+ "tableTo": "user",
1660
+ "columnsFrom": [
1661
+ "modified_by"
1662
+ ],
1663
+ "columnsTo": [
1664
+ "id"
1665
+ ],
1666
+ "onDelete": "set null",
1667
+ "onUpdate": "no action"
1668
+ },
1669
+ "tasks_deleted_by_user_id_fk": {
1670
+ "name": "tasks_deleted_by_user_id_fk",
1671
+ "tableFrom": "tasks",
1672
+ "tableTo": "user",
1673
+ "columnsFrom": [
1674
+ "deleted_by"
1675
+ ],
1676
+ "columnsTo": [
1677
+ "id"
1678
+ ],
1679
+ "onDelete": "set null",
1680
+ "onUpdate": "no action"
1681
+ }
1682
+ },
1683
+ "compositePrimaryKeys": {},
1684
+ "uniqueConstraints": {},
1685
+ "policies": {},
1686
+ "checkConstraints": {},
1687
+ "isRLSEnabled": false
1688
+ },
1689
+ "public.token_usage": {
1690
+ "name": "token_usage",
1691
+ "schema": "",
1692
+ "columns": {
1693
+ "id": {
1694
+ "name": "id",
1695
+ "type": "uuid",
1696
+ "primaryKey": true,
1697
+ "notNull": true,
1698
+ "default": "gen_random_uuid()"
1699
+ },
1700
+ "source": {
1701
+ "name": "source",
1702
+ "type": "text",
1703
+ "primaryKey": false,
1704
+ "notNull": true
1705
+ },
1706
+ "source_id": {
1707
+ "name": "source_id",
1708
+ "type": "text",
1709
+ "primaryKey": false,
1710
+ "notNull": false
1711
+ },
1712
+ "source_name": {
1713
+ "name": "source_name",
1714
+ "type": "text",
1715
+ "primaryKey": false,
1716
+ "notNull": false
1717
+ },
1718
+ "input_tokens": {
1719
+ "name": "input_tokens",
1720
+ "type": "integer",
1721
+ "primaryKey": false,
1722
+ "notNull": true,
1723
+ "default": 0
1724
+ },
1725
+ "output_tokens": {
1726
+ "name": "output_tokens",
1727
+ "type": "integer",
1728
+ "primaryKey": false,
1729
+ "notNull": true,
1730
+ "default": 0
1731
+ },
1732
+ "cost_usd": {
1733
+ "name": "cost_usd",
1734
+ "type": "real",
1735
+ "primaryKey": false,
1736
+ "notNull": true,
1737
+ "default": 0
1738
+ },
1739
+ "duration_ms": {
1740
+ "name": "duration_ms",
1741
+ "type": "integer",
1742
+ "primaryKey": false,
1743
+ "notNull": false
1744
+ },
1745
+ "num_turns": {
1746
+ "name": "num_turns",
1747
+ "type": "integer",
1748
+ "primaryKey": false,
1749
+ "notNull": false
1750
+ },
1751
+ "created_at": {
1752
+ "name": "created_at",
1753
+ "type": "timestamp with time zone",
1754
+ "primaryKey": false,
1755
+ "notNull": true,
1756
+ "default": "now()"
1757
+ }
1758
+ },
1759
+ "indexes": {},
1760
+ "foreignKeys": {},
1761
+ "compositePrimaryKeys": {},
1762
+ "uniqueConstraints": {},
1763
+ "policies": {},
1764
+ "checkConstraints": {},
1765
+ "isRLSEnabled": false
1766
+ },
1767
+ "public.user": {
1768
+ "name": "user",
1769
+ "schema": "",
1770
+ "columns": {
1771
+ "id": {
1772
+ "name": "id",
1773
+ "type": "text",
1774
+ "primaryKey": true,
1775
+ "notNull": true
1776
+ },
1777
+ "name": {
1778
+ "name": "name",
1779
+ "type": "text",
1780
+ "primaryKey": false,
1781
+ "notNull": true
1782
+ },
1783
+ "email": {
1784
+ "name": "email",
1785
+ "type": "text",
1786
+ "primaryKey": false,
1787
+ "notNull": true
1788
+ },
1789
+ "email_verified": {
1790
+ "name": "email_verified",
1791
+ "type": "boolean",
1792
+ "primaryKey": false,
1793
+ "notNull": true,
1794
+ "default": false
1795
+ },
1796
+ "image": {
1797
+ "name": "image",
1798
+ "type": "text",
1799
+ "primaryKey": false,
1800
+ "notNull": false
1801
+ },
1802
+ "created_at": {
1803
+ "name": "created_at",
1804
+ "type": "timestamp with time zone",
1805
+ "primaryKey": false,
1806
+ "notNull": true,
1807
+ "default": "now()"
1808
+ },
1809
+ "updated_at": {
1810
+ "name": "updated_at",
1811
+ "type": "timestamp with time zone",
1812
+ "primaryKey": false,
1813
+ "notNull": true,
1814
+ "default": "now()"
1815
+ }
1816
+ },
1817
+ "indexes": {},
1818
+ "foreignKeys": {},
1819
+ "compositePrimaryKeys": {},
1820
+ "uniqueConstraints": {
1821
+ "user_email_unique": {
1822
+ "name": "user_email_unique",
1823
+ "nullsNotDistinct": false,
1824
+ "columns": [
1825
+ "email"
1826
+ ]
1827
+ }
1828
+ },
1829
+ "policies": {},
1830
+ "checkConstraints": {},
1831
+ "isRLSEnabled": false
1832
+ },
1833
+ "public.user_settings": {
1834
+ "name": "user_settings",
1835
+ "schema": "",
1836
+ "columns": {
1837
+ "id": {
1838
+ "name": "id",
1839
+ "type": "uuid",
1840
+ "primaryKey": true,
1841
+ "notNull": true,
1842
+ "default": "gen_random_uuid()"
1843
+ },
1844
+ "user_id": {
1845
+ "name": "user_id",
1846
+ "type": "text",
1847
+ "primaryKey": false,
1848
+ "notNull": true
1849
+ },
1850
+ "settings": {
1851
+ "name": "settings",
1852
+ "type": "text",
1853
+ "primaryKey": false,
1854
+ "notNull": true,
1855
+ "default": "'{}'"
1856
+ },
1857
+ "created_at": {
1858
+ "name": "created_at",
1859
+ "type": "timestamp with time zone",
1860
+ "primaryKey": false,
1861
+ "notNull": true,
1862
+ "default": "now()"
1863
+ },
1864
+ "updated_at": {
1865
+ "name": "updated_at",
1866
+ "type": "timestamp with time zone",
1867
+ "primaryKey": false,
1868
+ "notNull": true,
1869
+ "default": "now()"
1870
+ }
1871
+ },
1872
+ "indexes": {},
1873
+ "foreignKeys": {
1874
+ "user_settings_user_id_user_id_fk": {
1875
+ "name": "user_settings_user_id_user_id_fk",
1876
+ "tableFrom": "user_settings",
1877
+ "tableTo": "user",
1878
+ "columnsFrom": [
1879
+ "user_id"
1880
+ ],
1881
+ "columnsTo": [
1882
+ "id"
1883
+ ],
1884
+ "onDelete": "cascade",
1885
+ "onUpdate": "no action"
1886
+ }
1887
+ },
1888
+ "compositePrimaryKeys": {},
1889
+ "uniqueConstraints": {
1890
+ "user_settings_user_id_unique": {
1891
+ "name": "user_settings_user_id_unique",
1892
+ "nullsNotDistinct": false,
1893
+ "columns": [
1894
+ "user_id"
1895
+ ]
1896
+ }
1897
+ },
1898
+ "policies": {},
1899
+ "checkConstraints": {},
1900
+ "isRLSEnabled": false
1901
+ },
1902
+ "public.verification": {
1903
+ "name": "verification",
1904
+ "schema": "",
1905
+ "columns": {
1906
+ "id": {
1907
+ "name": "id",
1908
+ "type": "text",
1909
+ "primaryKey": true,
1910
+ "notNull": true
1911
+ },
1912
+ "identifier": {
1913
+ "name": "identifier",
1914
+ "type": "text",
1915
+ "primaryKey": false,
1916
+ "notNull": true
1917
+ },
1918
+ "value": {
1919
+ "name": "value",
1920
+ "type": "text",
1921
+ "primaryKey": false,
1922
+ "notNull": true
1923
+ },
1924
+ "expires_at": {
1925
+ "name": "expires_at",
1926
+ "type": "timestamp with time zone",
1927
+ "primaryKey": false,
1928
+ "notNull": true
1929
+ },
1930
+ "created_at": {
1931
+ "name": "created_at",
1932
+ "type": "timestamp with time zone",
1933
+ "primaryKey": false,
1934
+ "notNull": true,
1935
+ "default": "now()"
1936
+ },
1937
+ "updated_at": {
1938
+ "name": "updated_at",
1939
+ "type": "timestamp with time zone",
1940
+ "primaryKey": false,
1941
+ "notNull": true,
1942
+ "default": "now()"
1943
+ }
1944
+ },
1945
+ "indexes": {},
1946
+ "foreignKeys": {},
1947
+ "compositePrimaryKeys": {},
1948
+ "uniqueConstraints": {},
1949
+ "policies": {},
1950
+ "checkConstraints": {},
1951
+ "isRLSEnabled": false
1952
+ }
1953
+ },
1954
+ "enums": {},
1955
+ "schemas": {},
1956
+ "sequences": {},
1957
+ "roles": {},
1958
+ "policies": {},
1959
+ "views": {},
1960
+ "_meta": {
1961
+ "columns": {},
1962
+ "schemas": {},
1963
+ "tables": {}
1964
+ }
1965
+ }