@kky42/pievo-server 2.3.0 → 2.4.2

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 (199) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/assets/MachinesModal-CSbnrUER.js +1 -0
  3. package/.output/public/assets/SignIn-0Tjqs-Ma.js +1 -0
  4. package/.output/public/assets/actionUi-DpwGIGpw.js +1 -0
  5. package/.output/public/assets/app-CaZpuwOS.css +2 -0
  6. package/.output/public/assets/index-CaS_SmDq.js +10 -0
  7. package/.output/public/assets/invite._token-Btg_0aLp.js +1 -0
  8. package/.output/public/assets/invite._token-KMD2JAgE.js +1 -0
  9. package/.output/public/assets/lifecycleUi-C7dwHtbw.js +1 -0
  10. package/.output/public/assets/loops._loopId-D5usF3DO.js +67 -0
  11. package/.output/public/assets/loops._loopId_.runs._runId-DRCgXaCq.js +3 -0
  12. package/.output/public/assets/preload-helper-DsxECZIS.js +5 -0
  13. package/.output/public/assets/routes-CtFgwdgW.js +1 -0
  14. package/.output/public/assets/routes-LDbnnQ3f.js +1 -0
  15. package/.output/public/assets/t._teamId-D41xcbsF.js +1 -0
  16. package/.output/public/assets/t._teamId-DUena1pV.js +1 -0
  17. package/.output/public/assets/ui-Do4gqMyP.js +1 -0
  18. package/.output/server/_libs/@base-ui/react+[...].mjs +4130 -4130
  19. package/.output/server/_libs/@tanstack/react-router+[...].mjs +1 -1
  20. package/.output/server/_libs/drizzle-orm+postgres.mjs +28 -1
  21. package/.output/server/_ssr/DashboardView-C2LdV6J0.mjs +914 -0
  22. package/.output/server/_ssr/{notifyFns-DuPR1zd7.mjs → MachinesModal-BjkcVjjx.mjs} +55 -35
  23. package/.output/server/_ssr/{SignIn-RmpWm9uy.mjs → SignIn-DEGrvJvb.mjs} +10 -24
  24. package/.output/server/_ssr/SocialLinks-Cm4H8pUJ.mjs +1044 -0
  25. package/.output/server/_ssr/{actionUi-BN55TNYE.mjs → actionUi-DJBWuNwr.mjs} +3 -3
  26. package/.output/server/_ssr/{artifactFiles-BCaIIrrT.mjs → artifactFiles-DtpRidFZ.mjs} +7 -8
  27. package/.output/server/_ssr/{artifactKind-BW0isV8L.mjs → artifactKind-FBYbgSuf.mjs} +27 -2
  28. package/.output/server/_ssr/artifacts-BR3jj0NC.mjs +2 -0
  29. package/.output/server/_ssr/{auth-30Z4lV1w.mjs → auth-C0zoZCGe.mjs} +16 -19
  30. package/.output/server/_ssr/boot-CdOO4xOo.mjs +2 -0
  31. package/.output/server/_ssr/{boot-3BNKujyp.mjs → boot-sNlIkoLe.mjs} +1331 -3927
  32. package/.output/server/_ssr/{bun-sqlite-dialect-BW9W1_Ps-_7tfuNRi.mjs → bun-sqlite-dialect-BW9W1_Ps-DmlZWqO7.mjs} +2 -2
  33. package/.output/server/_ssr/{d1-sqlite-dialect-BLC8LXE6-ucDUbeBk.mjs → d1-sqlite-dialect-BLC8LXE6-CCNzqZwZ.mjs} +2 -2
  34. package/.output/server/_ssr/db-CwLD-5w1.mjs +2 -0
  35. package/.output/server/_ssr/{dist-Cd6nlLlO.mjs → dist-B3SxDOpW.mjs} +2 -2
  36. package/.output/server/_ssr/{factory-CWWwV7XZ.mjs → factory-Dv3Zopis.mjs} +2 -2
  37. package/.output/server/_ssr/invite._token-CJ6-H-s3.mjs +20 -0
  38. package/.output/server/_ssr/{invite._token-SdWXemIc.mjs → invite._token-dLKDJKVs.mjs} +9 -17
  39. package/.output/server/_ssr/{invite._token-BKlz0R2f.mjs → invite._token-l1SjouDz.mjs} +6 -15
  40. package/.output/server/_ssr/{kysely-adapter-C8iS51DB.mjs → kysely-adapter-nL7WKSgw.mjs} +1 -1
  41. package/.output/server/_ssr/{lifecycleUi-DgBQAYzp.mjs → lifecycleUi-Dad3hvhm.mjs} +11 -11
  42. package/.output/server/_ssr/logger-B8m8F1Qu.mjs +2 -0
  43. package/.output/server/_ssr/loopApi-BKyFB4KM.mjs +342 -0
  44. package/.output/server/_ssr/{adapters-BoLkOf1T.mjs → loopProjection-B8a829ij.mjs} +25 -55
  45. package/.output/server/_ssr/loops._loopId-DS16Phmq.mjs +1271 -0
  46. package/.output/server/_ssr/{loops._loopId_.runs._runId-PUGBrD5q.mjs → loops._loopId_.runs._runId-BEJI6iK5.mjs} +23 -74
  47. package/.output/server/_ssr/{loops._loopId_.runs._runId-Ymy4lwee.mjs → loops._loopId_.runs._runId-CduETLqH.mjs} +4 -5
  48. package/.output/server/_ssr/{machineFns-BZ9puxDt.mjs → machineFns-ByMsgG12.mjs} +3 -5
  49. package/.output/server/_ssr/{node-sqlite-dialect-D_3JmkMo.mjs → node-sqlite-dialect-CjNineno.mjs} +2 -2
  50. package/.output/server/_ssr/router-CXyrnvx-.mjs +565 -0
  51. package/.output/server/_ssr/{routes-ClZEdsnB.mjs → routes-BulNEUEE.mjs} +6 -10
  52. package/.output/server/_ssr/{routes-ComqHvCL.mjs → routes-DD94baie.mjs} +3 -3
  53. package/.output/server/_ssr/{routes-D5jJJ-30.mjs → routes-Wjexi35W.mjs} +6 -6
  54. package/.output/server/_ssr/runDiff-Ba8Lg1vg.mjs +2 -0
  55. package/.output/server/_ssr/ssr.mjs +60 -100
  56. package/.output/server/_ssr/store-Cujtg2QE.mjs +2 -0
  57. package/.output/server/_ssr/{t._teamId-BgHV_KFP.mjs → t._teamId-1CreIlPV.mjs} +7 -11
  58. package/.output/server/_ssr/{t._teamId-DDERNgfn.mjs → t._teamId-Bd6-zZsy.mjs} +4 -4
  59. package/.output/server/_ssr/{t._teamId-DRJvKHZn.mjs → t._teamId-COuMKQ4r.mjs} +7 -7
  60. package/.output/server/_ssr/{teamFns-Bp81UO-x.mjs → teamFns-H438WnZC.mjs} +12 -30
  61. package/.output/server/_ssr/{teamFns-bm82twd5.mjs → teamFns-j2JKjorZ.mjs} +2 -2
  62. package/.output/server/_ssr/tokens-DgG_Syq3.mjs +2 -0
  63. package/.output/server/_ssr/{ui-Ww2tTM2u.mjs → ui-D5KWstlb.mjs} +26 -48
  64. package/.output/server/{_tanstack-start-manifest_v-DwKENYCN.mjs → _tanstack-start-manifest_v-3H7yBKLz.mjs} +25 -35
  65. package/{drizzle/0000_round_marauders.sql → .output/server/drizzle/0000_baseline.sql} +102 -44
  66. package/.output/server/drizzle/meta/_journal.json +3 -115
  67. package/.output/server/index.mjs +83 -132
  68. package/{.output/server/drizzle/0000_round_marauders.sql → drizzle/0000_baseline.sql} +102 -44
  69. package/drizzle/meta/_journal.json +3 -115
  70. package/package.json +2 -11
  71. package/scripts/pievo-server.mjs +3 -1
  72. package/scripts/server-cli-lib.mjs +23 -16
  73. package/.output/public/assets/CodeField-dOzyFQNH.js +0 -34
  74. package/.output/public/assets/LoopView-DjVHUyrR.js +0 -59
  75. package/.output/public/assets/Modal-CCRvx959.js +0 -1
  76. package/.output/public/assets/SignIn-Qxw5zDFq.js +0 -1
  77. package/.output/public/assets/actionUi-CXxhzYe2.js +0 -1
  78. package/.output/public/assets/app-D1cij_NJ.css +0 -2
  79. package/.output/public/assets/artifactView-Cd5wWPil.js +0 -66
  80. package/.output/public/assets/index-BRN_CQ8U.js +0 -12
  81. package/.output/public/assets/invite._token-BIxr8DlP.js +0 -1
  82. package/.output/public/assets/invite._token-j2BTCeG1.js +0 -1
  83. package/.output/public/assets/jsx-runtime-BseJUIpC.js +0 -1
  84. package/.output/public/assets/lifecycleUi-Qy_8beQK.js +0 -1
  85. package/.output/public/assets/loopApi-CT1mMhlb.js +0 -3
  86. package/.output/public/assets/loops._loopId-BRBQzioy.js +0 -4
  87. package/.output/public/assets/loops._loopId_.runs._runId-CMnOJkem.js +0 -3
  88. package/.output/public/assets/notifyFns-DYD4EKaG.js +0 -1
  89. package/.output/public/assets/preload-helper-DFkkpP6W.js +0 -3
  90. package/.output/public/assets/routes-3nuEJGdo.js +0 -1
  91. package/.output/public/assets/routes-DORLim-C.js +0 -1
  92. package/.output/public/assets/t._teamId-F5f4K8kd.js +0 -1
  93. package/.output/public/assets/t._teamId-XfE_S1Fo.js +0 -1
  94. package/.output/public/assets/ui-Dhsx6SW0.js +0 -1
  95. package/.output/public/assets/useRouter-DsjH8G0p.js +0 -1
  96. package/.output/server/_libs/@codemirror/autocomplete+[...].mjs +0 -19713
  97. package/.output/server/_libs/@codemirror/lang-css+[...].mjs +0 -2636
  98. package/.output/server/_libs/@codemirror/lang-html+[...].mjs +0 -2247
  99. package/.output/server/_libs/@codemirror/lang-json+[...].mjs +0 -79
  100. package/.output/server/_libs/@reduxjs/toolkit+[...].mjs +0 -1736
  101. package/.output/server/_libs/@uiw/codemirror-extensions-basic-setup+[...].mjs +0 -76
  102. package/.output/server/_libs/babel__runtime.mjs +0 -30
  103. package/.output/server/_libs/clsx.mjs +0 -16
  104. package/.output/server/_libs/codemirror__commands.mjs +0 -1725
  105. package/.output/server/_libs/codemirror__lint.mjs +0 -565
  106. package/.output/server/_libs/codemirror__search.mjs +0 -1138
  107. package/.output/server/_libs/codemirror__theme-one-dark.mjs +0 -161
  108. package/.output/server/_libs/d3-array.mjs +0 -231
  109. package/.output/server/_libs/d3-color.mjs +0 -330
  110. package/.output/server/_libs/d3-format.mjs +0 -252
  111. package/.output/server/_libs/d3-interpolate.mjs +0 -163
  112. package/.output/server/_libs/d3-path.mjs +0 -77
  113. package/.output/server/_libs/d3-scale+[...].mjs +0 -1907
  114. package/.output/server/_libs/d3-shape.mjs +0 -818
  115. package/.output/server/_libs/decimal.js-light.mjs +0 -884
  116. package/.output/server/_libs/dom-serializer+[...].mjs +0 -708
  117. package/.output/server/_libs/domhandler.mjs +0 -461
  118. package/.output/server/_libs/domutils.mjs +0 -868
  119. package/.output/server/_libs/es-toolkit.mjs +0 -1737
  120. package/.output/server/_libs/eventemitter3.mjs +0 -236
  121. package/.output/server/_libs/html-dom-parser+htmlparser2.mjs +0 -1560
  122. package/.output/server/_libs/html-react-parser+[...].mjs +0 -1360
  123. package/.output/server/_libs/react-is.mjs +0 -48
  124. package/.output/server/_libs/react-redux+[...].mjs +0 -205
  125. package/.output/server/_libs/recharts+victory-vendor.mjs +0 -17303
  126. package/.output/server/_libs/uiw__codemirror-themes.mjs +0 -32
  127. package/.output/server/_libs/uiw__react-codemirror.mjs +0 -354
  128. package/.output/server/_ssr/CodeField-B7oOmmwH.mjs +0 -143
  129. package/.output/server/_ssr/DashboardView-BF7PciP7.mjs +0 -2736
  130. package/.output/server/_ssr/LoopPlaybook-DC7QVvPY.mjs +0 -2105
  131. package/.output/server/_ssr/LoopView-DwSrm9Ja.mjs +0 -1300
  132. package/.output/server/_ssr/Modal-MaCG52Pv.mjs +0 -49
  133. package/.output/server/_ssr/artifactView-iuPsp5aa.mjs +0 -304
  134. package/.output/server/_ssr/artifacts-jQ-bfdhI.mjs +0 -2
  135. package/.output/server/_ssr/boot-CsEFT53K.mjs +0 -2
  136. package/.output/server/_ssr/db-CXownd1H.mjs +0 -2
  137. package/.output/server/_ssr/invite._token-CWl6kipD.mjs +0 -28
  138. package/.output/server/_ssr/logger-Gy-47z3k.mjs +0 -2
  139. package/.output/server/_ssr/loopApi-8_KgBapr.mjs +0 -109
  140. package/.output/server/_ssr/loopApi-ABi9SgWS.mjs +0 -564
  141. package/.output/server/_ssr/loops._loopId-SON_t43g.mjs +0 -30
  142. package/.output/server/_ssr/loops._loopId-p1KWsvMM.mjs +0 -1477
  143. package/.output/server/_ssr/notifyFns-BUCePuF3.mjs +0 -118
  144. package/.output/server/_ssr/router-Czxvra6l.mjs +0 -685
  145. package/.output/server/_ssr/runDiff--qLtU4FI.mjs +0 -2
  146. package/.output/server/_ssr/store-40eVzW1S.mjs +0 -2
  147. package/.output/server/_ssr/tokens-CbfoRC_s.mjs +0 -2
  148. package/.output/server/drizzle/0001_naive_silver_fox.sql +0 -25
  149. package/.output/server/drizzle/0002_funny_sage.sql +0 -12
  150. package/.output/server/drizzle/0003_optimal_slapstick.sql +0 -102
  151. package/.output/server/drizzle/0004_remove_grok_agent.sql +0 -5
  152. package/.output/server/drizzle/0005_heavy_gauntlet.sql +0 -8
  153. package/.output/server/drizzle/0006_tranquil_sharon_carter.sql +0 -1
  154. package/.output/server/drizzle/0007_faulty_starbolt.sql +0 -30
  155. package/.output/server/drizzle/0008_durable_lifecycle_evidence.sql +0 -15
  156. package/.output/server/drizzle/0009_ordinary_electro.sql +0 -1
  157. package/.output/server/drizzle/0010_workable_rage.sql +0 -14
  158. package/.output/server/drizzle/0011_steep_marvel_zombies.sql +0 -3
  159. package/.output/server/drizzle/0012_blocked_run_status.sql +0 -12
  160. package/.output/server/drizzle/0013_drop_run_outcome.sql +0 -2
  161. package/.output/server/drizzle/0014_luxuriant_scrambler.sql +0 -5
  162. package/.output/server/drizzle/0015_run_history_foundation.sql +0 -43
  163. package/.output/server/drizzle/0016_plural_machine_runs.sql +0 -4
  164. package/.output/server/drizzle/meta/0000_snapshot.json +0 -1333
  165. package/.output/server/drizzle/meta/0001_snapshot.json +0 -1498
  166. package/.output/server/drizzle/meta/0002_snapshot.json +0 -1576
  167. package/.output/server/drizzle/meta/0003_snapshot.json +0 -1666
  168. package/.output/server/drizzle/meta/0005_snapshot.json +0 -1666
  169. package/.output/server/drizzle/meta/0006_snapshot.json +0 -1672
  170. package/.output/server/drizzle/meta/0007_snapshot.json +0 -1787
  171. package/.output/server/drizzle/meta/0009_snapshot.json +0 -1793
  172. package/.output/server/drizzle/meta/0010_snapshot.json +0 -1891
  173. package/.output/server/drizzle/meta/0011_snapshot.json +0 -1872
  174. package/drizzle/0001_naive_silver_fox.sql +0 -25
  175. package/drizzle/0002_funny_sage.sql +0 -12
  176. package/drizzle/0003_optimal_slapstick.sql +0 -102
  177. package/drizzle/0004_remove_grok_agent.sql +0 -5
  178. package/drizzle/0005_heavy_gauntlet.sql +0 -8
  179. package/drizzle/0006_tranquil_sharon_carter.sql +0 -1
  180. package/drizzle/0007_faulty_starbolt.sql +0 -30
  181. package/drizzle/0008_durable_lifecycle_evidence.sql +0 -15
  182. package/drizzle/0009_ordinary_electro.sql +0 -1
  183. package/drizzle/0010_workable_rage.sql +0 -14
  184. package/drizzle/0011_steep_marvel_zombies.sql +0 -3
  185. package/drizzle/0012_blocked_run_status.sql +0 -12
  186. package/drizzle/0013_drop_run_outcome.sql +0 -2
  187. package/drizzle/0014_luxuriant_scrambler.sql +0 -5
  188. package/drizzle/0015_run_history_foundation.sql +0 -43
  189. package/drizzle/0016_plural_machine_runs.sql +0 -4
  190. package/drizzle/meta/0000_snapshot.json +0 -1333
  191. package/drizzle/meta/0001_snapshot.json +0 -1498
  192. package/drizzle/meta/0002_snapshot.json +0 -1576
  193. package/drizzle/meta/0003_snapshot.json +0 -1666
  194. package/drizzle/meta/0005_snapshot.json +0 -1666
  195. package/drizzle/meta/0006_snapshot.json +0 -1672
  196. package/drizzle/meta/0007_snapshot.json +0 -1787
  197. package/drizzle/meta/0009_snapshot.json +0 -1793
  198. package/drizzle/meta/0010_snapshot.json +0 -1891
  199. package/drizzle/meta/0011_snapshot.json +0 -1872
