hatchlight 0.0.0-stage → 0.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.
- package/LICENSE +21 -0
- package/README.md +34 -2
- package/bin/hatchlight.js +434 -0
- package/package.json +32 -5
- package/resources/drizzle/0000_init.sql +57 -0
- package/resources/drizzle/0001_job_error_codes.sql +2 -0
- package/resources/drizzle/0002_assistant_messages.sql +10 -0
- package/resources/drizzle/0003_accounts.sql +56 -0
- package/resources/drizzle/0004_spending.sql +14 -0
- package/resources/drizzle/0005_account_hardening.sql +12 -0
- package/resources/drizzle/0006_lora_uploads.sql +8 -0
- package/resources/drizzle/0007_reset_notices.sql +1 -0
- package/resources/drizzle/0008_spending_key_source.sql +1 -0
- package/resources/drizzle/0009_asset_usage.sql +8 -0
- package/resources/drizzle/0010_agent_tokens.sql +8 -0
- package/resources/drizzle/0011_pending_spending.sql +1 -0
- package/resources/drizzle/meta/0000_snapshot.json +374 -0
- package/resources/drizzle/meta/0001_snapshot.json +388 -0
- package/resources/drizzle/meta/0002_snapshot.json +449 -0
- package/resources/drizzle/meta/0003_snapshot.json +814 -0
- package/resources/drizzle/meta/0004_snapshot.json +872 -0
- package/resources/drizzle/meta/0005_snapshot.json +950 -0
- package/resources/drizzle/meta/0006_snapshot.json +994 -0
- package/resources/drizzle/meta/0007_snapshot.json +1001 -0
- package/resources/drizzle/meta/0008_snapshot.json +1009 -0
- package/resources/drizzle/meta/0009_snapshot.json +1033 -0
- package/resources/drizzle/meta/0010_snapshot.json +1064 -0
- package/resources/drizzle/meta/0011_snapshot.json +1072 -0
- package/resources/drizzle/meta/_journal.json +90 -0
- package/resources/web/assets/Assistant-Dcr31LAV.js +44 -0
- package/resources/web/assets/Gallery-CMRGE3qD.js +11 -0
- package/resources/web/assets/Models-D468Wmoj.js +1 -0
- package/resources/web/assets/Settings-DSXHt9Y3.js +2 -0
- package/resources/web/assets/bricolage-grotesque-latin-500-normal-CV-uA8Lw.woff +0 -0
- package/resources/web/assets/bricolage-grotesque-latin-500-normal-DEDBoLFO.woff2 +0 -0
- package/resources/web/assets/bricolage-grotesque-latin-700-normal-DvJDmrLu.woff +0 -0
- package/resources/web/assets/bricolage-grotesque-latin-700-normal-gtcctNPv.woff2 +0 -0
- package/resources/web/assets/bricolage-grotesque-latin-800-normal-Br4b-5gk.woff +0 -0
- package/resources/web/assets/bricolage-grotesque-latin-800-normal-J50vIsBe.woff2 +0 -0
- package/resources/web/assets/bricolage-grotesque-latin-ext-500-normal-B0ZDNVGf.woff +0 -0
- package/resources/web/assets/bricolage-grotesque-latin-ext-500-normal-DIhLz7G7.woff2 +0 -0
- package/resources/web/assets/bricolage-grotesque-latin-ext-700-normal-BXpPFNFj.woff +0 -0
- package/resources/web/assets/bricolage-grotesque-latin-ext-700-normal-fBkt-7fi.woff2 +0 -0
- package/resources/web/assets/bricolage-grotesque-latin-ext-800-normal-BimIDUhy.woff2 +0 -0
- package/resources/web/assets/bricolage-grotesque-latin-ext-800-normal-CkoBqIJM.woff +0 -0
- package/resources/web/assets/bricolage-grotesque-vietnamese-500-normal-CAK5R6Iy.woff +0 -0
- package/resources/web/assets/bricolage-grotesque-vietnamese-500-normal-FzY9NZwK.woff2 +0 -0
- package/resources/web/assets/bricolage-grotesque-vietnamese-700-normal-BLYPkJbo.woff2 +0 -0
- package/resources/web/assets/bricolage-grotesque-vietnamese-700-normal-CHrFuVHU.woff +0 -0
- package/resources/web/assets/bricolage-grotesque-vietnamese-800-normal-DJ4hCX8l.woff +0 -0
- package/resources/web/assets/bricolage-grotesque-vietnamese-800-normal-RJtJa6zl.woff2 +0 -0
- package/resources/web/assets/ibm-plex-mono-cyrillic-400-normal-CJUKFyLa.woff +0 -0
- package/resources/web/assets/ibm-plex-mono-cyrillic-400-normal-DvQQgHTq.woff2 +0 -0
- package/resources/web/assets/ibm-plex-mono-cyrillic-500-normal-BtGHVI3Q.woff2 +0 -0
- package/resources/web/assets/ibm-plex-mono-cyrillic-500-normal-N1TV9ACq.woff +0 -0
- package/resources/web/assets/ibm-plex-mono-cyrillic-ext-400-normal-B3hZxag_.woff2 +0 -0
- package/resources/web/assets/ibm-plex-mono-cyrillic-ext-400-normal-ZyMXPjaT.woff +0 -0
- package/resources/web/assets/ibm-plex-mono-cyrillic-ext-500-normal-CmcxpzmF.woff2 +0 -0
- package/resources/web/assets/ibm-plex-mono-cyrillic-ext-500-normal-yqk7_qG0.woff +0 -0
- package/resources/web/assets/ibm-plex-mono-latin-400-normal-Dm_PoFIZ.woff2 +0 -0
- package/resources/web/assets/ibm-plex-mono-latin-400-normal-O6-GRVqx.woff +0 -0
- package/resources/web/assets/ibm-plex-mono-latin-500-normal-C_OblDzq.woff2 +0 -0
- package/resources/web/assets/ibm-plex-mono-latin-500-normal-zoSM89R3.woff +0 -0
- package/resources/web/assets/ibm-plex-mono-latin-ext-400-normal-DxDDqVQb.woff2 +0 -0
- package/resources/web/assets/ibm-plex-mono-latin-ext-400-normal-uwM7KshN.woff +0 -0
- package/resources/web/assets/ibm-plex-mono-latin-ext-500-normal-BhDX_RLI.woff +0 -0
- package/resources/web/assets/ibm-plex-mono-latin-ext-500-normal-Dn-cqWhb.woff2 +0 -0
- package/resources/web/assets/ibm-plex-mono-vietnamese-400-normal-BFiUPp6R.woff2 +0 -0
- package/resources/web/assets/ibm-plex-mono-vietnamese-400-normal-DLynVohM.woff +0 -0
- package/resources/web/assets/ibm-plex-mono-vietnamese-500-normal-CevHOlzG.woff2 +0 -0
- package/resources/web/assets/ibm-plex-mono-vietnamese-500-normal-QhwQXayn.woff +0 -0
- package/resources/web/assets/index-DrgBjkJQ.js +322 -0
- package/resources/web/assets/index-gLwjTNlu.css +1 -0
- package/resources/web/assets/index-ydGCWKys.js +1 -0
- package/resources/web/assets/inter-tight-cyrillic-400-normal-Cu6X1knp.woff +0 -0
- package/resources/web/assets/inter-tight-cyrillic-400-normal-DLglYK2S.woff2 +0 -0
- package/resources/web/assets/inter-tight-cyrillic-500-normal-BS_Q301l.woff +0 -0
- package/resources/web/assets/inter-tight-cyrillic-500-normal-GsQC2I9I.woff2 +0 -0
- package/resources/web/assets/inter-tight-cyrillic-600-normal-CA1nZd4A.woff +0 -0
- package/resources/web/assets/inter-tight-cyrillic-600-normal-zvV8lvuq.woff2 +0 -0
- package/resources/web/assets/inter-tight-cyrillic-ext-400-normal-CPa21WFm.woff +0 -0
- package/resources/web/assets/inter-tight-cyrillic-ext-400-normal-wRoSiYJX.woff2 +0 -0
- package/resources/web/assets/inter-tight-cyrillic-ext-500-normal-DDZdcw0e.woff2 +0 -0
- package/resources/web/assets/inter-tight-cyrillic-ext-500-normal-SbyCo7Dv.woff +0 -0
- package/resources/web/assets/inter-tight-cyrillic-ext-600-normal-BwQoccyI.woff2 +0 -0
- package/resources/web/assets/inter-tight-cyrillic-ext-600-normal-D1EOoMTg.woff +0 -0
- package/resources/web/assets/inter-tight-greek-400-normal-8GU0b4sT.woff2 +0 -0
- package/resources/web/assets/inter-tight-greek-400-normal-BeMKI6ne.woff +0 -0
- package/resources/web/assets/inter-tight-greek-500-normal-BGOdJ4jK.woff +0 -0
- package/resources/web/assets/inter-tight-greek-500-normal-DfwCMcvd.woff2 +0 -0
- package/resources/web/assets/inter-tight-greek-600-normal-BIWCW30H.woff2 +0 -0
- package/resources/web/assets/inter-tight-greek-600-normal-CMARuIv4.woff +0 -0
- package/resources/web/assets/inter-tight-greek-ext-400-normal-B035aUhC.woff2 +0 -0
- package/resources/web/assets/inter-tight-greek-ext-400-normal-tWLvaB1R.woff +0 -0
- package/resources/web/assets/inter-tight-greek-ext-500-normal-BtZsBjxU.woff +0 -0
- package/resources/web/assets/inter-tight-greek-ext-500-normal-DitH-qUF.woff2 +0 -0
- package/resources/web/assets/inter-tight-greek-ext-600-normal-4wRrF3Lp.woff2 +0 -0
- package/resources/web/assets/inter-tight-greek-ext-600-normal-DTLxDvi0.woff +0 -0
- package/resources/web/assets/inter-tight-latin-400-normal-BW_APOAv.woff +0 -0
- package/resources/web/assets/inter-tight-latin-400-normal-CjmW70MP.woff2 +0 -0
- package/resources/web/assets/inter-tight-latin-500-normal-DHfo6WYp.woff2 +0 -0
- package/resources/web/assets/inter-tight-latin-500-normal-DSK3iurg.woff +0 -0
- package/resources/web/assets/inter-tight-latin-600-normal-BhR4EMHT.woff2 +0 -0
- package/resources/web/assets/inter-tight-latin-600-normal-RFJ2ueZL.woff +0 -0
- package/resources/web/assets/inter-tight-latin-ext-400-normal-BdDiaPns.woff +0 -0
- package/resources/web/assets/inter-tight-latin-ext-400-normal-Gi8wMfrP.woff2 +0 -0
- package/resources/web/assets/inter-tight-latin-ext-500-normal-BdRfio7v.woff +0 -0
- package/resources/web/assets/inter-tight-latin-ext-500-normal-CSMKT5kA.woff2 +0 -0
- package/resources/web/assets/inter-tight-latin-ext-600-normal-BiZjrIRq.woff +0 -0
- package/resources/web/assets/inter-tight-latin-ext-600-normal-Yxv5k3jL.woff2 +0 -0
- package/resources/web/assets/inter-tight-vietnamese-400-normal-CWFku8rW.woff2 +0 -0
- package/resources/web/assets/inter-tight-vietnamese-400-normal-s0S0Ysqp.woff +0 -0
- package/resources/web/assets/inter-tight-vietnamese-500-normal-B9o3jXvc.woff2 +0 -0
- package/resources/web/assets/inter-tight-vietnamese-500-normal-D9AKxpnU.woff +0 -0
- package/resources/web/assets/inter-tight-vietnamese-600-normal-B6ESNxpD.woff +0 -0
- package/resources/web/assets/inter-tight-vietnamese-600-normal-BZpsSm6S.woff2 +0 -0
- package/resources/web/assets/splash-CLEpm4fL.js +1 -0
- package/resources/web/favicon.svg +15 -0
- package/resources/web/index.html +17 -0
- package/resources/web/samples/flux-schnell.webp +0 -0
- package/resources/web/samples/sdxl-turbo.webp +0 -0
- package/resources/web/samples/sdxl.webp +0 -0
- package/resources/web/samples/z-image-turbo.webp +0 -0
- package/resources/web/splash.html +26 -0
|
@@ -0,0 +1,388 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "6",
|
|
3
|
+
"dialect": "sqlite",
|
|
4
|
+
"id": "0d78e734-d054-4b50-96ad-f24f144096c0",
|
|
5
|
+
"prevId": "85091752-d424-417b-a2f3-9f7cdd57998c",
|
|
6
|
+
"tables": {
|
|
7
|
+
"assets": {
|
|
8
|
+
"name": "assets",
|
|
9
|
+
"columns": {
|
|
10
|
+
"id": {
|
|
11
|
+
"name": "id",
|
|
12
|
+
"type": "text",
|
|
13
|
+
"primaryKey": true,
|
|
14
|
+
"notNull": true,
|
|
15
|
+
"autoincrement": false
|
|
16
|
+
},
|
|
17
|
+
"user_id": {
|
|
18
|
+
"name": "user_id",
|
|
19
|
+
"type": "text",
|
|
20
|
+
"primaryKey": false,
|
|
21
|
+
"notNull": true,
|
|
22
|
+
"autoincrement": false
|
|
23
|
+
},
|
|
24
|
+
"job_id": {
|
|
25
|
+
"name": "job_id",
|
|
26
|
+
"type": "text",
|
|
27
|
+
"primaryKey": false,
|
|
28
|
+
"notNull": false,
|
|
29
|
+
"autoincrement": false
|
|
30
|
+
},
|
|
31
|
+
"kind": {
|
|
32
|
+
"name": "kind",
|
|
33
|
+
"type": "text",
|
|
34
|
+
"primaryKey": false,
|
|
35
|
+
"notNull": true,
|
|
36
|
+
"autoincrement": false
|
|
37
|
+
},
|
|
38
|
+
"hash": {
|
|
39
|
+
"name": "hash",
|
|
40
|
+
"type": "text",
|
|
41
|
+
"primaryKey": false,
|
|
42
|
+
"notNull": true,
|
|
43
|
+
"autoincrement": false
|
|
44
|
+
},
|
|
45
|
+
"mime": {
|
|
46
|
+
"name": "mime",
|
|
47
|
+
"type": "text",
|
|
48
|
+
"primaryKey": false,
|
|
49
|
+
"notNull": true,
|
|
50
|
+
"autoincrement": false
|
|
51
|
+
},
|
|
52
|
+
"size": {
|
|
53
|
+
"name": "size",
|
|
54
|
+
"type": "integer",
|
|
55
|
+
"primaryKey": false,
|
|
56
|
+
"notNull": true,
|
|
57
|
+
"autoincrement": false
|
|
58
|
+
},
|
|
59
|
+
"prompt": {
|
|
60
|
+
"name": "prompt",
|
|
61
|
+
"type": "text",
|
|
62
|
+
"primaryKey": false,
|
|
63
|
+
"notNull": false,
|
|
64
|
+
"autoincrement": false
|
|
65
|
+
},
|
|
66
|
+
"model_id": {
|
|
67
|
+
"name": "model_id",
|
|
68
|
+
"type": "text",
|
|
69
|
+
"primaryKey": false,
|
|
70
|
+
"notNull": false,
|
|
71
|
+
"autoincrement": false
|
|
72
|
+
},
|
|
73
|
+
"params": {
|
|
74
|
+
"name": "params",
|
|
75
|
+
"type": "text",
|
|
76
|
+
"primaryKey": false,
|
|
77
|
+
"notNull": false,
|
|
78
|
+
"autoincrement": false
|
|
79
|
+
},
|
|
80
|
+
"created_at": {
|
|
81
|
+
"name": "created_at",
|
|
82
|
+
"type": "integer",
|
|
83
|
+
"primaryKey": false,
|
|
84
|
+
"notNull": true,
|
|
85
|
+
"autoincrement": false
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"indexes": {
|
|
89
|
+
"assets_user_kind_created": {
|
|
90
|
+
"name": "assets_user_kind_created",
|
|
91
|
+
"columns": ["user_id", "kind", "created_at"],
|
|
92
|
+
"isUnique": false
|
|
93
|
+
},
|
|
94
|
+
"assets_job": {
|
|
95
|
+
"name": "assets_job",
|
|
96
|
+
"columns": ["job_id"],
|
|
97
|
+
"isUnique": false
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"foreignKeys": {
|
|
101
|
+
"assets_job_id_jobs_id_fk": {
|
|
102
|
+
"name": "assets_job_id_jobs_id_fk",
|
|
103
|
+
"tableFrom": "assets",
|
|
104
|
+
"tableTo": "jobs",
|
|
105
|
+
"columnsFrom": ["job_id"],
|
|
106
|
+
"columnsTo": ["id"],
|
|
107
|
+
"onDelete": "set null",
|
|
108
|
+
"onUpdate": "no action"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"compositePrimaryKeys": {},
|
|
112
|
+
"uniqueConstraints": {},
|
|
113
|
+
"checkConstraints": {}
|
|
114
|
+
},
|
|
115
|
+
"jobs": {
|
|
116
|
+
"name": "jobs",
|
|
117
|
+
"columns": {
|
|
118
|
+
"id": {
|
|
119
|
+
"name": "id",
|
|
120
|
+
"type": "text",
|
|
121
|
+
"primaryKey": true,
|
|
122
|
+
"notNull": true,
|
|
123
|
+
"autoincrement": false
|
|
124
|
+
},
|
|
125
|
+
"turn_id": {
|
|
126
|
+
"name": "turn_id",
|
|
127
|
+
"type": "text",
|
|
128
|
+
"primaryKey": false,
|
|
129
|
+
"notNull": true,
|
|
130
|
+
"autoincrement": false
|
|
131
|
+
},
|
|
132
|
+
"position": {
|
|
133
|
+
"name": "position",
|
|
134
|
+
"type": "integer",
|
|
135
|
+
"primaryKey": false,
|
|
136
|
+
"notNull": true,
|
|
137
|
+
"autoincrement": false
|
|
138
|
+
},
|
|
139
|
+
"user_id": {
|
|
140
|
+
"name": "user_id",
|
|
141
|
+
"type": "text",
|
|
142
|
+
"primaryKey": false,
|
|
143
|
+
"notNull": true,
|
|
144
|
+
"autoincrement": false
|
|
145
|
+
},
|
|
146
|
+
"provider_id": {
|
|
147
|
+
"name": "provider_id",
|
|
148
|
+
"type": "text",
|
|
149
|
+
"primaryKey": false,
|
|
150
|
+
"notNull": true,
|
|
151
|
+
"autoincrement": false
|
|
152
|
+
},
|
|
153
|
+
"model_id": {
|
|
154
|
+
"name": "model_id",
|
|
155
|
+
"type": "text",
|
|
156
|
+
"primaryKey": false,
|
|
157
|
+
"notNull": true,
|
|
158
|
+
"autoincrement": false
|
|
159
|
+
},
|
|
160
|
+
"params": {
|
|
161
|
+
"name": "params",
|
|
162
|
+
"type": "text",
|
|
163
|
+
"primaryKey": false,
|
|
164
|
+
"notNull": true,
|
|
165
|
+
"autoincrement": false
|
|
166
|
+
},
|
|
167
|
+
"status": {
|
|
168
|
+
"name": "status",
|
|
169
|
+
"type": "text",
|
|
170
|
+
"primaryKey": false,
|
|
171
|
+
"notNull": true,
|
|
172
|
+
"autoincrement": false
|
|
173
|
+
},
|
|
174
|
+
"handle": {
|
|
175
|
+
"name": "handle",
|
|
176
|
+
"type": "text",
|
|
177
|
+
"primaryKey": false,
|
|
178
|
+
"notNull": false,
|
|
179
|
+
"autoincrement": false
|
|
180
|
+
},
|
|
181
|
+
"error": {
|
|
182
|
+
"name": "error",
|
|
183
|
+
"type": "text",
|
|
184
|
+
"primaryKey": false,
|
|
185
|
+
"notNull": false,
|
|
186
|
+
"autoincrement": false
|
|
187
|
+
},
|
|
188
|
+
"error_code": {
|
|
189
|
+
"name": "error_code",
|
|
190
|
+
"type": "text",
|
|
191
|
+
"primaryKey": false,
|
|
192
|
+
"notNull": false,
|
|
193
|
+
"autoincrement": false
|
|
194
|
+
},
|
|
195
|
+
"error_params": {
|
|
196
|
+
"name": "error_params",
|
|
197
|
+
"type": "text",
|
|
198
|
+
"primaryKey": false,
|
|
199
|
+
"notNull": false,
|
|
200
|
+
"autoincrement": false
|
|
201
|
+
},
|
|
202
|
+
"cost_usd": {
|
|
203
|
+
"name": "cost_usd",
|
|
204
|
+
"type": "real",
|
|
205
|
+
"primaryKey": false,
|
|
206
|
+
"notNull": false,
|
|
207
|
+
"autoincrement": false
|
|
208
|
+
},
|
|
209
|
+
"created_at": {
|
|
210
|
+
"name": "created_at",
|
|
211
|
+
"type": "integer",
|
|
212
|
+
"primaryKey": false,
|
|
213
|
+
"notNull": true,
|
|
214
|
+
"autoincrement": false
|
|
215
|
+
},
|
|
216
|
+
"started_at": {
|
|
217
|
+
"name": "started_at",
|
|
218
|
+
"type": "integer",
|
|
219
|
+
"primaryKey": false,
|
|
220
|
+
"notNull": false,
|
|
221
|
+
"autoincrement": false
|
|
222
|
+
},
|
|
223
|
+
"finished_at": {
|
|
224
|
+
"name": "finished_at",
|
|
225
|
+
"type": "integer",
|
|
226
|
+
"primaryKey": false,
|
|
227
|
+
"notNull": false,
|
|
228
|
+
"autoincrement": false
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
"indexes": {
|
|
232
|
+
"jobs_turn": {
|
|
233
|
+
"name": "jobs_turn",
|
|
234
|
+
"columns": ["turn_id"],
|
|
235
|
+
"isUnique": false
|
|
236
|
+
},
|
|
237
|
+
"jobs_status": {
|
|
238
|
+
"name": "jobs_status",
|
|
239
|
+
"columns": ["status"],
|
|
240
|
+
"isUnique": false
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
"foreignKeys": {
|
|
244
|
+
"jobs_turn_id_turns_id_fk": {
|
|
245
|
+
"name": "jobs_turn_id_turns_id_fk",
|
|
246
|
+
"tableFrom": "jobs",
|
|
247
|
+
"tableTo": "turns",
|
|
248
|
+
"columnsFrom": ["turn_id"],
|
|
249
|
+
"columnsTo": ["id"],
|
|
250
|
+
"onDelete": "cascade",
|
|
251
|
+
"onUpdate": "no action"
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"compositePrimaryKeys": {},
|
|
255
|
+
"uniqueConstraints": {},
|
|
256
|
+
"checkConstraints": {}
|
|
257
|
+
},
|
|
258
|
+
"sessions": {
|
|
259
|
+
"name": "sessions",
|
|
260
|
+
"columns": {
|
|
261
|
+
"id": {
|
|
262
|
+
"name": "id",
|
|
263
|
+
"type": "text",
|
|
264
|
+
"primaryKey": true,
|
|
265
|
+
"notNull": true,
|
|
266
|
+
"autoincrement": false
|
|
267
|
+
},
|
|
268
|
+
"user_id": {
|
|
269
|
+
"name": "user_id",
|
|
270
|
+
"type": "text",
|
|
271
|
+
"primaryKey": false,
|
|
272
|
+
"notNull": true,
|
|
273
|
+
"autoincrement": false
|
|
274
|
+
},
|
|
275
|
+
"title": {
|
|
276
|
+
"name": "title",
|
|
277
|
+
"type": "text",
|
|
278
|
+
"primaryKey": false,
|
|
279
|
+
"notNull": true,
|
|
280
|
+
"autoincrement": false
|
|
281
|
+
},
|
|
282
|
+
"created_at": {
|
|
283
|
+
"name": "created_at",
|
|
284
|
+
"type": "integer",
|
|
285
|
+
"primaryKey": false,
|
|
286
|
+
"notNull": true,
|
|
287
|
+
"autoincrement": false
|
|
288
|
+
},
|
|
289
|
+
"updated_at": {
|
|
290
|
+
"name": "updated_at",
|
|
291
|
+
"type": "integer",
|
|
292
|
+
"primaryKey": false,
|
|
293
|
+
"notNull": true,
|
|
294
|
+
"autoincrement": false
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
"indexes": {
|
|
298
|
+
"sessions_user_updated": {
|
|
299
|
+
"name": "sessions_user_updated",
|
|
300
|
+
"columns": ["user_id", "updated_at"],
|
|
301
|
+
"isUnique": false
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
"foreignKeys": {},
|
|
305
|
+
"compositePrimaryKeys": {},
|
|
306
|
+
"uniqueConstraints": {},
|
|
307
|
+
"checkConstraints": {}
|
|
308
|
+
},
|
|
309
|
+
"turns": {
|
|
310
|
+
"name": "turns",
|
|
311
|
+
"columns": {
|
|
312
|
+
"id": {
|
|
313
|
+
"name": "id",
|
|
314
|
+
"type": "text",
|
|
315
|
+
"primaryKey": true,
|
|
316
|
+
"notNull": true,
|
|
317
|
+
"autoincrement": false
|
|
318
|
+
},
|
|
319
|
+
"session_id": {
|
|
320
|
+
"name": "session_id",
|
|
321
|
+
"type": "text",
|
|
322
|
+
"primaryKey": false,
|
|
323
|
+
"notNull": true,
|
|
324
|
+
"autoincrement": false
|
|
325
|
+
},
|
|
326
|
+
"user_id": {
|
|
327
|
+
"name": "user_id",
|
|
328
|
+
"type": "text",
|
|
329
|
+
"primaryKey": false,
|
|
330
|
+
"notNull": true,
|
|
331
|
+
"autoincrement": false
|
|
332
|
+
},
|
|
333
|
+
"prompt": {
|
|
334
|
+
"name": "prompt",
|
|
335
|
+
"type": "text",
|
|
336
|
+
"primaryKey": false,
|
|
337
|
+
"notNull": true,
|
|
338
|
+
"autoincrement": false
|
|
339
|
+
},
|
|
340
|
+
"reference_asset_ids": {
|
|
341
|
+
"name": "reference_asset_ids",
|
|
342
|
+
"type": "text",
|
|
343
|
+
"primaryKey": false,
|
|
344
|
+
"notNull": true,
|
|
345
|
+
"autoincrement": false
|
|
346
|
+
},
|
|
347
|
+
"created_at": {
|
|
348
|
+
"name": "created_at",
|
|
349
|
+
"type": "integer",
|
|
350
|
+
"primaryKey": false,
|
|
351
|
+
"notNull": true,
|
|
352
|
+
"autoincrement": false
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
"indexes": {
|
|
356
|
+
"turns_session_created": {
|
|
357
|
+
"name": "turns_session_created",
|
|
358
|
+
"columns": ["session_id", "created_at"],
|
|
359
|
+
"isUnique": false
|
|
360
|
+
}
|
|
361
|
+
},
|
|
362
|
+
"foreignKeys": {
|
|
363
|
+
"turns_session_id_sessions_id_fk": {
|
|
364
|
+
"name": "turns_session_id_sessions_id_fk",
|
|
365
|
+
"tableFrom": "turns",
|
|
366
|
+
"tableTo": "sessions",
|
|
367
|
+
"columnsFrom": ["session_id"],
|
|
368
|
+
"columnsTo": ["id"],
|
|
369
|
+
"onDelete": "cascade",
|
|
370
|
+
"onUpdate": "no action"
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
"compositePrimaryKeys": {},
|
|
374
|
+
"uniqueConstraints": {},
|
|
375
|
+
"checkConstraints": {}
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
"views": {},
|
|
379
|
+
"enums": {},
|
|
380
|
+
"_meta": {
|
|
381
|
+
"schemas": {},
|
|
382
|
+
"tables": {},
|
|
383
|
+
"columns": {}
|
|
384
|
+
},
|
|
385
|
+
"internal": {
|
|
386
|
+
"indexes": {}
|
|
387
|
+
}
|
|
388
|
+
}
|