@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,1666 +0,0 @@
1
- {
2
- "id": "f64e8397-b586-4691-bbfd-f6855d4b0ad4",
3
- "prevId": "105e220b-3da6-4cb2-8ae2-85d4a1eca941",
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
- "schedule_mode": {
263
- "name": "schedule_mode",
264
- "type": "text",
265
- "primaryKey": false,
266
- "notNull": true,
267
- "default": "'cron'"
268
- },
269
- "continuous_delay_minutes": {
270
- "name": "continuous_delay_minutes",
271
- "type": "integer",
272
- "primaryKey": false,
273
- "notNull": true,
274
- "default": 1
275
- },
276
- "timezone": {
277
- "name": "timezone",
278
- "type": "text",
279
- "primaryKey": false,
280
- "notNull": false
281
- },
282
- "workdir": {
283
- "name": "workdir",
284
- "type": "text",
285
- "primaryKey": false,
286
- "notNull": false
287
- },
288
- "task_file": {
289
- "name": "task_file",
290
- "type": "text",
291
- "primaryKey": false,
292
- "notNull": false
293
- },
294
- "task_file_content": {
295
- "name": "task_file_content",
296
- "type": "text",
297
- "primaryKey": false,
298
- "notNull": false
299
- },
300
- "task_file_synced_at": {
301
- "name": "task_file_synced_at",
302
- "type": "text",
303
- "primaryKey": false,
304
- "notNull": false
305
- },
306
- "workflow": {
307
- "name": "workflow",
308
- "type": "text",
309
- "primaryKey": false,
310
- "notNull": false
311
- },
312
- "ui": {
313
- "name": "ui",
314
- "type": "text",
315
- "primaryKey": false,
316
- "notNull": false
317
- },
318
- "state_schema": {
319
- "name": "state_schema",
320
- "type": "jsonb",
321
- "primaryKey": false,
322
- "notNull": false
323
- },
324
- "notify": {
325
- "name": "notify",
326
- "type": "text",
327
- "primaryKey": false,
328
- "notNull": true,
329
- "default": "'auto'"
330
- },
331
- "allow_control": {
332
- "name": "allow_control",
333
- "type": "boolean",
334
- "primaryKey": false,
335
- "notNull": true,
336
- "default": true
337
- },
338
- "goal": {
339
- "name": "goal",
340
- "type": "text",
341
- "primaryKey": false,
342
- "notNull": false
343
- },
344
- "completed_at": {
345
- "name": "completed_at",
346
- "type": "text",
347
- "primaryKey": false,
348
- "notNull": false
349
- },
350
- "completion_reason": {
351
- "name": "completion_reason",
352
- "type": "text",
353
- "primaryKey": false,
354
- "notNull": false
355
- },
356
- "model": {
357
- "name": "model",
358
- "type": "text",
359
- "primaryKey": false,
360
- "notNull": false
361
- },
362
- "agent": {
363
- "name": "agent",
364
- "type": "text",
365
- "primaryKey": false,
366
- "notNull": true,
367
- "default": "'claude-code'"
368
- },
369
- "enabled": {
370
- "name": "enabled",
371
- "type": "boolean",
372
- "primaryKey": false,
373
- "notNull": true,
374
- "default": true
375
- },
376
- "next_run_at": {
377
- "name": "next_run_at",
378
- "type": "text",
379
- "primaryKey": false,
380
- "notNull": false
381
- },
382
- "evolve_due": {
383
- "name": "evolve_due",
384
- "type": "boolean",
385
- "primaryKey": false,
386
- "notNull": false
387
- },
388
- "edit_request": {
389
- "name": "edit_request",
390
- "type": "text",
391
- "primaryKey": false,
392
- "notNull": false
393
- },
394
- "next_cadence_at": {
395
- "name": "next_cadence_at",
396
- "type": "text",
397
- "primaryKey": false,
398
- "notNull": false
399
- },
400
- "state": {
401
- "name": "state",
402
- "type": "jsonb",
403
- "primaryKey": false,
404
- "notNull": false
405
- },
406
- "evolved_run_count": {
407
- "name": "evolved_run_count",
408
- "type": "integer",
409
- "primaryKey": false,
410
- "notNull": false
411
- },
412
- "created_at": {
413
- "name": "created_at",
414
- "type": "text",
415
- "primaryKey": false,
416
- "notNull": true
417
- },
418
- "updated_at": {
419
- "name": "updated_at",
420
- "type": "text",
421
- "primaryKey": false,
422
- "notNull": true
423
- }
424
- },
425
- "indexes": {
426
- "loops_user_idx": {
427
- "name": "loops_user_idx",
428
- "columns": [
429
- {
430
- "expression": "user_id",
431
- "isExpression": false,
432
- "asc": true,
433
- "nulls": "last"
434
- }
435
- ],
436
- "isUnique": false,
437
- "concurrently": false,
438
- "method": "btree",
439
- "with": {}
440
- },
441
- "loops_team_idx": {
442
- "name": "loops_team_idx",
443
- "columns": [
444
- {
445
- "expression": "team_id",
446
- "isExpression": false,
447
- "asc": true,
448
- "nulls": "last"
449
- }
450
- ],
451
- "isUnique": false,
452
- "concurrently": false,
453
- "method": "btree",
454
- "with": {}
455
- },
456
- "loops_machine_idx": {
457
- "name": "loops_machine_idx",
458
- "columns": [
459
- {
460
- "expression": "machine_id",
461
- "isExpression": false,
462
- "asc": true,
463
- "nulls": "last"
464
- }
465
- ],
466
- "isUnique": false,
467
- "concurrently": false,
468
- "method": "btree",
469
- "with": {}
470
- }
471
- },
472
- "foreignKeys": {},
473
- "compositePrimaryKeys": {},
474
- "uniqueConstraints": {},
475
- "policies": {},
476
- "checkConstraints": {},
477
- "isRLSEnabled": false
478
- },
479
- "public.machines": {
480
- "name": "machines",
481
- "schema": "",
482
- "columns": {
483
- "id": {
484
- "name": "id",
485
- "type": "text",
486
- "primaryKey": true,
487
- "notNull": true
488
- },
489
- "user_id": {
490
- "name": "user_id",
491
- "type": "text",
492
- "primaryKey": false,
493
- "notNull": true
494
- },
495
- "team_id": {
496
- "name": "team_id",
497
- "type": "text",
498
- "primaryKey": false,
499
- "notNull": false
500
- },
501
- "name": {
502
- "name": "name",
503
- "type": "text",
504
- "primaryKey": false,
505
- "notNull": true
506
- },
507
- "hostname": {
508
- "name": "hostname",
509
- "type": "text",
510
- "primaryKey": false,
511
- "notNull": false
512
- },
513
- "platform": {
514
- "name": "platform",
515
- "type": "text",
516
- "primaryKey": false,
517
- "notNull": false
518
- },
519
- "arch": {
520
- "name": "arch",
521
- "type": "text",
522
- "primaryKey": false,
523
- "notNull": false
524
- },
525
- "daemon_version": {
526
- "name": "daemon_version",
527
- "type": "text",
528
- "primaryKey": false,
529
- "notNull": false
530
- },
531
- "token_hash": {
532
- "name": "token_hash",
533
- "type": "text",
534
- "primaryKey": false,
535
- "notNull": true
536
- },
537
- "token": {
538
- "name": "token",
539
- "type": "text",
540
- "primaryKey": false,
541
- "notNull": false
542
- },
543
- "roots": {
544
- "name": "roots",
545
- "type": "jsonb",
546
- "primaryKey": false,
547
- "notNull": false
548
- },
549
- "last_seen": {
550
- "name": "last_seen",
551
- "type": "text",
552
- "primaryKey": false,
553
- "notNull": false
554
- },
555
- "online": {
556
- "name": "online",
557
- "type": "boolean",
558
- "primaryKey": false,
559
- "notNull": true,
560
- "default": false
561
- },
562
- "created_at": {
563
- "name": "created_at",
564
- "type": "text",
565
- "primaryKey": false,
566
- "notNull": true
567
- }
568
- },
569
- "indexes": {
570
- "machines_user_idx": {
571
- "name": "machines_user_idx",
572
- "columns": [
573
- {
574
- "expression": "user_id",
575
- "isExpression": false,
576
- "asc": true,
577
- "nulls": "last"
578
- }
579
- ],
580
- "isUnique": false,
581
- "concurrently": false,
582
- "method": "btree",
583
- "with": {}
584
- },
585
- "machines_team_idx": {
586
- "name": "machines_team_idx",
587
- "columns": [
588
- {
589
- "expression": "team_id",
590
- "isExpression": false,
591
- "asc": true,
592
- "nulls": "last"
593
- }
594
- ],
595
- "isUnique": false,
596
- "concurrently": false,
597
- "method": "btree",
598
- "with": {}
599
- }
600
- },
601
- "foreignKeys": {},
602
- "compositePrimaryKeys": {},
603
- "uniqueConstraints": {},
604
- "policies": {},
605
- "checkConstraints": {},
606
- "isRLSEnabled": false
607
- },
608
- "public.notification_channels": {
609
- "name": "notification_channels",
610
- "schema": "",
611
- "columns": {
612
- "id": {
613
- "name": "id",
614
- "type": "text",
615
- "primaryKey": true,
616
- "notNull": true
617
- },
618
- "team_id": {
619
- "name": "team_id",
620
- "type": "text",
621
- "primaryKey": false,
622
- "notNull": true
623
- },
624
- "type": {
625
- "name": "type",
626
- "type": "text",
627
- "primaryKey": false,
628
- "notNull": true
629
- },
630
- "name": {
631
- "name": "name",
632
- "type": "text",
633
- "primaryKey": false,
634
- "notNull": true
635
- },
636
- "config": {
637
- "name": "config",
638
- "type": "jsonb",
639
- "primaryKey": false,
640
- "notNull": true
641
- },
642
- "created_at": {
643
- "name": "created_at",
644
- "type": "text",
645
- "primaryKey": false,
646
- "notNull": true
647
- }
648
- },
649
- "indexes": {
650
- "notification_channels_team_idx": {
651
- "name": "notification_channels_team_idx",
652
- "columns": [
653
- {
654
- "expression": "team_id",
655
- "isExpression": false,
656
- "asc": true,
657
- "nulls": "last"
658
- }
659
- ],
660
- "isUnique": false,
661
- "concurrently": false,
662
- "method": "btree",
663
- "with": {}
664
- }
665
- },
666
- "foreignKeys": {},
667
- "compositePrimaryKeys": {},
668
- "uniqueConstraints": {},
669
- "policies": {},
670
- "checkConstraints": {},
671
- "isRLSEnabled": false
672
- },
673
- "public.run_leases": {
674
- "name": "run_leases",
675
- "schema": "",
676
- "columns": {
677
- "token_hash": {
678
- "name": "token_hash",
679
- "type": "text",
680
- "primaryKey": true,
681
- "notNull": true
682
- },
683
- "run_id": {
684
- "name": "run_id",
685
- "type": "text",
686
- "primaryKey": false,
687
- "notNull": true
688
- },
689
- "loop_id": {
690
- "name": "loop_id",
691
- "type": "text",
692
- "primaryKey": false,
693
- "notNull": true
694
- },
695
- "machine_id": {
696
- "name": "machine_id",
697
- "type": "text",
698
- "primaryKey": false,
699
- "notNull": true
700
- },
701
- "role": {
702
- "name": "role",
703
- "type": "text",
704
- "primaryKey": false,
705
- "notNull": true
706
- },
707
- "allow_control": {
708
- "name": "allow_control",
709
- "type": "boolean",
710
- "primaryKey": false,
711
- "notNull": true,
712
- "default": false
713
- },
714
- "can_set_ui": {
715
- "name": "can_set_ui",
716
- "type": "boolean",
717
- "primaryKey": false,
718
- "notNull": true,
719
- "default": false
720
- },
721
- "can_set_schema": {
722
- "name": "can_set_schema",
723
- "type": "boolean",
724
- "primaryKey": false,
725
- "notNull": true,
726
- "default": false
727
- },
728
- "can_set_workflow": {
729
- "name": "can_set_workflow",
730
- "type": "boolean",
731
- "primaryKey": false,
732
- "notNull": true,
733
- "default": false
734
- },
735
- "can_finish": {
736
- "name": "can_finish",
737
- "type": "boolean",
738
- "primaryKey": false,
739
- "notNull": true,
740
- "default": false
741
- },
742
- "state": {
743
- "name": "state",
744
- "type": "text",
745
- "primaryKey": false,
746
- "notNull": true,
747
- "default": "'active'"
748
- },
749
- "expires_at": {
750
- "name": "expires_at",
751
- "type": "text",
752
- "primaryKey": false,
753
- "notNull": false
754
- },
755
- "created_at": {
756
- "name": "created_at",
757
- "type": "text",
758
- "primaryKey": false,
759
- "notNull": true
760
- }
761
- },
762
- "indexes": {
763
- "run_leases_run_idx": {
764
- "name": "run_leases_run_idx",
765
- "columns": [
766
- {
767
- "expression": "run_id",
768
- "isExpression": false,
769
- "asc": true,
770
- "nulls": "last"
771
- }
772
- ],
773
- "isUnique": false,
774
- "concurrently": false,
775
- "method": "btree",
776
- "with": {}
777
- },
778
- "run_leases_loop_idx": {
779
- "name": "run_leases_loop_idx",
780
- "columns": [
781
- {
782
- "expression": "loop_id",
783
- "isExpression": false,
784
- "asc": true,
785
- "nulls": "last"
786
- }
787
- ],
788
- "isUnique": false,
789
- "concurrently": false,
790
- "method": "btree",
791
- "with": {}
792
- }
793
- },
794
- "foreignKeys": {},
795
- "compositePrimaryKeys": {},
796
- "uniqueConstraints": {},
797
- "policies": {},
798
- "checkConstraints": {},
799
- "isRLSEnabled": false
800
- },
801
- "public.run_snapshots": {
802
- "name": "run_snapshots",
803
- "schema": "",
804
- "columns": {
805
- "run_id": {
806
- "name": "run_id",
807
- "type": "text",
808
- "primaryKey": true,
809
- "notNull": true
810
- },
811
- "loop_id": {
812
- "name": "loop_id",
813
- "type": "text",
814
- "primaryKey": false,
815
- "notNull": true
816
- },
817
- "manifest": {
818
- "name": "manifest",
819
- "type": "jsonb",
820
- "primaryKey": false,
821
- "notNull": true
822
- },
823
- "created_at": {
824
- "name": "created_at",
825
- "type": "text",
826
- "primaryKey": false,
827
- "notNull": true
828
- }
829
- },
830
- "indexes": {
831
- "run_snapshots_loop_idx": {
832
- "name": "run_snapshots_loop_idx",
833
- "columns": [
834
- {
835
- "expression": "loop_id",
836
- "isExpression": false,
837
- "asc": true,
838
- "nulls": "last"
839
- }
840
- ],
841
- "isUnique": false,
842
- "concurrently": false,
843
- "method": "btree",
844
- "with": {}
845
- }
846
- },
847
- "foreignKeys": {},
848
- "compositePrimaryKeys": {},
849
- "uniqueConstraints": {},
850
- "policies": {},
851
- "checkConstraints": {},
852
- "isRLSEnabled": false
853
- },
854
- "public.runs": {
855
- "name": "runs",
856
- "schema": "",
857
- "columns": {
858
- "id": {
859
- "name": "id",
860
- "type": "text",
861
- "primaryKey": true,
862
- "notNull": true
863
- },
864
- "loop_id": {
865
- "name": "loop_id",
866
- "type": "text",
867
- "primaryKey": false,
868
- "notNull": true
869
- },
870
- "user_id": {
871
- "name": "user_id",
872
- "type": "text",
873
- "primaryKey": false,
874
- "notNull": true
875
- },
876
- "machine_id": {
877
- "name": "machine_id",
878
- "type": "text",
879
- "primaryKey": false,
880
- "notNull": true
881
- },
882
- "phase": {
883
- "name": "phase",
884
- "type": "text",
885
- "primaryKey": false,
886
- "notNull": true
887
- },
888
- "role": {
889
- "name": "role",
890
- "type": "text",
891
- "primaryKey": false,
892
- "notNull": true
893
- },
894
- "requested_by": {
895
- "name": "requested_by",
896
- "type": "text",
897
- "primaryKey": false,
898
- "notNull": true,
899
- "default": "'system'"
900
- },
901
- "request_text": {
902
- "name": "request_text",
903
- "type": "text",
904
- "primaryKey": false,
905
- "notNull": false
906
- },
907
- "ts": {
908
- "name": "ts",
909
- "type": "text",
910
- "primaryKey": false,
911
- "notNull": true
912
- },
913
- "created_at": {
914
- "name": "created_at",
915
- "type": "text",
916
- "primaryKey": false,
917
- "notNull": true,
918
- "default": "CURRENT_TIMESTAMP::text"
919
- },
920
- "updated_at": {
921
- "name": "updated_at",
922
- "type": "text",
923
- "primaryKey": false,
924
- "notNull": true,
925
- "default": "CURRENT_TIMESTAMP::text"
926
- },
927
- "outcome": {
928
- "name": "outcome",
929
- "type": "text",
930
- "primaryKey": false,
931
- "notNull": false
932
- },
933
- "status": {
934
- "name": "status",
935
- "type": "text",
936
- "primaryKey": false,
937
- "notNull": false
938
- },
939
- "message": {
940
- "name": "message",
941
- "type": "text",
942
- "primaryKey": false,
943
- "notNull": false
944
- },
945
- "duration_ms": {
946
- "name": "duration_ms",
947
- "type": "integer",
948
- "primaryKey": false,
949
- "notNull": false
950
- },
951
- "error": {
952
- "name": "error",
953
- "type": "text",
954
- "primaryKey": false,
955
- "notNull": false
956
- },
957
- "state": {
958
- "name": "state",
959
- "type": "jsonb",
960
- "primaryKey": false,
961
- "notNull": false
962
- },
963
- "control": {
964
- "name": "control",
965
- "type": "jsonb",
966
- "primaryKey": false,
967
- "notNull": false
968
- },
969
- "session_id": {
970
- "name": "session_id",
971
- "type": "text",
972
- "primaryKey": false,
973
- "notNull": false
974
- },
975
- "cost_usd": {
976
- "name": "cost_usd",
977
- "type": "double precision",
978
- "primaryKey": false,
979
- "notNull": false
980
- },
981
- "usage": {
982
- "name": "usage",
983
- "type": "jsonb",
984
- "primaryKey": false,
985
- "notNull": false
986
- },
987
- "artifacts": {
988
- "name": "artifacts",
989
- "type": "jsonb",
990
- "primaryKey": false,
991
- "notNull": false
992
- },
993
- "transcript": {
994
- "name": "transcript",
995
- "type": "jsonb",
996
- "primaryKey": false,
997
- "notNull": false
998
- },
999
- "progress": {
1000
- "name": "progress",
1001
- "type": "jsonb",
1002
- "primaryKey": false,
1003
- "notNull": false
1004
- }
1005
- },
1006
- "indexes": {
1007
- "runs_loop_idx": {
1008
- "name": "runs_loop_idx",
1009
- "columns": [
1010
- {
1011
- "expression": "loop_id",
1012
- "isExpression": false,
1013
- "asc": true,
1014
- "nulls": "last"
1015
- }
1016
- ],
1017
- "isUnique": false,
1018
- "concurrently": false,
1019
- "method": "btree",
1020
- "with": {}
1021
- },
1022
- "runs_phase_idx": {
1023
- "name": "runs_phase_idx",
1024
- "columns": [
1025
- {
1026
- "expression": "phase",
1027
- "isExpression": false,
1028
- "asc": true,
1029
- "nulls": "last"
1030
- }
1031
- ],
1032
- "isUnique": false,
1033
- "concurrently": false,
1034
- "method": "btree",
1035
- "with": {}
1036
- },
1037
- "runs_machine_phase_ready_idx": {
1038
- "name": "runs_machine_phase_ready_idx",
1039
- "columns": [
1040
- {
1041
- "expression": "machine_id",
1042
- "isExpression": false,
1043
- "asc": true,
1044
- "nulls": "last"
1045
- },
1046
- {
1047
- "expression": "phase",
1048
- "isExpression": false,
1049
- "asc": true,
1050
- "nulls": "last"
1051
- }
1052
- ],
1053
- "isUnique": false,
1054
- "concurrently": false,
1055
- "method": "btree",
1056
- "with": {}
1057
- },
1058
- "runs_loop_ts_idx": {
1059
- "name": "runs_loop_ts_idx",
1060
- "columns": [
1061
- {
1062
- "expression": "loop_id",
1063
- "isExpression": false,
1064
- "asc": true,
1065
- "nulls": "last"
1066
- },
1067
- {
1068
- "expression": "ts",
1069
- "isExpression": false,
1070
- "asc": true,
1071
- "nulls": "last"
1072
- }
1073
- ],
1074
- "isUnique": false,
1075
- "concurrently": false,
1076
- "method": "btree",
1077
- "with": {}
1078
- },
1079
- "runs_loop_role_pending_idx": {
1080
- "name": "runs_loop_role_pending_idx",
1081
- "columns": [
1082
- {
1083
- "expression": "loop_id",
1084
- "isExpression": false,
1085
- "asc": true,
1086
- "nulls": "last"
1087
- },
1088
- {
1089
- "expression": "role",
1090
- "isExpression": false,
1091
- "asc": true,
1092
- "nulls": "last"
1093
- }
1094
- ],
1095
- "isUnique": true,
1096
- "where": "\"runs\".\"phase\" = 'pending'",
1097
- "concurrently": false,
1098
- "method": "btree",
1099
- "with": {}
1100
- }
1101
- },
1102
- "foreignKeys": {},
1103
- "compositePrimaryKeys": {},
1104
- "uniqueConstraints": {},
1105
- "policies": {},
1106
- "checkConstraints": {},
1107
- "isRLSEnabled": false
1108
- },
1109
- "public.team_invites": {
1110
- "name": "team_invites",
1111
- "schema": "",
1112
- "columns": {
1113
- "token": {
1114
- "name": "token",
1115
- "type": "text",
1116
- "primaryKey": true,
1117
- "notNull": true
1118
- },
1119
- "team_id": {
1120
- "name": "team_id",
1121
- "type": "text",
1122
- "primaryKey": false,
1123
- "notNull": true
1124
- },
1125
- "role": {
1126
- "name": "role",
1127
- "type": "text",
1128
- "primaryKey": false,
1129
- "notNull": true,
1130
- "default": "'member'"
1131
- },
1132
- "invited_by_user_id": {
1133
- "name": "invited_by_user_id",
1134
- "type": "text",
1135
- "primaryKey": false,
1136
- "notNull": true
1137
- },
1138
- "expires_at": {
1139
- "name": "expires_at",
1140
- "type": "text",
1141
- "primaryKey": false,
1142
- "notNull": true
1143
- },
1144
- "redeemed_at": {
1145
- "name": "redeemed_at",
1146
- "type": "text",
1147
- "primaryKey": false,
1148
- "notNull": false
1149
- },
1150
- "redeemed_by_user_id": {
1151
- "name": "redeemed_by_user_id",
1152
- "type": "text",
1153
- "primaryKey": false,
1154
- "notNull": false
1155
- },
1156
- "created_at": {
1157
- "name": "created_at",
1158
- "type": "text",
1159
- "primaryKey": false,
1160
- "notNull": true
1161
- }
1162
- },
1163
- "indexes": {
1164
- "team_invites_team_idx": {
1165
- "name": "team_invites_team_idx",
1166
- "columns": [
1167
- {
1168
- "expression": "team_id",
1169
- "isExpression": false,
1170
- "asc": true,
1171
- "nulls": "last"
1172
- }
1173
- ],
1174
- "isUnique": false,
1175
- "concurrently": false,
1176
- "method": "btree",
1177
- "with": {}
1178
- }
1179
- },
1180
- "foreignKeys": {},
1181
- "compositePrimaryKeys": {},
1182
- "uniqueConstraints": {},
1183
- "policies": {},
1184
- "checkConstraints": {},
1185
- "isRLSEnabled": false
1186
- },
1187
- "public.team_members": {
1188
- "name": "team_members",
1189
- "schema": "",
1190
- "columns": {
1191
- "id": {
1192
- "name": "id",
1193
- "type": "text",
1194
- "primaryKey": true,
1195
- "notNull": true
1196
- },
1197
- "team_id": {
1198
- "name": "team_id",
1199
- "type": "text",
1200
- "primaryKey": false,
1201
- "notNull": true
1202
- },
1203
- "user_id": {
1204
- "name": "user_id",
1205
- "type": "text",
1206
- "primaryKey": false,
1207
- "notNull": true
1208
- },
1209
- "role": {
1210
- "name": "role",
1211
- "type": "text",
1212
- "primaryKey": false,
1213
- "notNull": true,
1214
- "default": "'member'"
1215
- },
1216
- "created_at": {
1217
- "name": "created_at",
1218
- "type": "text",
1219
- "primaryKey": false,
1220
- "notNull": true
1221
- }
1222
- },
1223
- "indexes": {
1224
- "team_members_team_idx": {
1225
- "name": "team_members_team_idx",
1226
- "columns": [
1227
- {
1228
- "expression": "team_id",
1229
- "isExpression": false,
1230
- "asc": true,
1231
- "nulls": "last"
1232
- }
1233
- ],
1234
- "isUnique": false,
1235
- "concurrently": false,
1236
- "method": "btree",
1237
- "with": {}
1238
- },
1239
- "team_members_user_idx": {
1240
- "name": "team_members_user_idx",
1241
- "columns": [
1242
- {
1243
- "expression": "user_id",
1244
- "isExpression": false,
1245
- "asc": true,
1246
- "nulls": "last"
1247
- }
1248
- ],
1249
- "isUnique": false,
1250
- "concurrently": false,
1251
- "method": "btree",
1252
- "with": {}
1253
- }
1254
- },
1255
- "foreignKeys": {},
1256
- "compositePrimaryKeys": {},
1257
- "uniqueConstraints": {},
1258
- "policies": {},
1259
- "checkConstraints": {},
1260
- "isRLSEnabled": false
1261
- },
1262
- "public.teams": {
1263
- "name": "teams",
1264
- "schema": "",
1265
- "columns": {
1266
- "id": {
1267
- "name": "id",
1268
- "type": "text",
1269
- "primaryKey": true,
1270
- "notNull": true
1271
- },
1272
- "name": {
1273
- "name": "name",
1274
- "type": "text",
1275
- "primaryKey": false,
1276
- "notNull": true
1277
- },
1278
- "owner_user_id": {
1279
- "name": "owner_user_id",
1280
- "type": "text",
1281
- "primaryKey": false,
1282
- "notNull": false
1283
- },
1284
- "created_at": {
1285
- "name": "created_at",
1286
- "type": "text",
1287
- "primaryKey": false,
1288
- "notNull": true
1289
- }
1290
- },
1291
- "indexes": {},
1292
- "foreignKeys": {},
1293
- "compositePrimaryKeys": {},
1294
- "uniqueConstraints": {},
1295
- "policies": {},
1296
- "checkConstraints": {},
1297
- "isRLSEnabled": false
1298
- },
1299
- "public.account": {
1300
- "name": "account",
1301
- "schema": "",
1302
- "columns": {
1303
- "id": {
1304
- "name": "id",
1305
- "type": "text",
1306
- "primaryKey": true,
1307
- "notNull": true
1308
- },
1309
- "account_id": {
1310
- "name": "account_id",
1311
- "type": "text",
1312
- "primaryKey": false,
1313
- "notNull": true
1314
- },
1315
- "provider_id": {
1316
- "name": "provider_id",
1317
- "type": "text",
1318
- "primaryKey": false,
1319
- "notNull": true
1320
- },
1321
- "user_id": {
1322
- "name": "user_id",
1323
- "type": "text",
1324
- "primaryKey": false,
1325
- "notNull": true
1326
- },
1327
- "access_token": {
1328
- "name": "access_token",
1329
- "type": "text",
1330
- "primaryKey": false,
1331
- "notNull": false
1332
- },
1333
- "refresh_token": {
1334
- "name": "refresh_token",
1335
- "type": "text",
1336
- "primaryKey": false,
1337
- "notNull": false
1338
- },
1339
- "id_token": {
1340
- "name": "id_token",
1341
- "type": "text",
1342
- "primaryKey": false,
1343
- "notNull": false
1344
- },
1345
- "access_token_expires_at": {
1346
- "name": "access_token_expires_at",
1347
- "type": "timestamp",
1348
- "primaryKey": false,
1349
- "notNull": false
1350
- },
1351
- "refresh_token_expires_at": {
1352
- "name": "refresh_token_expires_at",
1353
- "type": "timestamp",
1354
- "primaryKey": false,
1355
- "notNull": false
1356
- },
1357
- "scope": {
1358
- "name": "scope",
1359
- "type": "text",
1360
- "primaryKey": false,
1361
- "notNull": false
1362
- },
1363
- "password": {
1364
- "name": "password",
1365
- "type": "text",
1366
- "primaryKey": false,
1367
- "notNull": false
1368
- },
1369
- "created_at": {
1370
- "name": "created_at",
1371
- "type": "timestamp",
1372
- "primaryKey": false,
1373
- "notNull": true,
1374
- "default": "now()"
1375
- },
1376
- "updated_at": {
1377
- "name": "updated_at",
1378
- "type": "timestamp",
1379
- "primaryKey": false,
1380
- "notNull": true
1381
- }
1382
- },
1383
- "indexes": {
1384
- "account_userId_idx": {
1385
- "name": "account_userId_idx",
1386
- "columns": [
1387
- {
1388
- "expression": "user_id",
1389
- "isExpression": false,
1390
- "asc": true,
1391
- "nulls": "last"
1392
- }
1393
- ],
1394
- "isUnique": false,
1395
- "concurrently": false,
1396
- "method": "btree",
1397
- "with": {}
1398
- }
1399
- },
1400
- "foreignKeys": {
1401
- "account_user_id_user_id_fk": {
1402
- "name": "account_user_id_user_id_fk",
1403
- "tableFrom": "account",
1404
- "tableTo": "user",
1405
- "columnsFrom": [
1406
- "user_id"
1407
- ],
1408
- "columnsTo": [
1409
- "id"
1410
- ],
1411
- "onDelete": "cascade",
1412
- "onUpdate": "no action"
1413
- }
1414
- },
1415
- "compositePrimaryKeys": {},
1416
- "uniqueConstraints": {},
1417
- "policies": {},
1418
- "checkConstraints": {},
1419
- "isRLSEnabled": false
1420
- },
1421
- "public.session": {
1422
- "name": "session",
1423
- "schema": "",
1424
- "columns": {
1425
- "id": {
1426
- "name": "id",
1427
- "type": "text",
1428
- "primaryKey": true,
1429
- "notNull": true
1430
- },
1431
- "expires_at": {
1432
- "name": "expires_at",
1433
- "type": "timestamp",
1434
- "primaryKey": false,
1435
- "notNull": true
1436
- },
1437
- "token": {
1438
- "name": "token",
1439
- "type": "text",
1440
- "primaryKey": false,
1441
- "notNull": true
1442
- },
1443
- "created_at": {
1444
- "name": "created_at",
1445
- "type": "timestamp",
1446
- "primaryKey": false,
1447
- "notNull": true,
1448
- "default": "now()"
1449
- },
1450
- "updated_at": {
1451
- "name": "updated_at",
1452
- "type": "timestamp",
1453
- "primaryKey": false,
1454
- "notNull": true
1455
- },
1456
- "ip_address": {
1457
- "name": "ip_address",
1458
- "type": "text",
1459
- "primaryKey": false,
1460
- "notNull": false
1461
- },
1462
- "user_agent": {
1463
- "name": "user_agent",
1464
- "type": "text",
1465
- "primaryKey": false,
1466
- "notNull": false
1467
- },
1468
- "user_id": {
1469
- "name": "user_id",
1470
- "type": "text",
1471
- "primaryKey": false,
1472
- "notNull": true
1473
- }
1474
- },
1475
- "indexes": {
1476
- "session_userId_idx": {
1477
- "name": "session_userId_idx",
1478
- "columns": [
1479
- {
1480
- "expression": "user_id",
1481
- "isExpression": false,
1482
- "asc": true,
1483
- "nulls": "last"
1484
- }
1485
- ],
1486
- "isUnique": false,
1487
- "concurrently": false,
1488
- "method": "btree",
1489
- "with": {}
1490
- }
1491
- },
1492
- "foreignKeys": {
1493
- "session_user_id_user_id_fk": {
1494
- "name": "session_user_id_user_id_fk",
1495
- "tableFrom": "session",
1496
- "tableTo": "user",
1497
- "columnsFrom": [
1498
- "user_id"
1499
- ],
1500
- "columnsTo": [
1501
- "id"
1502
- ],
1503
- "onDelete": "cascade",
1504
- "onUpdate": "no action"
1505
- }
1506
- },
1507
- "compositePrimaryKeys": {},
1508
- "uniqueConstraints": {
1509
- "session_token_unique": {
1510
- "name": "session_token_unique",
1511
- "nullsNotDistinct": false,
1512
- "columns": [
1513
- "token"
1514
- ]
1515
- }
1516
- },
1517
- "policies": {},
1518
- "checkConstraints": {},
1519
- "isRLSEnabled": false
1520
- },
1521
- "public.user": {
1522
- "name": "user",
1523
- "schema": "",
1524
- "columns": {
1525
- "id": {
1526
- "name": "id",
1527
- "type": "text",
1528
- "primaryKey": true,
1529
- "notNull": true
1530
- },
1531
- "name": {
1532
- "name": "name",
1533
- "type": "text",
1534
- "primaryKey": false,
1535
- "notNull": true
1536
- },
1537
- "email": {
1538
- "name": "email",
1539
- "type": "text",
1540
- "primaryKey": false,
1541
- "notNull": true
1542
- },
1543
- "email_verified": {
1544
- "name": "email_verified",
1545
- "type": "boolean",
1546
- "primaryKey": false,
1547
- "notNull": true,
1548
- "default": false
1549
- },
1550
- "image": {
1551
- "name": "image",
1552
- "type": "text",
1553
- "primaryKey": false,
1554
- "notNull": false
1555
- },
1556
- "created_at": {
1557
- "name": "created_at",
1558
- "type": "timestamp",
1559
- "primaryKey": false,
1560
- "notNull": true,
1561
- "default": "now()"
1562
- },
1563
- "updated_at": {
1564
- "name": "updated_at",
1565
- "type": "timestamp",
1566
- "primaryKey": false,
1567
- "notNull": true,
1568
- "default": "now()"
1569
- }
1570
- },
1571
- "indexes": {},
1572
- "foreignKeys": {},
1573
- "compositePrimaryKeys": {},
1574
- "uniqueConstraints": {
1575
- "user_email_unique": {
1576
- "name": "user_email_unique",
1577
- "nullsNotDistinct": false,
1578
- "columns": [
1579
- "email"
1580
- ]
1581
- }
1582
- },
1583
- "policies": {},
1584
- "checkConstraints": {},
1585
- "isRLSEnabled": false
1586
- },
1587
- "public.verification": {
1588
- "name": "verification",
1589
- "schema": "",
1590
- "columns": {
1591
- "id": {
1592
- "name": "id",
1593
- "type": "text",
1594
- "primaryKey": true,
1595
- "notNull": true
1596
- },
1597
- "identifier": {
1598
- "name": "identifier",
1599
- "type": "text",
1600
- "primaryKey": false,
1601
- "notNull": true
1602
- },
1603
- "value": {
1604
- "name": "value",
1605
- "type": "text",
1606
- "primaryKey": false,
1607
- "notNull": true
1608
- },
1609
- "expires_at": {
1610
- "name": "expires_at",
1611
- "type": "timestamp",
1612
- "primaryKey": false,
1613
- "notNull": true
1614
- },
1615
- "created_at": {
1616
- "name": "created_at",
1617
- "type": "timestamp",
1618
- "primaryKey": false,
1619
- "notNull": true,
1620
- "default": "now()"
1621
- },
1622
- "updated_at": {
1623
- "name": "updated_at",
1624
- "type": "timestamp",
1625
- "primaryKey": false,
1626
- "notNull": true,
1627
- "default": "now()"
1628
- }
1629
- },
1630
- "indexes": {
1631
- "verification_identifier_idx": {
1632
- "name": "verification_identifier_idx",
1633
- "columns": [
1634
- {
1635
- "expression": "identifier",
1636
- "isExpression": false,
1637
- "asc": true,
1638
- "nulls": "last"
1639
- }
1640
- ],
1641
- "isUnique": false,
1642
- "concurrently": false,
1643
- "method": "btree",
1644
- "with": {}
1645
- }
1646
- },
1647
- "foreignKeys": {},
1648
- "compositePrimaryKeys": {},
1649
- "uniqueConstraints": {},
1650
- "policies": {},
1651
- "checkConstraints": {},
1652
- "isRLSEnabled": false
1653
- }
1654
- },
1655
- "enums": {},
1656
- "schemas": {},
1657
- "sequences": {},
1658
- "roles": {},
1659
- "policies": {},
1660
- "views": {},
1661
- "_meta": {
1662
- "columns": {},
1663
- "schemas": {},
1664
- "tables": {}
1665
- }
1666
- }