cognova 0.2.9 → 0.2.10

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 (192) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/{pHQcHl8n.js → 0NJ3PaRM.js} +1 -1
  3. package/.output/public/_nuxt/{CGgZuPnb.js → 0yk-pS3R.js} +2 -2
  4. package/.output/public/_nuxt/{C8gtQaKB.js → 10_wwHSz.js} +1 -1
  5. package/.output/public/_nuxt/{BaYtugUf.js → 1zUTf4AP.js} +1 -1
  6. package/.output/public/_nuxt/{B63LIwsW.js → 2dNDtTiv.js} +3 -3
  7. package/.output/public/_nuxt/{Gy6_ehml.js → 2nOqGUPr.js} +1 -1
  8. package/.output/public/_nuxt/{C6UTTaCP.js → 3jQMk_5H.js} +1 -1
  9. package/.output/public/_nuxt/{BX6vcvkp.js → 4K03TkGA.js} +1 -1
  10. package/.output/public/_nuxt/{DjmFlCHK.js → 6boMs_nF.js} +1 -1
  11. package/.output/public/_nuxt/{CybU4a95.js → 7oCGSglN.js} +1 -1
  12. package/.output/public/_nuxt/{CfO_d5gC.js → 8q5NepGW.js} +1 -1
  13. package/.output/public/_nuxt/{DdXVAzIg.js → B93pdGAW.js} +1 -1
  14. package/.output/public/_nuxt/{D1t0272g.js → BA_pRWwX.js} +1 -1
  15. package/.output/public/_nuxt/{Be5L93GM.js → BDyn4ApB.js} +3 -3
  16. package/.output/public/_nuxt/{DHScQdvh.js → BGgwYWjH.js} +1 -1
  17. package/.output/public/_nuxt/{FYOLNuMV.js → BH0QDWEm.js} +1 -1
  18. package/.output/public/_nuxt/{BVc_fOF1.js → BHtY0l0l.js} +1 -1
  19. package/.output/public/_nuxt/{C6HEirAm.js → BIXrSYwR.js} +1 -1
  20. package/.output/public/_nuxt/BK8S2ony.js +1 -0
  21. package/.output/public/_nuxt/{DTu0K_pX.js → BKXg-alD.js} +1 -1
  22. package/.output/public/_nuxt/{Pa936BQP.js → BLnYhy_t.js} +1 -1
  23. package/.output/public/_nuxt/{wgX1ldgZ.js → BR8bKz8h.js} +1 -1
  24. package/.output/public/_nuxt/{B-513wJW.js → BS2ZNXI1.js} +1 -1
  25. package/.output/public/_nuxt/{a9_LvIZ4.js → BUghTae1.js} +1 -1
  26. package/.output/public/_nuxt/{B8Ou5yh2.js → BXuWCWsJ.js} +1 -1
  27. package/.output/public/_nuxt/{D_tCgCFX.js → BYHCP8x7.js} +1 -1
  28. package/.output/public/_nuxt/{CY3x8iy3.js → BZrSPX0S.js} +1 -1
  29. package/.output/public/_nuxt/{BNBGEa-U.js → B_wilgcd.js} +1 -1
  30. package/.output/public/_nuxt/BaZwjF8o.js +1 -0
  31. package/.output/public/_nuxt/{BwdxQyyo.js → Bciqk4dX.js} +1 -1
  32. package/.output/public/_nuxt/{BhnONkIm.js → Beom-INj.js} +1 -1
  33. package/.output/public/_nuxt/{CzurfTnt.js → BfcLZ_fC.js} +1 -1
  34. package/.output/public/_nuxt/{DwAJIRGg.js → Bk6JUtIo.js} +1 -1
  35. package/.output/public/_nuxt/BkfI94R8.js +1 -0
  36. package/.output/public/_nuxt/{Cs_udj6A.js → BmOtR1wX.js} +1 -1
  37. package/.output/public/_nuxt/{D7iYVmH6.js → BmVLxnDU.js} +1 -1
  38. package/.output/public/_nuxt/{6lIxuL6n.js → BtHQ1T0f.js} +1 -1
  39. package/.output/public/_nuxt/{RRbnMIVe.js → ByYh0uRg.js} +1 -1
  40. package/.output/public/_nuxt/{DBuW01Fx.js → C27WoGNZ.js} +1 -1
  41. package/.output/public/_nuxt/{DJ4pqxg-.js → C2FxZbO_.js} +1 -1
  42. package/.output/public/_nuxt/{myNwwtfj.js → C2vq6Te8.js} +1 -1
  43. package/.output/public/_nuxt/{C3JOLqW1.js → C39dQ88F.js} +1 -1
  44. package/.output/public/_nuxt/{4nN41Tyd.js → C3NST0BU.js} +1 -1
  45. package/.output/public/_nuxt/{BltasKce.js → C4mwL7SE.js} +1 -1
  46. package/.output/public/_nuxt/{B1vDCixB.js → C5R5QaCA.js} +1 -1
  47. package/.output/public/_nuxt/{CwOUYOe5.js → C6qKcgOY.js} +1 -1
  48. package/.output/public/_nuxt/{DGJKfutb.js → C71_a1IX.js} +1 -1
  49. package/.output/public/_nuxt/{CrjNndEO.js → C9WIgRRL.js} +1 -1
  50. package/.output/public/_nuxt/{B5JDxHxC.js → CBTkrk2M.js} +1 -1
  51. package/.output/public/_nuxt/{UbZP7wjm.js → CEnSeCqn.js} +1 -1
  52. package/.output/public/_nuxt/{Cn83lLUb.js → CKxSHyww.js} +1 -1
  53. package/.output/public/_nuxt/{CbTu13wM.js → CLfF6dSn.js} +1 -1
  54. package/.output/public/_nuxt/{Bsdcw5gr.js → CPutXj8l.js} +1 -1
  55. package/.output/public/_nuxt/{CrW6y2-s.js → CQqCBrXj.js} +1 -1
  56. package/.output/public/_nuxt/{OrcbFmB1.js → CSKJ-Ahh.js} +1 -1
  57. package/.output/public/_nuxt/{XJYoLoTi.js → CTCcEJU3.js} +1 -1
  58. package/.output/public/_nuxt/{Bk9-HxOg.js → CVFwOzbl.js} +1 -1
  59. package/.output/public/_nuxt/{CqMgz85Z.js → CVdCqaby.js} +1 -1
  60. package/.output/public/_nuxt/{Cmj-BR0q.js → CVqlefTY.js} +1 -1
  61. package/.output/public/_nuxt/CWyMCJQH.js +1 -0
  62. package/.output/public/_nuxt/{xrh9hzzH.js → CY-QVcA5.js} +2 -2
  63. package/.output/public/_nuxt/{BQ1T6zWA.js → CY-cjAwJ.js} +1 -1
  64. package/.output/public/_nuxt/{CziltI1u.js → CYPO5o_C.js} +1 -1
  65. package/.output/public/_nuxt/{C1FhgWcI.js → CZRnNmU8.js} +1 -1
  66. package/.output/public/_nuxt/{BES6FzF5.js → CZVzFlpI.js} +1 -1
  67. package/.output/public/_nuxt/{CsbHYpNi.js → CZoEPC_Q.js} +3 -3
  68. package/.output/public/_nuxt/{DvATBMPl.js → Cc-2ziaZ.js} +1 -1
  69. package/.output/public/_nuxt/{D3RROe4s.js → ChcO9s3o.js} +1 -1
  70. package/.output/public/_nuxt/{CIUZAp6g.js → Cl-LOSDV.js} +1 -1
  71. package/.output/public/_nuxt/{BwJVN9k0.js → CobqYwkp.js} +1 -1
  72. package/.output/public/_nuxt/{Cmdr5BNz.js → CqNwHCpo.js} +1 -1
  73. package/.output/public/_nuxt/{HPOXd4gt.js → CuxrHsu-.js} +1 -1
  74. package/.output/public/_nuxt/{BYIq3eP8.js → CwPdIZ9J.js} +1 -1
  75. package/.output/public/_nuxt/{D-O8wAju.js → D0ifH682.js} +1 -1
  76. package/.output/public/_nuxt/{BwVt3BzR.js → D3AZaldL.js} +1 -1
  77. package/.output/public/_nuxt/{BE_OHTBv.js → D4UJwDQJ.js} +1 -1
  78. package/.output/public/_nuxt/{hm3ShyaF.js → D5jZq8b3.js} +1 -1
  79. package/.output/public/_nuxt/{pNqWPbXW.js → D5q8SnqE.js} +1 -1
  80. package/.output/public/_nuxt/{BgG2k-zy.js → D8M722pn.js} +1 -1
  81. package/.output/public/_nuxt/{B2MVZlI-.js → D8lwrAYS.js} +1 -1
  82. package/.output/public/_nuxt/{DYu_NYj3.js → D9nmzBAw.js} +1 -1
  83. package/.output/public/_nuxt/{DBKxzQ3U.js → DC4idAGt.js} +1 -1
  84. package/.output/public/_nuxt/{qWWnsfRV.js → DEd2xVbS.js} +1 -1
  85. package/.output/public/_nuxt/{nTCVPCKg.js → DH4YkDAi.js} +1 -1
  86. package/.output/public/_nuxt/{DmmQUhEb.js → DJTCT0bl.js} +1 -1
  87. package/.output/public/_nuxt/{rRYEvKFu.js → DNP5E1bC.js} +1 -1
  88. package/.output/public/_nuxt/{DI1FIvaM.js → DO9SFIh1.js} +1 -1
  89. package/.output/public/_nuxt/DPklr_tJ.js +2 -0
  90. package/.output/public/_nuxt/{-JdScH3W.js → DQM4eBdt.js} +1 -1
  91. package/.output/public/_nuxt/{5MZBbx-H.js → DQh6I9z9.js} +1 -1
  92. package/.output/public/_nuxt/{DLuRYg2p.js → DS2wStH1.js} +1 -1
  93. package/.output/public/_nuxt/{0EY9Msdx.js → DTAStixR.js} +1 -1
  94. package/.output/public/_nuxt/{fVkHtgGF.js → DTGenhcA.js} +1 -1
  95. package/.output/public/_nuxt/{4Qy4OdWt.js → DUAAXJ6Q.js} +1 -1
  96. package/.output/public/_nuxt/{DTrFhdRO.js → DUVzIl3o.js} +1 -1
  97. package/.output/public/_nuxt/{Dj2opPDu.js → DXdwpJ-I.js} +1 -1
  98. package/.output/public/_nuxt/{C8tXHRIo.js → DY3uK7wM.js} +1 -1
  99. package/.output/public/_nuxt/{D76Dw8rw.js → DYbZBZet.js} +1 -1
  100. package/.output/public/_nuxt/{DSgubznn.js → D_4LPm1U.js} +1 -1
  101. package/.output/public/_nuxt/{D8gh62A0.js → Db4KMnt8.js} +1 -1
  102. package/.output/public/_nuxt/{JQV21WEV.js → DcJbYLTp.js} +1 -1
  103. package/.output/public/_nuxt/{D5G5UL_g.js → DfF81NlA.js} +1 -1
  104. package/.output/public/_nuxt/{HlbU_z9a.js → DhI5cA_n.js} +1 -1
  105. package/.output/public/_nuxt/{CaLO8sre.js → DhuOKJda.js} +1 -1
  106. package/.output/public/_nuxt/{CDradKPE.js → Di-Nc75e.js} +1 -1
  107. package/.output/public/_nuxt/{C2DZeD9G.js → Djs0Tlpa.js} +1 -1
  108. package/.output/public/_nuxt/DmmdPt_5.js +1 -0
  109. package/.output/public/_nuxt/{DSynhNOO.js → Dn5a-guE.js} +1 -1
  110. package/.output/public/_nuxt/{k16puyWi.js → DtjjnHnt.js} +1 -1
  111. package/.output/public/_nuxt/{CEJh-OAl.js → DuvzM-P1.js} +1 -1
  112. package/.output/public/_nuxt/{D7WbsJsa.js → DwY7rCd_.js} +1 -1
  113. package/.output/public/_nuxt/{REP2-rzf.js → Dya5oK8u.js} +1 -1
  114. package/.output/public/_nuxt/{CIJ2MJdc.js → DzA58_Lm.js} +1 -1
  115. package/.output/public/_nuxt/{Bp9kHdw6.js → DzGy77Vr.js} +1 -1
  116. package/.output/public/_nuxt/{DfIqFkyp.js → E3rXPwU8.js} +1 -1
  117. package/.output/public/_nuxt/{NusIKwmA.js → EgKnQnf-.js} +1 -1
  118. package/.output/public/_nuxt/{Clr3MHUr.js → GtEM7xVU.js} +1 -1
  119. package/.output/public/_nuxt/{DQd-GXKJ.js → H6JbrRBU.js} +1 -1
  120. package/.output/public/_nuxt/{BzTjmQCD.js → ILEvizzp.js} +1 -1
  121. package/.output/public/_nuxt/{DUDbJONU.js → JX1oqJI9.js} +1 -1
  122. package/.output/public/_nuxt/{BsnhHCOa.js → JbHa4oXq.js} +1 -1
  123. package/.output/public/_nuxt/{BE4Ndhrq.js → Kw0zy3FG.js} +1 -1
  124. package/.output/public/_nuxt/{BOGXUgGg.js → N5XtbYVD.js} +1 -1
  125. package/.output/public/_nuxt/{Oy4_RPEZ.js → PP_4ebzl.js} +1 -1
  126. package/.output/public/_nuxt/{DkhxRAb3.js → SrncdpaW.js} +1 -1
  127. package/.output/public/_nuxt/{C8wa4Wh4.js → U1MWjQMi.js} +1 -1
  128. package/.output/public/_nuxt/{CGfVTQUF.js → Um1vPiAz.js} +1 -1
  129. package/.output/public/_nuxt/{CH8kNq6W.js → XCjS70z4.js} +1 -1
  130. package/.output/public/_nuxt/{BZqdzrSw.js → YX8avsvq.js} +2 -2
  131. package/.output/public/_nuxt/{1zIQX9mh.js → _cy8R3nk.js} +1 -1
  132. package/.output/public/_nuxt/{DJoRBCVm.js → apYB9dr5.js} +1 -1
  133. package/.output/public/_nuxt/builds/latest.json +1 -1
  134. package/.output/public/_nuxt/builds/meta/def74b99-d70c-4f30-aa29-70248cbeac7d.json +1 -0
  135. package/.output/public/_nuxt/entry.NKPfH2kE.css +1 -0
  136. package/.output/public/_nuxt/{B6bnHNWY.js → fbyIeNkc.js} +1 -1
  137. package/.output/public/_nuxt/{BjI5wb_q.js → g5MjDvm5.js} +1 -1
  138. package/.output/public/_nuxt/{BfECQayu.js → gTrVszwd.js} +1 -1
  139. package/.output/public/_nuxt/{TGVM5w2K.js → ixlNW2So.js} +1 -1
  140. package/.output/public/_nuxt/{CXBOHJ2W.js → nnQqD5pb.js} +1 -1
  141. package/.output/public/_nuxt/{C4ScCUjy.js → rfGRTJJW.js} +1 -1
  142. package/.output/public/_nuxt/{DCL9gWFw.js → t8aDAkZ5.js} +1 -1
  143. package/.output/public/_nuxt/{BJ8jbKuq.js → vIOxcXKR.js} +1 -1
  144. package/.output/public/_nuxt/{DA2RowFe.js → vScW1Zgm.js} +1 -1
  145. package/.output/public/_nuxt/{B6wYZD_K.js → wO6z2ugJ.js} +1 -1
  146. package/.output/public/_nuxt/{CwKe2KkK.js → x6FRJ5ac.js} +1 -1
  147. package/.output/public/_nuxt/{D7DTZ0iS.js → zq-a1TeT.js} +1 -1
  148. package/.output/server/chunks/build/{chat-CZMiB68R.mjs → chat-CR3JIVEq.mjs} +65 -11
  149. package/.output/server/chunks/build/chat-CR3JIVEq.mjs.map +1 -0
  150. package/.output/server/chunks/build/client.precomputed.mjs +1 -1
  151. package/.output/server/chunks/build/server.mjs +2 -2
  152. package/.output/server/chunks/build/{usage-CSrBh4Or.mjs → usage-BHdQZbfI.mjs} +9 -5
  153. package/.output/server/chunks/build/{usage-CSrBh4Or.mjs.map → usage-BHdQZbfI.mjs.map} +1 -1
  154. package/.output/server/chunks/nitro/nitro.mjs +1076 -862
  155. package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
  156. package/.output/server/chunks/routes/_ws/chat.mjs +2 -1
  157. package/.output/server/chunks/routes/_ws/chat.mjs.map +1 -1
  158. package/.output/server/chunks/routes/api/conversations/_id_.delete.mjs +4 -1
  159. package/.output/server/chunks/routes/api/conversations/_id_.delete.mjs.map +1 -1
  160. package/.output/server/chunks/routes/api/index.get3.mjs +1 -1
  161. package/.output/server/chunks/routes/api/index.get3.mjs.map +1 -1
  162. package/.output/server/chunks/routes/api/usage/stats.get.mjs +2 -0
  163. package/.output/server/chunks/routes/api/usage/stats.get.mjs.map +1 -1
  164. package/.output/server/package.json +1 -1
  165. package/app/components/chat/ConversationList.vue +7 -1
  166. package/app/components/chat/MessageBubble.vue +45 -1
  167. package/app/components/usage/UsageRecordsTable.vue +4 -2
  168. package/app/components/usage/UsageSourceDonut.client.vue +4 -2
  169. package/app/components/usage/UsageTopConsumers.vue +4 -2
  170. package/app/composables/useChat.ts +3 -0
  171. package/package.json +1 -1
  172. package/server/api/conversations/[id].delete.ts +9 -0
  173. package/server/api/conversations/index.get.ts +2 -1
  174. package/server/api/usage/stats.get.ts +2 -0
  175. package/server/bridge/responder.ts +248 -0
  176. package/server/bridge/router.ts +6 -4
  177. package/server/db/schema.ts +3 -1
  178. package/server/drizzle/migrations/0015_great_mephistopheles.sql +2 -0
  179. package/server/drizzle/migrations/meta/0015_snapshot.json +1972 -0
  180. package/server/drizzle/migrations/meta/_journal.json +7 -0
  181. package/server/routes/_ws/chat.ts +2 -1
  182. package/server/utils/log-token-usage.ts +1 -1
  183. package/shared/types/index.ts +6 -0
  184. package/.output/public/_nuxt/1lOC4Si0.js +0 -1
  185. package/.output/public/_nuxt/AUdD1uDD.js +0 -1
  186. package/.output/public/_nuxt/DMy2sxuC.js +0 -1
  187. package/.output/public/_nuxt/DlSJ4TF_.js +0 -1
  188. package/.output/public/_nuxt/PzQHm02e.js +0 -1
  189. package/.output/public/_nuxt/builds/meta/613faa5d-8ace-45e0-8274-b611cc4fd1ad.json +0 -1
  190. package/.output/public/_nuxt/entry.DkvuF_CR.css +0 -1
  191. package/.output/public/_nuxt/svWfwR0T.js +0 -2
  192. package/.output/server/chunks/build/chat-CZMiB68R.mjs.map +0 -1