@@ -1,1498 +0,0 @@
1
- {
2
- "id": "b5fe2f45-c5b2-4a21-b18a-03fc2213a44a",
3
- "prevId": "17779b04-4ab2-4199-8651-12a4b85d6067",
4
- "version": "7",
5
- "dialect": "postgresql",
6
- "tables": {
7
- "public.artifact_files": {
8
- "name": "artifact_files",
9
- "schema": "",
10
- "columns": {
11
- "id": {
12
- "name": "id",
13
- "type": "text",
14
- "primaryKey": true,
15
- "notNull": true
16
- },
17
- "loop_id": {
18
- "name": "loop_id",
19
- "type": "text",
20
- "primaryKey": false,
21
- "notNull": true
22
- },
23
- "path": {
24
- "name": "path",
25
- "type": "text",
26
- "primaryKey": false,
27
- "notNull": true
28
- },
29
- "hash": {
30
- "name": "hash",
31
- "type": "text",
32
- "primaryKey": false,
33
- "notNull": false
34
- },
35
- "size": {
36
- "name": "size",
37
- "type": "integer",
38
- "primaryKey": false,
39
- "notNull": false
40
- },
41
- "binary": {
42
- "name": "binary",
43
- "type": "boolean",
44
- "primaryKey": false,
45
- "notNull": true,
46
- "default": false
47
- },
48
- "oversize": {
49
- "name": "oversize",
50
- "type": "boolean",
51
- "primaryKey": false,
52
- "notNull": true,
53
- "default": false
54
- },
55
- "deleted": {
56
- "name": "deleted",
57
- "type": "boolean",
58
- "primaryKey": false,
59
- "notNull": true,
60
- "default": false
61
- },
62
- "updated_at": {
63
- "name": "updated_at",
64
- "type": "text",
65
- "primaryKey": false,
66
- "notNull": true
67
- },
68
- "last_run_id": {
69
- "name": "last_run_id",
70
- "type": "text",
71
- "primaryKey": false,
72
- "notNull": false
73
- }
74
- },
75
- "indexes": {
76
- "artifact_files_loop_idx": {
77
- "name": "artifact_files_loop_idx",
78
- "columns": [
79
- {
80
- "expression": "loop_id",
81
- "isExpression": false,
82
- "asc": true,
83
- "nulls": "last"
84
- }
85
- ],
86
- "isUnique": false,
87
- "concurrently": false,
88
- "method": "btree",
89
- "with": {}
90
- },
91
- "artifact_files_loop_path_idx": {
92
- "name": "artifact_files_loop_path_idx",
93
- "columns": [
94
- {
95
- "expression": "loop_id",
96
- "isExpression": false,
97
- "asc": true,
98
- "nulls": "last"
99
- },
100
- {
101
- "expression": "path",
102
- "isExpression": false,
103
- "asc": true,
104
- "nulls": "last"
105
- }
106
- ],
107
- "isUnique": true,
108
- "concurrently": false,
109
- "method": "btree",
110
- "with": {}
111
- },
112
- "artifact_files_hash_idx": {
113
- "name": "artifact_files_hash_idx",
114
- "columns": [
115
- {
116
- "expression": "hash",
117
- "isExpression": false,
118
- "asc": true,
119
- "nulls": "last"
120
- }
121
- ],
122
- "isUnique": false,
123
- "concurrently": false,
124
- "method": "btree",
125
- "with": {}
126
- }
127
- },
128
- "foreignKeys": {},
129
- "compositePrimaryKeys": {},
130
- "uniqueConstraints": {},
131
- "policies": {},
132
- "checkConstraints": {},
133
- "isRLSEnabled": false
134
- },
135
- "public.blobs": {
136
- "name": "blobs",
137
- "schema": "",
138
- "columns": {
139
- "hash": {
140
- "name": "hash",
141
- "type": "text",
142
- "primaryKey": true,
143
- "notNull": true
144
- },
145
- "size": {
146
- "name": "size",
147
- "type": "integer",
148
- "primaryKey": false,
149
- "notNull": true
150
- },
151
- "binary": {
152
- "name": "binary",
153
- "type": "boolean",
154
- "primaryKey": false,
155
- "notNull": true,
156
- "default": false
157
- },
158
- "meta": {
159
- "name": "meta",
160
- "type": "jsonb",
161
- "primaryKey": false,
162
- "notNull": false
163
- },
164
- "created_at": {
165
- "name": "created_at",
166
- "type": "text",
167
- "primaryKey": false,
168
- "notNull": true
169
- }
170
- },
171
- "indexes": {},
172
- "foreignKeys": {},
173
- "compositePrimaryKeys": {},
174
- "uniqueConstraints": {},
175
- "policies": {},
176
- "checkConstraints": {},
177
- "isRLSEnabled": false
178
- },
179
- "public.connect_keys": {
180
- "name": "connect_keys",
181
- "schema": "",
182
- "columns": {
183
- "machine_id": {
184
- "name": "machine_id",
185
- "type": "text",
186
- "primaryKey": true,
187
- "notNull": true
188
- },
189
- "user_id": {
190
- "name": "user_id",
191
- "type": "text",
192
- "primaryKey": false,
193
- "notNull": true
194
- },
195
- "team_id": {
196
- "name": "team_id",
197
- "type": "text",
198
- "primaryKey": false,
199
- "notNull": false
200
- },
201
- "minted_at": {
202
- "name": "minted_at",
203
- "type": "text",
204
- "primaryKey": false,
205
- "notNull": true
206
- }
207
- },
208
- "indexes": {},
209
- "foreignKeys": {},
210
- "compositePrimaryKeys": {},
211
- "uniqueConstraints": {},
212
- "policies": {},
213
- "checkConstraints": {},
214
- "isRLSEnabled": false
215
- },
216
- "public.loops": {
217
- "name": "loops",
218
- "schema": "",
219
- "columns": {
220
- "id": {
221
- "name": "id",
222
- "type": "text",
223
- "primaryKey": true,
224
- "notNull": true
225
- },
226
- "user_id": {
227
- "name": "user_id",
228
- "type": "text",
229
- "primaryKey": false,
230
- "notNull": true
231
- },
232
- "team_id": {
233
- "name": "team_id",
234
- "type": "text",
235
- "primaryKey": false,
236
- "notNull": false
237
- },
238
- "channel_id": {
239
- "name": "channel_id",
240
- "type": "text",
241
- "primaryKey": false,
242
- "notNull": false
243
- },
244
- "machine_id": {
245
- "name": "machine_id",
246
- "type": "text",
247
- "primaryKey": false,
248
- "notNull": true
249
- },
250
- "name": {
251
- "name": "name",
252
- "type": "text",
253
- "primaryKey": false,
254
- "notNull": false
255
- },
256
- "cron": {
257
- "name": "cron",
258
- "type": "text",
259
- "primaryKey": false,
260
- "notNull": true
261
- },
262
- "timezone": {
263
- "name": "timezone",
264
- "type": "text",
265
- "primaryKey": false,
266
- "notNull": false
267
- },
268
- "workdir": {
269
- "name": "workdir",
270
- "type": "text",
271
- "primaryKey": false,
272
- "notNull": false
273
- },
274
- "task_file": {
275
- "name": "task_file",
276
- "type": "text",
277
- "primaryKey": false,
278
- "notNull": false
279
- },
280
- "task_file_content": {
281
- "name": "task_file_content",
282
- "type": "text",
283
- "primaryKey": false,
284
- "notNull": false
285
- },
286
- "task_file_synced_at": {
287
- "name": "task_file_synced_at",
288
- "type": "text",
289
- "primaryKey": false,
290
- "notNull": false
291
- },
292
- "workflow": {
293
- "name": "workflow",
294
- "type": "text",
295
- "primaryKey": false,
296
- "notNull": false
297
- },
298
- "ui": {
299
- "name": "ui",
300
- "type": "text",
301
- "primaryKey": false,
302
- "notNull": false
303
- },
304
- "state_schema": {
305
- "name": "state_schema",
306
- "type": "jsonb",
307
- "primaryKey": false,
308
- "notNull": false
309
- },
310
- "notify": {
311
- "name": "notify",
312
- "type": "text",
313
- "primaryKey": false,
314
- "notNull": true,
315
- "default": "'auto'"
316
- },
317
- "allow_control": {
318
- "name": "allow_control",
319
- "type": "boolean",
320
- "primaryKey": false,
321
- "notNull": true,
322
- "default": true
323
- },
324
- "goal": {
325
- "name": "goal",
326
- "type": "text",
327
- "primaryKey": false,
328
- "notNull": false
329
- },
330
- "completed_at": {
331
- "name": "completed_at",
332
- "type": "text",
333
- "primaryKey": false,
334
- "notNull": false
335
- },
336
- "completion_reason": {
337
- "name": "completion_reason",
338
- "type": "text",
339
- "primaryKey": false,
340
- "notNull": false
341
- },
342
- "model": {
343
- "name": "model",
344
- "type": "text",
345
- "primaryKey": false,
346
- "notNull": false
347
- },
348
- "agent": {
349
- "name": "agent",
350
- "type": "text",
351
- "primaryKey": false,
352
- "notNull": true,
353
- "default": "'claude-code'"
354
- },
355
- "enabled": {
356
- "name": "enabled",
357
- "type": "boolean",
358
- "primaryKey": false,
359
- "notNull": true,
360
- "default": true
361
- },
362
- "next_run_at": {
363
- "name": "next_run_at",
364
- "type": "text",
365
- "primaryKey": false,
366
- "notNull": false
367
- },
368
- "state": {
369
- "name": "state",
370
- "type": "jsonb",
371
- "primaryKey": false,
372
- "notNull": false
373
- },
374
- "evolved_run_count": {
375
- "name": "evolved_run_count",
376
- "type": "integer",
377
- "primaryKey": false,
378
- "notNull": false
379
- },
380
- "evolve_due": {
381
- "name": "evolve_due",
382
- "type": "boolean",
383
- "primaryKey": false,
384
- "notNull": false
385
- },
386
- "edit_request": {
387
- "name": "edit_request",
388
- "type": "text",
389
- "primaryKey": false,
390
- "notNull": false
391
- },
392
- "created_at": {
393
- "name": "created_at",
394
- "type": "text",
395
- "primaryKey": false,
396
- "notNull": true
397
- },
398
- "updated_at": {
399
- "name": "updated_at",
400
- "type": "text",
401
- "primaryKey": false,
402
- "notNull": true
403
- }
404
- },
405
- "indexes": {
406
- "loops_user_idx": {
407
- "name": "loops_user_idx",
408
- "columns": [
409
- {
410
- "expression": "user_id",
411
- "isExpression": false,
412
- "asc": true,
413
- "nulls": "last"
414
- }
415
- ],
416
- "isUnique": false,
417
- "concurrently": false,
418
- "method": "btree",
419
- "with": {}
420
- },
421
- "loops_team_idx": {
422
- "name": "loops_team_idx",
423
- "columns": [
424
- {
425
- "expression": "team_id",
426
- "isExpression": false,
427
- "asc": true,
428
- "nulls": "last"
429
- }
430
- ],
431
- "isUnique": false,
432
- "concurrently": false,
433
- "method": "btree",
434
- "with": {}
435
- },
436
- "loops_machine_idx": {
437
- "name": "loops_machine_idx",
438
- "columns": [
439
- {
440
- "expression": "machine_id",
441
- "isExpression": false,
442
- "asc": true,
443
- "nulls": "last"
444
- }
445
- ],
446
- "isUnique": false,
447
- "concurrently": false,
448
- "method": "btree",
449
- "with": {}
450
- }
451
- },
452
- "foreignKeys": {},
453
- "compositePrimaryKeys": {},
454
- "uniqueConstraints": {},
455
- "policies": {},
456
- "checkConstraints": {},
457
- "isRLSEnabled": false
458
- },
459
- "public.machines": {
460
- "name": "machines",
461
- "schema": "",
462
- "columns": {
463
- "id": {
464
- "name": "id",
465
- "type": "text",
466
- "primaryKey": true,
467
- "notNull": true
468
- },
469
- "user_id": {
470
- "name": "user_id",
471
- "type": "text",
472
- "primaryKey": false,
473
- "notNull": true
474
- },
475
- "team_id": {
476
- "name": "team_id",
477
- "type": "text",
478
- "primaryKey": false,
479
- "notNull": false
480
- },
481
- "name": {
482
- "name": "name",
483
- "type": "text",
484
- "primaryKey": false,
485
- "notNull": true
486
- },
487
- "hostname": {
488
- "name": "hostname",
489
- "type": "text",
490
- "primaryKey": false,
491
- "notNull": false
492
- },
493
- "platform": {
494
- "name": "platform",
495
- "type": "text",
496
- "primaryKey": false,
497
- "notNull": false
498
- },
499
- "arch": {
500
- "name": "arch",
501
- "type": "text",
502
- "primaryKey": false,
503
- "notNull": false
504
- },
505
- "daemon_version": {
506
- "name": "daemon_version",
507
- "type": "text",
508
- "primaryKey": false,
509
- "notNull": false
510
- },
511
- "token_hash": {
512
- "name": "token_hash",
513
- "type": "text",
514
- "primaryKey": false,
515
- "notNull": true
516
- },
517
- "token": {
518
- "name": "token",
519
- "type": "text",
520
- "primaryKey": false,
521
- "notNull": false
522
- },
523
- "roots": {
524
- "name": "roots",
525
- "type": "jsonb",
526
- "primaryKey": false,
527
- "notNull": false
528
- },
529
- "last_seen": {
530
- "name": "last_seen",
531
- "type": "text",
532
- "primaryKey": false,
533
- "notNull": false
534
- },
535
- "online": {
536
- "name": "online",
537
- "type": "boolean",
538
- "primaryKey": false,
539
- "notNull": true,
540
- "default": false
541
- },
542
- "created_at": {
543
- "name": "created_at",
544
- "type": "text",
545
- "primaryKey": false,
546
- "notNull": true
547
- }
548
- },
549
- "indexes": {
550
- "machines_user_idx": {
551
- "name": "machines_user_idx",
552
- "columns": [
553
- {
554
- "expression": "user_id",
555
- "isExpression": false,
556
- "asc": true,
557
- "nulls": "last"
558
- }
559
- ],
560
- "isUnique": false,
561
- "concurrently": false,
562
- "method": "btree",
563
- "with": {}
564
- },
565
- "machines_team_idx": {
566
- "name": "machines_team_idx",
567
- "columns": [
568
- {
569
- "expression": "team_id",
570
- "isExpression": false,
571
- "asc": true,
572
- "nulls": "last"
573
- }
574
- ],
575
- "isUnique": false,
576
- "concurrently": false,
577
- "method": "btree",
578
- "with": {}
579
- }
580
- },
581
- "foreignKeys": {},
582
- "compositePrimaryKeys": {},
583
- "uniqueConstraints": {},
584
- "policies": {},
585
- "checkConstraints": {},
586
- "isRLSEnabled": false
587
- },
588
- "public.notification_channels": {
589
- "name": "notification_channels",
590
- "schema": "",
591
- "columns": {
592
- "id": {
593
- "name": "id",
594
- "type": "text",
595
- "primaryKey": true,
596
- "notNull": true
597
- },
598
- "team_id": {
599
- "name": "team_id",
600
- "type": "text",
601
- "primaryKey": false,
602
- "notNull": true
603
- },
604
- "type": {
605
- "name": "type",
606
- "type": "text",
607
- "primaryKey": false,
608
- "notNull": true
609
- },
610
- "name": {
611
- "name": "name",
612
- "type": "text",
613
- "primaryKey": false,
614
- "notNull": true
615
- },
616
- "config": {
617
- "name": "config",
618
- "type": "jsonb",
619
- "primaryKey": false,
620
- "notNull": true
621
- },
622
- "created_at": {
623
- "name": "created_at",
624
- "type": "text",
625
- "primaryKey": false,
626
- "notNull": true
627
- }
628
- },
629
- "indexes": {
630
- "notification_channels_team_idx": {
631
- "name": "notification_channels_team_idx",
632
- "columns": [
633
- {
634
- "expression": "team_id",
635
- "isExpression": false,
636
- "asc": true,
637
- "nulls": "last"
638
- }
639
- ],
640
- "isUnique": false,
641
- "concurrently": false,
642
- "method": "btree",
643
- "with": {}
644
- }
645
- },
646
- "foreignKeys": {},
647
- "compositePrimaryKeys": {},
648
- "uniqueConstraints": {},
649
- "policies": {},
650
- "checkConstraints": {},
651
- "isRLSEnabled": false
652
- },
653
- "public.run_leases": {
654
- "name": "run_leases",
655
- "schema": "",
656
- "columns": {
657
- "token_hash": {
658
- "name": "token_hash",
659
- "type": "text",
660
- "primaryKey": true,
661
- "notNull": true
662
- },
663
- "run_id": {
664
- "name": "run_id",
665
- "type": "text",
666
- "primaryKey": false,
667
- "notNull": true
668
- },
669
- "loop_id": {
670
- "name": "loop_id",
671
- "type": "text",
672
- "primaryKey": false,
673
- "notNull": true
674
- },
675
- "machine_id": {
676
- "name": "machine_id",
677
- "type": "text",
678
- "primaryKey": false,
679
- "notNull": true
680
- },
681
- "role": {
682
- "name": "role",
683
- "type": "text",
684
- "primaryKey": false,
685
- "notNull": true
686
- },
687
- "allow_control": {
688
- "name": "allow_control",
689
- "type": "boolean",
690
- "primaryKey": false,
691
- "notNull": true,
692
- "default": false
693
- },
694
- "can_set_ui": {
695
- "name": "can_set_ui",
696
- "type": "boolean",
697
- "primaryKey": false,
698
- "notNull": true,
699
- "default": false
700
- },
701
- "can_set_schema": {
702
- "name": "can_set_schema",
703
- "type": "boolean",
704
- "primaryKey": false,
705
- "notNull": true,
706
- "default": false
707
- },
708
- "can_set_workflow": {
709
- "name": "can_set_workflow",
710
- "type": "boolean",
711
- "primaryKey": false,
712
- "notNull": true,
713
- "default": false
714
- },
715
- "can_finish": {
716
- "name": "can_finish",
717
- "type": "boolean",
718
- "primaryKey": false,
719
- "notNull": true,
720
- "default": false
721
- },
722
- "state": {
723
- "name": "state",
724
- "type": "text",
725
- "primaryKey": false,
726
- "notNull": true,
727
- "default": "'active'"
728
- },
729
- "expires_at": {
730
- "name": "expires_at",
731
- "type": "text",
732
- "primaryKey": false,
733
- "notNull": false
734
- },
735
- "created_at": {
736
- "name": "created_at",
737
- "type": "text",
738
- "primaryKey": false,
739
- "notNull": true
740
- }
741
- },
742
- "indexes": {
743
- "run_leases_run_idx": {
744
- "name": "run_leases_run_idx",
745
- "columns": [
746
- {
747
- "expression": "run_id",
748
- "isExpression": false,
749
- "asc": true,
750
- "nulls": "last"
751
- }
752
- ],
753
- "isUnique": false,
754
- "concurrently": false,
755
- "method": "btree",
756
- "with": {}
757
- },
758
- "run_leases_loop_idx": {
759
- "name": "run_leases_loop_idx",
760
- "columns": [
761
- {
762
- "expression": "loop_id",
763
- "isExpression": false,
764
- "asc": true,
765
- "nulls": "last"
766
- }
767
- ],
768
- "isUnique": false,
769
- "concurrently": false,
770
- "method": "btree",
771
- "with": {}
772
- }
773
- },
774
- "foreignKeys": {},
775
- "compositePrimaryKeys": {},
776
- "uniqueConstraints": {},
777
- "policies": {},
778
- "checkConstraints": {},
779
- "isRLSEnabled": false
780
- },
781
- "public.run_snapshots": {
782
- "name": "run_snapshots",
783
- "schema": "",
784
- "columns": {
785
- "run_id": {
786
- "name": "run_id",
787
- "type": "text",
788
- "primaryKey": true,
789
- "notNull": true
790
- },
791
- "loop_id": {
792
- "name": "loop_id",
793
- "type": "text",
794
- "primaryKey": false,
795
- "notNull": true
796
- },
797
- "manifest": {
798
- "name": "manifest",
799
- "type": "jsonb",
800
- "primaryKey": false,
801
- "notNull": true
802
- },
803
- "created_at": {
804
- "name": "created_at",
805
- "type": "text",
806
- "primaryKey": false,
807
- "notNull": true
808
- }
809
- },
810
- "indexes": {
811
- "run_snapshots_loop_idx": {
812
- "name": "run_snapshots_loop_idx",
813
- "columns": [
814
- {
815
- "expression": "loop_id",
816
- "isExpression": false,
817
- "asc": true,
818
- "nulls": "last"
819
- }
820
- ],
821
- "isUnique": false,
822
- "concurrently": false,
823
- "method": "btree",
824
- "with": {}
825
- }
826
- },
827
- "foreignKeys": {},
828
- "compositePrimaryKeys": {},
829
- "uniqueConstraints": {},
830
- "policies": {},
831
- "checkConstraints": {},
832
- "isRLSEnabled": false
833
- },
834
- "public.runs": {
835
- "name": "runs",
836
- "schema": "",
837
- "columns": {
838
- "id": {
839
- "name": "id",
840
- "type": "text",
841
- "primaryKey": true,
842
- "notNull": true
843
- },
844
- "loop_id": {
845
- "name": "loop_id",
846
- "type": "text",
847
- "primaryKey": false,
848
- "notNull": true
849
- },
850
- "user_id": {
851
- "name": "user_id",
852
- "type": "text",
853
- "primaryKey": false,
854
- "notNull": true
855
- },
856
- "machine_id": {
857
- "name": "machine_id",
858
- "type": "text",
859
- "primaryKey": false,
860
- "notNull": true
861
- },
862
- "phase": {
863
- "name": "phase",
864
- "type": "text",
865
- "primaryKey": false,
866
- "notNull": true
867
- },
868
- "role": {
869
- "name": "role",
870
- "type": "text",
871
- "primaryKey": false,
872
- "notNull": true
873
- },
874
- "ts": {
875
- "name": "ts",
876
- "type": "text",
877
- "primaryKey": false,
878
- "notNull": true
879
- },
880
- "outcome": {
881
- "name": "outcome",
882
- "type": "text",
883
- "primaryKey": false,
884
- "notNull": false
885
- },
886
- "status": {
887
- "name": "status",
888
- "type": "text",
889
- "primaryKey": false,
890
- "notNull": false
891
- },
892
- "message": {
893
- "name": "message",
894
- "type": "text",
895
- "primaryKey": false,
896
- "notNull": false
897
- },
898
- "duration_ms": {
899
- "name": "duration_ms",
900
- "type": "integer",
901
- "primaryKey": false,
902
- "notNull": false
903
- },
904
- "error": {
905
- "name": "error",
906
- "type": "text",
907
- "primaryKey": false,
908
- "notNull": false
909
- },
910
- "state": {
911
- "name": "state",
912
- "type": "jsonb",
913
- "primaryKey": false,
914
- "notNull": false
915
- },
916
- "control": {
917
- "name": "control",
918
- "type": "jsonb",
919
- "primaryKey": false,
920
- "notNull": false
921
- },
922
- "session_id": {
923
- "name": "session_id",
924
- "type": "text",
925
- "primaryKey": false,
926
- "notNull": false
927
- },
928
- "cost_usd": {
929
- "name": "cost_usd",
930
- "type": "double precision",
931
- "primaryKey": false,
932
- "notNull": false
933
- },
934
- "usage": {
935
- "name": "usage",
936
- "type": "jsonb",
937
- "primaryKey": false,
938
- "notNull": false
939
- },
940
- "artifacts": {
941
- "name": "artifacts",
942
- "type": "jsonb",
943
- "primaryKey": false,
944
- "notNull": false
945
- },
946
- "transcript": {
947
- "name": "transcript",
948
- "type": "jsonb",
949
- "primaryKey": false,
950
- "notNull": false
951
- },
952
- "progress": {
953
- "name": "progress",
954
- "type": "jsonb",
955
- "primaryKey": false,
956
- "notNull": false
957
- }
958
- },
959
- "indexes": {
960
- "runs_loop_idx": {
961
- "name": "runs_loop_idx",
962
- "columns": [
963
- {
964
- "expression": "loop_id",
965
- "isExpression": false,
966
- "asc": true,
967
- "nulls": "last"
968
- }
969
- ],
970
- "isUnique": false,
971
- "concurrently": false,
972
- "method": "btree",
973
- "with": {}
974
- },
975
- "runs_phase_idx": {
976
- "name": "runs_phase_idx",
977
- "columns": [
978
- {
979
- "expression": "phase",
980
- "isExpression": false,
981
- "asc": true,
982
- "nulls": "last"
983
- }
984
- ],
985
- "isUnique": false,
986
- "concurrently": false,
987
- "method": "btree",
988
- "with": {}
989
- },
990
- "runs_loop_ts_idx": {
991
- "name": "runs_loop_ts_idx",
992
- "columns": [
993
- {
994
- "expression": "loop_id",
995
- "isExpression": false,
996
- "asc": true,
997
- "nulls": "last"
998
- },
999
- {
1000
- "expression": "ts",
1001
- "isExpression": false,
1002
- "asc": true,
1003
- "nulls": "last"
1004
- }
1005
- ],
1006
- "isUnique": false,
1007
- "concurrently": false,
1008
- "method": "btree",
1009
- "with": {}
1010
- }
1011
- },
1012
- "foreignKeys": {},
1013
- "compositePrimaryKeys": {},
1014
- "uniqueConstraints": {},
1015
- "policies": {},
1016
- "checkConstraints": {},
1017
- "isRLSEnabled": false
1018
- },
1019
- "public.team_members": {
1020
- "name": "team_members",
1021
- "schema": "",
1022
- "columns": {
1023
- "id": {
1024
- "name": "id",
1025
- "type": "text",
1026
- "primaryKey": true,
1027
- "notNull": true
1028
- },
1029
- "team_id": {
1030
- "name": "team_id",
1031
- "type": "text",
1032
- "primaryKey": false,
1033
- "notNull": true
1034
- },
1035
- "user_id": {
1036
- "name": "user_id",
1037
- "type": "text",
1038
- "primaryKey": false,
1039
- "notNull": true
1040
- },
1041
- "role": {
1042
- "name": "role",
1043
- "type": "text",
1044
- "primaryKey": false,
1045
- "notNull": true,
1046
- "default": "'member'"
1047
- },
1048
- "created_at": {
1049
- "name": "created_at",
1050
- "type": "text",
1051
- "primaryKey": false,
1052
- "notNull": true
1053
- }
1054
- },
1055
- "indexes": {
1056
- "team_members_team_idx": {
1057
- "name": "team_members_team_idx",
1058
- "columns": [
1059
- {
1060
- "expression": "team_id",
1061
- "isExpression": false,
1062
- "asc": true,
1063
- "nulls": "last"
1064
- }
1065
- ],
1066
- "isUnique": false,
1067
- "concurrently": false,
1068
- "method": "btree",
1069
- "with": {}
1070
- },
1071
- "team_members_user_idx": {
1072
- "name": "team_members_user_idx",
1073
- "columns": [
1074
- {
1075
- "expression": "user_id",
1076
- "isExpression": false,
1077
- "asc": true,
1078
- "nulls": "last"
1079
- }
1080
- ],
1081
- "isUnique": false,
1082
- "concurrently": false,
1083
- "method": "btree",
1084
- "with": {}
1085
- }
1086
- },
1087
- "foreignKeys": {},
1088
- "compositePrimaryKeys": {},
1089
- "uniqueConstraints": {},
1090
- "policies": {},
1091
- "checkConstraints": {},
1092
- "isRLSEnabled": false
1093
- },
1094
- "public.teams": {
1095
- "name": "teams",
1096
- "schema": "",
1097
- "columns": {
1098
- "id": {
1099
- "name": "id",
1100
- "type": "text",
1101
- "primaryKey": true,
1102
- "notNull": true
1103
- },
1104
- "name": {
1105
- "name": "name",
1106
- "type": "text",
1107
- "primaryKey": false,
1108
- "notNull": true
1109
- },
1110
- "owner_user_id": {
1111
- "name": "owner_user_id",
1112
- "type": "text",
1113
- "primaryKey": false,
1114
- "notNull": false
1115
- },
1116
- "created_at": {
1117
- "name": "created_at",
1118
- "type": "text",
1119
- "primaryKey": false,
1120
- "notNull": true
1121
- }
1122
- },
1123
- "indexes": {},
1124
- "foreignKeys": {},
1125
- "compositePrimaryKeys": {},
1126
- "uniqueConstraints": {},
1127
- "policies": {},
1128
- "checkConstraints": {},
1129
- "isRLSEnabled": false
1130
- },
1131
- "public.account": {
1132
- "name": "account",
1133
- "schema": "",
1134
- "columns": {
1135
- "id": {
1136
- "name": "id",
1137
- "type": "text",
1138
- "primaryKey": true,
1139
- "notNull": true
1140
- },
1141
- "account_id": {
1142
- "name": "account_id",
1143
- "type": "text",
1144
- "primaryKey": false,
1145
- "notNull": true
1146
- },
1147
- "provider_id": {
1148
- "name": "provider_id",
1149
- "type": "text",
1150
- "primaryKey": false,
1151
- "notNull": true
1152
- },
1153
- "user_id": {
1154
- "name": "user_id",
1155
- "type": "text",
1156
- "primaryKey": false,
1157
- "notNull": true
1158
- },
1159
- "access_token": {
1160
- "name": "access_token",
1161
- "type": "text",
1162
- "primaryKey": false,
1163
- "notNull": false
1164
- },
1165
- "refresh_token": {
1166
- "name": "refresh_token",
1167
- "type": "text",
1168
- "primaryKey": false,
1169
- "notNull": false
1170
- },
1171
- "id_token": {
1172
- "name": "id_token",
1173
- "type": "text",
1174
- "primaryKey": false,
1175
- "notNull": false
1176
- },
1177
- "access_token_expires_at": {
1178
- "name": "access_token_expires_at",
1179
- "type": "timestamp",
1180
- "primaryKey": false,
1181
- "notNull": false
1182
- },
1183
- "refresh_token_expires_at": {
1184
- "name": "refresh_token_expires_at",
1185
- "type": "timestamp",
1186
- "primaryKey": false,
1187
- "notNull": false
1188
- },
1189
- "scope": {
1190
- "name": "scope",
1191
- "type": "text",
1192
- "primaryKey": false,
1193
- "notNull": false
1194
- },
1195
- "password": {
1196
- "name": "password",
1197
- "type": "text",
1198
- "primaryKey": false,
1199
- "notNull": false
1200
- },
1201
- "created_at": {
1202
- "name": "created_at",
1203
- "type": "timestamp",
1204
- "primaryKey": false,
1205
- "notNull": true,
1206
- "default": "now()"
1207
- },
1208
- "updated_at": {
1209
- "name": "updated_at",
1210
- "type": "timestamp",
1211
- "primaryKey": false,
1212
- "notNull": true
1213
- }
1214
- },
1215
- "indexes": {
1216
- "account_userId_idx": {
1217
- "name": "account_userId_idx",
1218
- "columns": [
1219
- {
1220
- "expression": "user_id",
1221
- "isExpression": false,
1222
- "asc": true,
1223
- "nulls": "last"
1224
- }
1225
- ],
1226
- "isUnique": false,
1227
- "concurrently": false,
1228
- "method": "btree",
1229
- "with": {}
1230
- }
1231
- },
1232
- "foreignKeys": {
1233
- "account_user_id_user_id_fk": {
1234
- "name": "account_user_id_user_id_fk",
1235
- "tableFrom": "account",
1236
- "tableTo": "user",
1237
- "columnsFrom": [
1238
- "user_id"
1239
- ],
1240
- "columnsTo": [
1241
- "id"
1242
- ],
1243
- "onDelete": "cascade",
1244
- "onUpdate": "no action"
1245
- }
1246
- },
1247
- "compositePrimaryKeys": {},
1248
- "uniqueConstraints": {},
1249
- "policies": {},
1250
- "checkConstraints": {},
1251
- "isRLSEnabled": false
1252
- },
1253
- "public.session": {
1254
- "name": "session",
1255
- "schema": "",
1256
- "columns": {
1257
- "id": {
1258
- "name": "id",
1259
- "type": "text",
1260
- "primaryKey": true,
1261
- "notNull": true
1262
- },
1263
- "expires_at": {
1264
- "name": "expires_at",
1265
- "type": "timestamp",
1266
- "primaryKey": false,
1267
- "notNull": true
1268
- },
1269
- "token": {
1270
- "name": "token",
1271
- "type": "text",
1272
- "primaryKey": false,
1273
- "notNull": true
1274
- },
1275
- "created_at": {
1276
- "name": "created_at",
1277
- "type": "timestamp",
1278
- "primaryKey": false,
1279
- "notNull": true,
1280
- "default": "now()"
1281
- },
1282
- "updated_at": {
1283
- "name": "updated_at",
1284
- "type": "timestamp",
1285
- "primaryKey": false,
1286
- "notNull": true
1287
- },
1288
- "ip_address": {
1289
- "name": "ip_address",
1290
- "type": "text",
1291
- "primaryKey": false,
1292
- "notNull": false
1293
- },
1294
- "user_agent": {
1295
- "name": "user_agent",
1296
- "type": "text",
1297
- "primaryKey": false,
1298
- "notNull": false
1299
- },
1300
- "user_id": {
1301
- "name": "user_id",
1302
- "type": "text",
1303
- "primaryKey": false,
1304
- "notNull": true
1305
- }
1306
- },
1307
- "indexes": {
1308
- "session_userId_idx": {
1309
- "name": "session_userId_idx",
1310
- "columns": [
1311
- {
1312
- "expression": "user_id",
1313
- "isExpression": false,
1314
- "asc": true,
1315
- "nulls": "last"
1316
- }
1317
- ],
1318
- "isUnique": false,
1319
- "concurrently": false,
1320
- "method": "btree",
1321
- "with": {}
1322
- }
1323
- },
1324
- "foreignKeys": {
1325
- "session_user_id_user_id_fk": {
1326
- "name": "session_user_id_user_id_fk",
1327
- "tableFrom": "session",
1328
- "tableTo": "user",
1329
- "columnsFrom": [
1330
- "user_id"
1331
- ],
1332
- "columnsTo": [
1333
- "id"
1334
- ],
1335
- "onDelete": "cascade",
1336
- "onUpdate": "no action"
1337
- }
1338
- },
1339
- "compositePrimaryKeys": {},
1340
- "uniqueConstraints": {
1341
- "session_token_unique": {
1342
- "name": "session_token_unique",
1343
- "nullsNotDistinct": false,
1344
- "columns": [
1345
- "token"
1346
- ]
1347
- }
1348
- },
1349
- "policies": {},
1350
- "checkConstraints": {},
1351
- "isRLSEnabled": false
1352
- },
1353
- "public.user": {
1354
- "name": "user",
1355
- "schema": "",
1356
- "columns": {
1357
- "id": {
1358
- "name": "id",
1359
- "type": "text",
1360
- "primaryKey": true,
1361
- "notNull": true
1362
- },
1363
- "name": {
1364
- "name": "name",
1365
- "type": "text",
1366
- "primaryKey": false,
1367
- "notNull": true
1368
- },
1369
- "email": {
1370
- "name": "email",
1371
- "type": "text",
1372
- "primaryKey": false,
1373
- "notNull": true
1374
- },
1375
- "email_verified": {
1376
- "name": "email_verified",
1377
- "type": "boolean",
1378
- "primaryKey": false,
1379
- "notNull": true,
1380
- "default": false
1381
- },
1382
- "image": {
1383
- "name": "image",
1384
- "type": "text",
1385
- "primaryKey": false,
1386
- "notNull": false
1387
- },
1388
- "created_at": {
1389
- "name": "created_at",
1390
- "type": "timestamp",
1391
- "primaryKey": false,
1392
- "notNull": true,
1393
- "default": "now()"
1394
- },
1395
- "updated_at": {
1396
- "name": "updated_at",
1397
- "type": "timestamp",
1398
- "primaryKey": false,
1399
- "notNull": true,
1400
- "default": "now()"
1401
- }
1402
- },
1403
- "indexes": {},
1404
- "foreignKeys": {},
1405
- "compositePrimaryKeys": {},
1406
- "uniqueConstraints": {
1407
- "user_email_unique": {
1408
- "name": "user_email_unique",
1409
- "nullsNotDistinct": false,
1410
- "columns": [
1411
- "email"
1412
- ]
1413
- }
1414
- },
1415
- "policies": {},
1416
- "checkConstraints": {},
1417
- "isRLSEnabled": false
1418
- },
1419
- "public.verification": {
1420
- "name": "verification",
1421
- "schema": "",
1422
- "columns": {
1423
- "id": {
1424
- "name": "id",
1425
- "type": "text",
1426
- "primaryKey": true,
1427
- "notNull": true
1428
- },
1429
- "identifier": {
1430
- "name": "identifier",
1431
- "type": "text",
1432
- "primaryKey": false,
1433
- "notNull": true
1434
- },
1435
- "value": {
1436
- "name": "value",
1437
- "type": "text",
1438
- "primaryKey": false,
1439
- "notNull": true
1440
- },
1441
- "expires_at": {
1442
- "name": "expires_at",
1443
- "type": "timestamp",
1444
- "primaryKey": false,
1445
- "notNull": true
1446
- },
1447
- "created_at": {
1448
- "name": "created_at",
1449
- "type": "timestamp",
1450
- "primaryKey": false,
1451
- "notNull": true,
1452
- "default": "now()"
1453
- },
1454
- "updated_at": {
1455
- "name": "updated_at",
1456
- "type": "timestamp",
1457
- "primaryKey": false,
1458
- "notNull": true,
1459
- "default": "now()"
1460
- }
1461
- },
1462
- "indexes": {
1463
- "verification_identifier_idx": {
1464
- "name": "verification_identifier_idx",
1465
- "columns": [
1466
- {
1467
- "expression": "identifier",
1468
- "isExpression": false,
1469
- "asc": true,
1470
- "nulls": "last"
1471
- }
1472
- ],
1473
- "isUnique": false,
1474
- "concurrently": false,
1475
- "method": "btree",
1476
- "with": {}
1477
- }
1478
- },
1479
- "foreignKeys": {},
1480
- "compositePrimaryKeys": {},
1481
- "uniqueConstraints": {},
1482
- "policies": {},
1483
- "checkConstraints": {},
1484
- "isRLSEnabled": false
1485
- }
1486
- },
1487
- "enums": {},
1488
- "schemas": {},
1489
- "sequences": {},
1490
- "roles": {},
1491
- "policies": {},
1492
- "views": {},
1493
- "_meta": {
1494
- "columns": {},
1495
- "schemas": {},
1496
- "tables": {}
1497
- }
1498
- }