@@ -0,0 +1,1972 @@
1
+ {
2
+ "id": "459e61ff-a395-4a9c-9e9a-eb617249e3de",
3
+ "prevId": "bc43cda5-2bb3-4079-9025-3f6ee540bee6",
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
+ "relevance_score": {
1056
+ "name": "relevance_score",
1057
+ "type": "real",
1058
+ "primaryKey": false,
1059
+ "notNull": true,
1060
+ "default": 1
1061
+ },
1062
+ "access_count": {
1063
+ "name": "access_count",
1064
+ "type": "integer",
1065
+ "primaryKey": false,
1066
+ "notNull": true,
1067
+ "default": 0
1068
+ },
1069
+ "last_accessed_at": {
1070
+ "name": "last_accessed_at",
1071
+ "type": "timestamp with time zone",
1072
+ "primaryKey": false,
1073
+ "notNull": false
1074
+ },
1075
+ "created_at": {
1076
+ "name": "created_at",
1077
+ "type": "timestamp with time zone",
1078
+ "primaryKey": false,
1079
+ "notNull": true,
1080
+ "default": "now()"
1081
+ },
1082
+ "expires_at": {
1083
+ "name": "expires_at",
1084
+ "type": "timestamp with time zone",
1085
+ "primaryKey": false,
1086
+ "notNull": false
1087
+ }
1088
+ },
1089
+ "indexes": {},
1090
+ "foreignKeys": {},
1091
+ "compositePrimaryKeys": {},
1092
+ "uniqueConstraints": {},
1093
+ "policies": {},
1094
+ "checkConstraints": {},
1095
+ "isRLSEnabled": false
1096
+ },
1097
+ "public.projects": {
1098
+ "name": "projects",
1099
+ "schema": "",
1100
+ "columns": {
1101
+ "id": {
1102
+ "name": "id",
1103
+ "type": "uuid",
1104
+ "primaryKey": true,
1105
+ "notNull": true,
1106
+ "default": "gen_random_uuid()"
1107
+ },
1108
+ "name": {
1109
+ "name": "name",
1110
+ "type": "text",
1111
+ "primaryKey": false,
1112
+ "notNull": true
1113
+ },
1114
+ "color": {
1115
+ "name": "color",
1116
+ "type": "text",
1117
+ "primaryKey": false,
1118
+ "notNull": true
1119
+ },
1120
+ "description": {
1121
+ "name": "description",
1122
+ "type": "text",
1123
+ "primaryKey": false,
1124
+ "notNull": false
1125
+ },
1126
+ "created_at": {
1127
+ "name": "created_at",
1128
+ "type": "timestamp with time zone",
1129
+ "primaryKey": false,
1130
+ "notNull": true,
1131
+ "default": "now()"
1132
+ },
1133
+ "modified_at": {
1134
+ "name": "modified_at",
1135
+ "type": "timestamp with time zone",
1136
+ "primaryKey": false,
1137
+ "notNull": false
1138
+ },
1139
+ "deleted_at": {
1140
+ "name": "deleted_at",
1141
+ "type": "timestamp with time zone",
1142
+ "primaryKey": false,
1143
+ "notNull": false
1144
+ },
1145
+ "created_by": {
1146
+ "name": "created_by",
1147
+ "type": "text",
1148
+ "primaryKey": false,
1149
+ "notNull": false
1150
+ },
1151
+ "modified_by": {
1152
+ "name": "modified_by",
1153
+ "type": "text",
1154
+ "primaryKey": false,
1155
+ "notNull": false
1156
+ },
1157
+ "deleted_by": {
1158
+ "name": "deleted_by",
1159
+ "type": "text",
1160
+ "primaryKey": false,
1161
+ "notNull": false
1162
+ }
1163
+ },
1164
+ "indexes": {},
1165
+ "foreignKeys": {
1166
+ "projects_created_by_user_id_fk": {
1167
+ "name": "projects_created_by_user_id_fk",
1168
+ "tableFrom": "projects",
1169
+ "tableTo": "user",
1170
+ "columnsFrom": [
1171
+ "created_by"
1172
+ ],
1173
+ "columnsTo": [
1174
+ "id"
1175
+ ],
1176
+ "onDelete": "set null",
1177
+ "onUpdate": "no action"
1178
+ },
1179
+ "projects_modified_by_user_id_fk": {
1180
+ "name": "projects_modified_by_user_id_fk",
1181
+ "tableFrom": "projects",
1182
+ "tableTo": "user",
1183
+ "columnsFrom": [
1184
+ "modified_by"
1185
+ ],
1186
+ "columnsTo": [
1187
+ "id"
1188
+ ],
1189
+ "onDelete": "set null",
1190
+ "onUpdate": "no action"
1191
+ },
1192
+ "projects_deleted_by_user_id_fk": {
1193
+ "name": "projects_deleted_by_user_id_fk",
1194
+ "tableFrom": "projects",
1195
+ "tableTo": "user",
1196
+ "columnsFrom": [
1197
+ "deleted_by"
1198
+ ],
1199
+ "columnsTo": [
1200
+ "id"
1201
+ ],
1202
+ "onDelete": "set null",
1203
+ "onUpdate": "no action"
1204
+ }
1205
+ },
1206
+ "compositePrimaryKeys": {},
1207
+ "uniqueConstraints": {},
1208
+ "policies": {},
1209
+ "checkConstraints": {},
1210
+ "isRLSEnabled": false
1211
+ },
1212
+ "public.reminders": {
1213
+ "name": "reminders",
1214
+ "schema": "",
1215
+ "columns": {
1216
+ "id": {
1217
+ "name": "id",
1218
+ "type": "uuid",
1219
+ "primaryKey": true,
1220
+ "notNull": true,
1221
+ "default": "gen_random_uuid()"
1222
+ },
1223
+ "task_id": {
1224
+ "name": "task_id",
1225
+ "type": "uuid",
1226
+ "primaryKey": false,
1227
+ "notNull": false
1228
+ },
1229
+ "message": {
1230
+ "name": "message",
1231
+ "type": "text",
1232
+ "primaryKey": false,
1233
+ "notNull": true
1234
+ },
1235
+ "remind_at": {
1236
+ "name": "remind_at",
1237
+ "type": "timestamp with time zone",
1238
+ "primaryKey": false,
1239
+ "notNull": true
1240
+ },
1241
+ "notified": {
1242
+ "name": "notified",
1243
+ "type": "boolean",
1244
+ "primaryKey": false,
1245
+ "notNull": true,
1246
+ "default": false
1247
+ },
1248
+ "created_at": {
1249
+ "name": "created_at",
1250
+ "type": "timestamp with time zone",
1251
+ "primaryKey": false,
1252
+ "notNull": true,
1253
+ "default": "now()"
1254
+ }
1255
+ },
1256
+ "indexes": {},
1257
+ "foreignKeys": {
1258
+ "reminders_task_id_tasks_id_fk": {
1259
+ "name": "reminders_task_id_tasks_id_fk",
1260
+ "tableFrom": "reminders",
1261
+ "tableTo": "tasks",
1262
+ "columnsFrom": [
1263
+ "task_id"
1264
+ ],
1265
+ "columnsTo": [
1266
+ "id"
1267
+ ],
1268
+ "onDelete": "cascade",
1269
+ "onUpdate": "no action"
1270
+ }
1271
+ },
1272
+ "compositePrimaryKeys": {},
1273
+ "uniqueConstraints": {},
1274
+ "policies": {},
1275
+ "checkConstraints": {},
1276
+ "isRLSEnabled": false
1277
+ },
1278
+ "public.secrets": {
1279
+ "name": "secrets",
1280
+ "schema": "",
1281
+ "columns": {
1282
+ "id": {
1283
+ "name": "id",
1284
+ "type": "uuid",
1285
+ "primaryKey": true,
1286
+ "notNull": true,
1287
+ "default": "gen_random_uuid()"
1288
+ },
1289
+ "key": {
1290
+ "name": "key",
1291
+ "type": "text",
1292
+ "primaryKey": false,
1293
+ "notNull": true
1294
+ },
1295
+ "encrypted_value": {
1296
+ "name": "encrypted_value",
1297
+ "type": "text",
1298
+ "primaryKey": false,
1299
+ "notNull": true
1300
+ },
1301
+ "iv": {
1302
+ "name": "iv",
1303
+ "type": "text",
1304
+ "primaryKey": false,
1305
+ "notNull": true
1306
+ },
1307
+ "description": {
1308
+ "name": "description",
1309
+ "type": "text",
1310
+ "primaryKey": false,
1311
+ "notNull": false
1312
+ },
1313
+ "created_at": {
1314
+ "name": "created_at",
1315
+ "type": "timestamp with time zone",
1316
+ "primaryKey": false,
1317
+ "notNull": true,
1318
+ "default": "now()"
1319
+ },
1320
+ "updated_at": {
1321
+ "name": "updated_at",
1322
+ "type": "timestamp with time zone",
1323
+ "primaryKey": false,
1324
+ "notNull": true,
1325
+ "default": "now()"
1326
+ },
1327
+ "created_by": {
1328
+ "name": "created_by",
1329
+ "type": "text",
1330
+ "primaryKey": false,
1331
+ "notNull": false
1332
+ }
1333
+ },
1334
+ "indexes": {},
1335
+ "foreignKeys": {
1336
+ "secrets_created_by_user_id_fk": {
1337
+ "name": "secrets_created_by_user_id_fk",
1338
+ "tableFrom": "secrets",
1339
+ "tableTo": "user",
1340
+ "columnsFrom": [
1341
+ "created_by"
1342
+ ],
1343
+ "columnsTo": [
1344
+ "id"
1345
+ ],
1346
+ "onDelete": "set null",
1347
+ "onUpdate": "no action"
1348
+ }
1349
+ },
1350
+ "compositePrimaryKeys": {},
1351
+ "uniqueConstraints": {
1352
+ "secrets_key_unique": {
1353
+ "name": "secrets_key_unique",
1354
+ "nullsNotDistinct": false,
1355
+ "columns": [
1356
+ "key"
1357
+ ]
1358
+ }
1359
+ },
1360
+ "policies": {},
1361
+ "checkConstraints": {},
1362
+ "isRLSEnabled": false
1363
+ },
1364
+ "public.session": {
1365
+ "name": "session",
1366
+ "schema": "",
1367
+ "columns": {
1368
+ "id": {
1369
+ "name": "id",
1370
+ "type": "text",
1371
+ "primaryKey": true,
1372
+ "notNull": true
1373
+ },
1374
+ "user_id": {
1375
+ "name": "user_id",
1376
+ "type": "text",
1377
+ "primaryKey": false,
1378
+ "notNull": true
1379
+ },
1380
+ "token": {
1381
+ "name": "token",
1382
+ "type": "text",
1383
+ "primaryKey": false,
1384
+ "notNull": true
1385
+ },
1386
+ "expires_at": {
1387
+ "name": "expires_at",
1388
+ "type": "timestamp with time zone",
1389
+ "primaryKey": false,
1390
+ "notNull": true
1391
+ },
1392
+ "ip_address": {
1393
+ "name": "ip_address",
1394
+ "type": "text",
1395
+ "primaryKey": false,
1396
+ "notNull": false
1397
+ },
1398
+ "user_agent": {
1399
+ "name": "user_agent",
1400
+ "type": "text",
1401
+ "primaryKey": false,
1402
+ "notNull": false
1403
+ },
1404
+ "created_at": {
1405
+ "name": "created_at",
1406
+ "type": "timestamp with time zone",
1407
+ "primaryKey": false,
1408
+ "notNull": true,
1409
+ "default": "now()"
1410
+ },
1411
+ "updated_at": {
1412
+ "name": "updated_at",
1413
+ "type": "timestamp with time zone",
1414
+ "primaryKey": false,
1415
+ "notNull": true,
1416
+ "default": "now()"
1417
+ }
1418
+ },
1419
+ "indexes": {},
1420
+ "foreignKeys": {
1421
+ "session_user_id_user_id_fk": {
1422
+ "name": "session_user_id_user_id_fk",
1423
+ "tableFrom": "session",
1424
+ "tableTo": "user",
1425
+ "columnsFrom": [
1426
+ "user_id"
1427
+ ],
1428
+ "columnsTo": [
1429
+ "id"
1430
+ ],
1431
+ "onDelete": "cascade",
1432
+ "onUpdate": "no action"
1433
+ }
1434
+ },
1435
+ "compositePrimaryKeys": {},
1436
+ "uniqueConstraints": {
1437
+ "session_token_unique": {
1438
+ "name": "session_token_unique",
1439
+ "nullsNotDistinct": false,
1440
+ "columns": [
1441
+ "token"
1442
+ ]
1443
+ }
1444
+ },
1445
+ "policies": {},
1446
+ "checkConstraints": {},
1447
+ "isRLSEnabled": false
1448
+ },
1449
+ "public.skills_catalog": {
1450
+ "name": "skills_catalog",
1451
+ "schema": "",
1452
+ "columns": {
1453
+ "id": {
1454
+ "name": "id",
1455
+ "type": "uuid",
1456
+ "primaryKey": true,
1457
+ "notNull": true,
1458
+ "default": "gen_random_uuid()"
1459
+ },
1460
+ "name": {
1461
+ "name": "name",
1462
+ "type": "text",
1463
+ "primaryKey": false,
1464
+ "notNull": true
1465
+ },
1466
+ "description": {
1467
+ "name": "description",
1468
+ "type": "text",
1469
+ "primaryKey": false,
1470
+ "notNull": true
1471
+ },
1472
+ "version": {
1473
+ "name": "version",
1474
+ "type": "text",
1475
+ "primaryKey": false,
1476
+ "notNull": true
1477
+ },
1478
+ "author": {
1479
+ "name": "author",
1480
+ "type": "text",
1481
+ "primaryKey": false,
1482
+ "notNull": true
1483
+ },
1484
+ "tags": {
1485
+ "name": "tags",
1486
+ "type": "text[]",
1487
+ "primaryKey": false,
1488
+ "notNull": false,
1489
+ "default": "'{}'"
1490
+ },
1491
+ "requires_secrets": {
1492
+ "name": "requires_secrets",
1493
+ "type": "text[]",
1494
+ "primaryKey": false,
1495
+ "notNull": false,
1496
+ "default": "'{}'"
1497
+ },
1498
+ "files": {
1499
+ "name": "files",
1500
+ "type": "text[]",
1501
+ "primaryKey": false,
1502
+ "notNull": false,
1503
+ "default": "'{}'"
1504
+ },
1505
+ "updated_at": {
1506
+ "name": "updated_at",
1507
+ "type": "timestamp with time zone",
1508
+ "primaryKey": false,
1509
+ "notNull": true
1510
+ },
1511
+ "synced_at": {
1512
+ "name": "synced_at",
1513
+ "type": "timestamp with time zone",
1514
+ "primaryKey": false,
1515
+ "notNull": true,
1516
+ "default": "now()"
1517
+ }
1518
+ },
1519
+ "indexes": {},
1520
+ "foreignKeys": {},
1521
+ "compositePrimaryKeys": {},
1522
+ "uniqueConstraints": {
1523
+ "skills_catalog_name_unique": {
1524
+ "name": "skills_catalog_name_unique",
1525
+ "nullsNotDistinct": false,
1526
+ "columns": [
1527
+ "name"
1528
+ ]
1529
+ }
1530
+ },
1531
+ "policies": {},
1532
+ "checkConstraints": {},
1533
+ "isRLSEnabled": false
1534
+ },
1535
+ "public.tasks": {
1536
+ "name": "tasks",
1537
+ "schema": "",
1538
+ "columns": {
1539
+ "id": {
1540
+ "name": "id",
1541
+ "type": "uuid",
1542
+ "primaryKey": true,
1543
+ "notNull": true,
1544
+ "default": "gen_random_uuid()"
1545
+ },
1546
+ "title": {
1547
+ "name": "title",
1548
+ "type": "text",
1549
+ "primaryKey": false,
1550
+ "notNull": true
1551
+ },
1552
+ "description": {
1553
+ "name": "description",
1554
+ "type": "text",
1555
+ "primaryKey": false,
1556
+ "notNull": false
1557
+ },
1558
+ "status": {
1559
+ "name": "status",
1560
+ "type": "text",
1561
+ "primaryKey": false,
1562
+ "notNull": true,
1563
+ "default": "'todo'"
1564
+ },
1565
+ "priority": {
1566
+ "name": "priority",
1567
+ "type": "integer",
1568
+ "primaryKey": false,
1569
+ "notNull": true,
1570
+ "default": 2
1571
+ },
1572
+ "project_id": {
1573
+ "name": "project_id",
1574
+ "type": "uuid",
1575
+ "primaryKey": false,
1576
+ "notNull": false
1577
+ },
1578
+ "due_date": {
1579
+ "name": "due_date",
1580
+ "type": "timestamp with time zone",
1581
+ "primaryKey": false,
1582
+ "notNull": false
1583
+ },
1584
+ "tags": {
1585
+ "name": "tags",
1586
+ "type": "text[]",
1587
+ "primaryKey": false,
1588
+ "notNull": false,
1589
+ "default": "'{}'"
1590
+ },
1591
+ "created_at": {
1592
+ "name": "created_at",
1593
+ "type": "timestamp with time zone",
1594
+ "primaryKey": false,
1595
+ "notNull": true,
1596
+ "default": "now()"
1597
+ },
1598
+ "modified_at": {
1599
+ "name": "modified_at",
1600
+ "type": "timestamp with time zone",
1601
+ "primaryKey": false,
1602
+ "notNull": false
1603
+ },
1604
+ "completed_at": {
1605
+ "name": "completed_at",
1606
+ "type": "timestamp with time zone",
1607
+ "primaryKey": false,
1608
+ "notNull": false
1609
+ },
1610
+ "deleted_at": {
1611
+ "name": "deleted_at",
1612
+ "type": "timestamp with time zone",
1613
+ "primaryKey": false,
1614
+ "notNull": false
1615
+ },
1616
+ "created_by": {
1617
+ "name": "created_by",
1618
+ "type": "text",
1619
+ "primaryKey": false,
1620
+ "notNull": false
1621
+ },
1622
+ "modified_by": {
1623
+ "name": "modified_by",
1624
+ "type": "text",
1625
+ "primaryKey": false,
1626
+ "notNull": false
1627
+ },
1628
+ "deleted_by": {
1629
+ "name": "deleted_by",
1630
+ "type": "text",
1631
+ "primaryKey": false,
1632
+ "notNull": false
1633
+ }
1634
+ },
1635
+ "indexes": {},
1636
+ "foreignKeys": {
1637
+ "tasks_project_id_projects_id_fk": {
1638
+ "name": "tasks_project_id_projects_id_fk",
1639
+ "tableFrom": "tasks",
1640
+ "tableTo": "projects",
1641
+ "columnsFrom": [
1642
+ "project_id"
1643
+ ],
1644
+ "columnsTo": [
1645
+ "id"
1646
+ ],
1647
+ "onDelete": "set null",
1648
+ "onUpdate": "no action"
1649
+ },
1650
+ "tasks_created_by_user_id_fk": {
1651
+ "name": "tasks_created_by_user_id_fk",
1652
+ "tableFrom": "tasks",
1653
+ "tableTo": "user",
1654
+ "columnsFrom": [
1655
+ "created_by"
1656
+ ],
1657
+ "columnsTo": [
1658
+ "id"
1659
+ ],
1660
+ "onDelete": "set null",
1661
+ "onUpdate": "no action"
1662
+ },
1663
+ "tasks_modified_by_user_id_fk": {
1664
+ "name": "tasks_modified_by_user_id_fk",
1665
+ "tableFrom": "tasks",
1666
+ "tableTo": "user",
1667
+ "columnsFrom": [
1668
+ "modified_by"
1669
+ ],
1670
+ "columnsTo": [
1671
+ "id"
1672
+ ],
1673
+ "onDelete": "set null",
1674
+ "onUpdate": "no action"
1675
+ },
1676
+ "tasks_deleted_by_user_id_fk": {
1677
+ "name": "tasks_deleted_by_user_id_fk",
1678
+ "tableFrom": "tasks",
1679
+ "tableTo": "user",
1680
+ "columnsFrom": [
1681
+ "deleted_by"
1682
+ ],
1683
+ "columnsTo": [
1684
+ "id"
1685
+ ],
1686
+ "onDelete": "set null",
1687
+ "onUpdate": "no action"
1688
+ }
1689
+ },
1690
+ "compositePrimaryKeys": {},
1691
+ "uniqueConstraints": {},
1692
+ "policies": {},
1693
+ "checkConstraints": {},
1694
+ "isRLSEnabled": false
1695
+ },
1696
+ "public.token_usage": {
1697
+ "name": "token_usage",
1698
+ "schema": "",
1699
+ "columns": {
1700
+ "id": {
1701
+ "name": "id",
1702
+ "type": "uuid",
1703
+ "primaryKey": true,
1704
+ "notNull": true,
1705
+ "default": "gen_random_uuid()"
1706
+ },
1707
+ "source": {
1708
+ "name": "source",
1709
+ "type": "text",
1710
+ "primaryKey": false,
1711
+ "notNull": true
1712
+ },
1713
+ "source_id": {
1714
+ "name": "source_id",
1715
+ "type": "text",
1716
+ "primaryKey": false,
1717
+ "notNull": false
1718
+ },
1719
+ "source_name": {
1720
+ "name": "source_name",
1721
+ "type": "text",
1722
+ "primaryKey": false,
1723
+ "notNull": false
1724
+ },
1725
+ "input_tokens": {
1726
+ "name": "input_tokens",
1727
+ "type": "integer",
1728
+ "primaryKey": false,
1729
+ "notNull": true,
1730
+ "default": 0
1731
+ },
1732
+ "output_tokens": {
1733
+ "name": "output_tokens",
1734
+ "type": "integer",
1735
+ "primaryKey": false,
1736
+ "notNull": true,
1737
+ "default": 0
1738
+ },
1739
+ "cost_usd": {
1740
+ "name": "cost_usd",
1741
+ "type": "real",
1742
+ "primaryKey": false,
1743
+ "notNull": true,
1744
+ "default": 0
1745
+ },
1746
+ "duration_ms": {
1747
+ "name": "duration_ms",
1748
+ "type": "integer",
1749
+ "primaryKey": false,
1750
+ "notNull": false
1751
+ },
1752
+ "num_turns": {
1753
+ "name": "num_turns",
1754
+ "type": "integer",
1755
+ "primaryKey": false,
1756
+ "notNull": false
1757
+ },
1758
+ "created_at": {
1759
+ "name": "created_at",
1760
+ "type": "timestamp with time zone",
1761
+ "primaryKey": false,
1762
+ "notNull": true,
1763
+ "default": "now()"
1764
+ }
1765
+ },
1766
+ "indexes": {},
1767
+ "foreignKeys": {},
1768
+ "compositePrimaryKeys": {},
1769
+ "uniqueConstraints": {},
1770
+ "policies": {},
1771
+ "checkConstraints": {},
1772
+ "isRLSEnabled": false
1773
+ },
1774
+ "public.user": {
1775
+ "name": "user",
1776
+ "schema": "",
1777
+ "columns": {
1778
+ "id": {
1779
+ "name": "id",
1780
+ "type": "text",
1781
+ "primaryKey": true,
1782
+ "notNull": true
1783
+ },
1784
+ "name": {
1785
+ "name": "name",
1786
+ "type": "text",
1787
+ "primaryKey": false,
1788
+ "notNull": true
1789
+ },
1790
+ "email": {
1791
+ "name": "email",
1792
+ "type": "text",
1793
+ "primaryKey": false,
1794
+ "notNull": true
1795
+ },
1796
+ "email_verified": {
1797
+ "name": "email_verified",
1798
+ "type": "boolean",
1799
+ "primaryKey": false,
1800
+ "notNull": true,
1801
+ "default": false
1802
+ },
1803
+ "image": {
1804
+ "name": "image",
1805
+ "type": "text",
1806
+ "primaryKey": false,
1807
+ "notNull": false
1808
+ },
1809
+ "created_at": {
1810
+ "name": "created_at",
1811
+ "type": "timestamp with time zone",
1812
+ "primaryKey": false,
1813
+ "notNull": true,
1814
+ "default": "now()"
1815
+ },
1816
+ "updated_at": {
1817
+ "name": "updated_at",
1818
+ "type": "timestamp with time zone",
1819
+ "primaryKey": false,
1820
+ "notNull": true,
1821
+ "default": "now()"
1822
+ }
1823
+ },
1824
+ "indexes": {},
1825
+ "foreignKeys": {},
1826
+ "compositePrimaryKeys": {},
1827
+ "uniqueConstraints": {
1828
+ "user_email_unique": {
1829
+ "name": "user_email_unique",
1830
+ "nullsNotDistinct": false,
1831
+ "columns": [
1832
+ "email"
1833
+ ]
1834
+ }
1835
+ },
1836
+ "policies": {},
1837
+ "checkConstraints": {},
1838
+ "isRLSEnabled": false
1839
+ },
1840
+ "public.user_settings": {
1841
+ "name": "user_settings",
1842
+ "schema": "",
1843
+ "columns": {
1844
+ "id": {
1845
+ "name": "id",
1846
+ "type": "uuid",
1847
+ "primaryKey": true,
1848
+ "notNull": true,
1849
+ "default": "gen_random_uuid()"
1850
+ },
1851
+ "user_id": {
1852
+ "name": "user_id",
1853
+ "type": "text",
1854
+ "primaryKey": false,
1855
+ "notNull": true
1856
+ },
1857
+ "settings": {
1858
+ "name": "settings",
1859
+ "type": "text",
1860
+ "primaryKey": false,
1861
+ "notNull": true,
1862
+ "default": "'{}'"
1863
+ },
1864
+ "created_at": {
1865
+ "name": "created_at",
1866
+ "type": "timestamp with time zone",
1867
+ "primaryKey": false,
1868
+ "notNull": true,
1869
+ "default": "now()"
1870
+ },
1871
+ "updated_at": {
1872
+ "name": "updated_at",
1873
+ "type": "timestamp with time zone",
1874
+ "primaryKey": false,
1875
+ "notNull": true,
1876
+ "default": "now()"
1877
+ }
1878
+ },
1879
+ "indexes": {},
1880
+ "foreignKeys": {
1881
+ "user_settings_user_id_user_id_fk": {
1882
+ "name": "user_settings_user_id_user_id_fk",
1883
+ "tableFrom": "user_settings",
1884
+ "tableTo": "user",
1885
+ "columnsFrom": [
1886
+ "user_id"
1887
+ ],
1888
+ "columnsTo": [
1889
+ "id"
1890
+ ],
1891
+ "onDelete": "cascade",
1892
+ "onUpdate": "no action"
1893
+ }
1894
+ },
1895
+ "compositePrimaryKeys": {},
1896
+ "uniqueConstraints": {
1897
+ "user_settings_user_id_unique": {
1898
+ "name": "user_settings_user_id_unique",
1899
+ "nullsNotDistinct": false,
1900
+ "columns": [
1901
+ "user_id"
1902
+ ]
1903
+ }
1904
+ },
1905
+ "policies": {},
1906
+ "checkConstraints": {},
1907
+ "isRLSEnabled": false
1908
+ },
1909
+ "public.verification": {
1910
+ "name": "verification",
1911
+ "schema": "",
1912
+ "columns": {
1913
+ "id": {
1914
+ "name": "id",
1915
+ "type": "text",
1916
+ "primaryKey": true,
1917
+ "notNull": true
1918
+ },
1919
+ "identifier": {
1920
+ "name": "identifier",
1921
+ "type": "text",
1922
+ "primaryKey": false,
1923
+ "notNull": true
1924
+ },
1925
+ "value": {
1926
+ "name": "value",
1927
+ "type": "text",
1928
+ "primaryKey": false,
1929
+ "notNull": true
1930
+ },
1931
+ "expires_at": {
1932
+ "name": "expires_at",
1933
+ "type": "timestamp with time zone",
1934
+ "primaryKey": false,
1935
+ "notNull": true
1936
+ },
1937
+ "created_at": {
1938
+ "name": "created_at",
1939
+ "type": "timestamp with time zone",
1940
+ "primaryKey": false,
1941
+ "notNull": true,
1942
+ "default": "now()"
1943
+ },
1944
+ "updated_at": {
1945
+ "name": "updated_at",
1946
+ "type": "timestamp with time zone",
1947
+ "primaryKey": false,
1948
+ "notNull": true,
1949
+ "default": "now()"
1950
+ }
1951
+ },
1952
+ "indexes": {},
1953
+ "foreignKeys": {},
1954
+ "compositePrimaryKeys": {},
1955
+ "uniqueConstraints": {},
1956
+ "policies": {},
1957
+ "checkConstraints": {},
1958
+ "isRLSEnabled": false
1959
+ }
1960
+ },
1961
+ "enums": {},
1962
+ "schemas": {},
1963
+ "sequences": {},
1964
+ "roles": {},
1965
+ "policies": {},
1966
+ "views": {},
1967
+ "_meta": {
1968
+ "columns": {},
1969
+ "schemas": {},
1970
+ "tables": {}
1971
+ }
1972
+ }