fourth-spark 0.5.0

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.
@@ -0,0 +1,538 @@
1
+ {
2
+ "id": "2e9398f3-71b1-4df1-bfec-9ecffa39fd5c",
3
+ "prevId": "21bbd58f-da13-4866-8fd1-54164a083f6c",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.messages": {
8
+ "name": "messages",
9
+ "schema": "",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "text",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "session_id": {
18
+ "name": "session_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "role": {
24
+ "name": "role",
25
+ "type": "text",
26
+ "primaryKey": false,
27
+ "notNull": true
28
+ },
29
+ "agent": {
30
+ "name": "agent",
31
+ "type": "text",
32
+ "primaryKey": false,
33
+ "notNull": false
34
+ },
35
+ "model": {
36
+ "name": "model",
37
+ "type": "text",
38
+ "primaryKey": false,
39
+ "notNull": false
40
+ },
41
+ "provider": {
42
+ "name": "provider",
43
+ "type": "text",
44
+ "primaryKey": false,
45
+ "notNull": false
46
+ },
47
+ "variant": {
48
+ "name": "variant",
49
+ "type": "text",
50
+ "primaryKey": false,
51
+ "notNull": false
52
+ },
53
+ "cost": {
54
+ "name": "cost",
55
+ "type": "real",
56
+ "primaryKey": false,
57
+ "notNull": false
58
+ },
59
+ "time_created": {
60
+ "name": "time_created",
61
+ "type": "bigint",
62
+ "primaryKey": false,
63
+ "notNull": true
64
+ },
65
+ "time_updated": {
66
+ "name": "time_updated",
67
+ "type": "bigint",
68
+ "primaryKey": false,
69
+ "notNull": true
70
+ }
71
+ },
72
+ "indexes": {
73
+ "messages_session_idx": {
74
+ "name": "messages_session_idx",
75
+ "columns": [
76
+ {
77
+ "expression": "session_id",
78
+ "isExpression": false,
79
+ "asc": true,
80
+ "nulls": "last"
81
+ },
82
+ {
83
+ "expression": "time_created",
84
+ "isExpression": false,
85
+ "asc": true,
86
+ "nulls": "last"
87
+ }
88
+ ],
89
+ "isUnique": false,
90
+ "concurrently": false,
91
+ "method": "btree",
92
+ "with": {}
93
+ }
94
+ },
95
+ "foreignKeys": {
96
+ "messages_session_id_sessions_id_fk": {
97
+ "name": "messages_session_id_sessions_id_fk",
98
+ "tableFrom": "messages",
99
+ "tableTo": "sessions",
100
+ "columnsFrom": [
101
+ "session_id"
102
+ ],
103
+ "columnsTo": [
104
+ "id"
105
+ ],
106
+ "onDelete": "cascade",
107
+ "onUpdate": "no action"
108
+ }
109
+ },
110
+ "compositePrimaryKeys": {},
111
+ "uniqueConstraints": {},
112
+ "policies": {},
113
+ "checkConstraints": {},
114
+ "isRLSEnabled": false
115
+ },
116
+ "public.parts": {
117
+ "name": "parts",
118
+ "schema": "",
119
+ "columns": {
120
+ "id": {
121
+ "name": "id",
122
+ "type": "text",
123
+ "primaryKey": true,
124
+ "notNull": true
125
+ },
126
+ "message_id": {
127
+ "name": "message_id",
128
+ "type": "text",
129
+ "primaryKey": false,
130
+ "notNull": true
131
+ },
132
+ "session_id": {
133
+ "name": "session_id",
134
+ "type": "text",
135
+ "primaryKey": false,
136
+ "notNull": true
137
+ },
138
+ "type": {
139
+ "name": "type",
140
+ "type": "text",
141
+ "primaryKey": false,
142
+ "notNull": true
143
+ },
144
+ "data": {
145
+ "name": "data",
146
+ "type": "jsonb",
147
+ "primaryKey": false,
148
+ "notNull": true
149
+ },
150
+ "time_created": {
151
+ "name": "time_created",
152
+ "type": "bigint",
153
+ "primaryKey": false,
154
+ "notNull": true
155
+ },
156
+ "time_updated": {
157
+ "name": "time_updated",
158
+ "type": "bigint",
159
+ "primaryKey": false,
160
+ "notNull": true
161
+ }
162
+ },
163
+ "indexes": {
164
+ "parts_message_idx": {
165
+ "name": "parts_message_idx",
166
+ "columns": [
167
+ {
168
+ "expression": "message_id",
169
+ "isExpression": false,
170
+ "asc": true,
171
+ "nulls": "last"
172
+ }
173
+ ],
174
+ "isUnique": false,
175
+ "concurrently": false,
176
+ "method": "btree",
177
+ "with": {}
178
+ },
179
+ "parts_session_idx": {
180
+ "name": "parts_session_idx",
181
+ "columns": [
182
+ {
183
+ "expression": "session_id",
184
+ "isExpression": false,
185
+ "asc": true,
186
+ "nulls": "last"
187
+ }
188
+ ],
189
+ "isUnique": false,
190
+ "concurrently": false,
191
+ "method": "btree",
192
+ "with": {}
193
+ }
194
+ },
195
+ "foreignKeys": {
196
+ "parts_message_id_messages_id_fk": {
197
+ "name": "parts_message_id_messages_id_fk",
198
+ "tableFrom": "parts",
199
+ "tableTo": "messages",
200
+ "columnsFrom": [
201
+ "message_id"
202
+ ],
203
+ "columnsTo": [
204
+ "id"
205
+ ],
206
+ "onDelete": "cascade",
207
+ "onUpdate": "no action"
208
+ },
209
+ "parts_session_id_sessions_id_fk": {
210
+ "name": "parts_session_id_sessions_id_fk",
211
+ "tableFrom": "parts",
212
+ "tableTo": "sessions",
213
+ "columnsFrom": [
214
+ "session_id"
215
+ ],
216
+ "columnsTo": [
217
+ "id"
218
+ ],
219
+ "onDelete": "cascade",
220
+ "onUpdate": "no action"
221
+ }
222
+ },
223
+ "compositePrimaryKeys": {},
224
+ "uniqueConstraints": {},
225
+ "policies": {},
226
+ "checkConstraints": {},
227
+ "isRLSEnabled": false
228
+ },
229
+ "public.repos": {
230
+ "name": "repos",
231
+ "schema": "",
232
+ "columns": {
233
+ "id": {
234
+ "name": "id",
235
+ "type": "text",
236
+ "primaryKey": true,
237
+ "notNull": true
238
+ },
239
+ "name": {
240
+ "name": "name",
241
+ "type": "text",
242
+ "primaryKey": false,
243
+ "notNull": true
244
+ },
245
+ "git_url": {
246
+ "name": "git_url",
247
+ "type": "text",
248
+ "primaryKey": false,
249
+ "notNull": true
250
+ },
251
+ "local_path": {
252
+ "name": "local_path",
253
+ "type": "text",
254
+ "primaryKey": false,
255
+ "notNull": true
256
+ },
257
+ "port": {
258
+ "name": "port",
259
+ "type": "integer",
260
+ "primaryKey": false,
261
+ "notNull": false
262
+ },
263
+ "status": {
264
+ "name": "status",
265
+ "type": "text",
266
+ "primaryKey": false,
267
+ "notNull": true,
268
+ "default": "'inactive'"
269
+ },
270
+ "created_at": {
271
+ "name": "created_at",
272
+ "type": "bigint",
273
+ "primaryKey": false,
274
+ "notNull": true
275
+ },
276
+ "updated_at": {
277
+ "name": "updated_at",
278
+ "type": "bigint",
279
+ "primaryKey": false,
280
+ "notNull": true
281
+ }
282
+ },
283
+ "indexes": {
284
+ "repos_local_path_idx": {
285
+ "name": "repos_local_path_idx",
286
+ "columns": [
287
+ {
288
+ "expression": "local_path",
289
+ "isExpression": false,
290
+ "asc": true,
291
+ "nulls": "last"
292
+ }
293
+ ],
294
+ "isUnique": true,
295
+ "concurrently": false,
296
+ "method": "btree",
297
+ "with": {}
298
+ }
299
+ },
300
+ "foreignKeys": {},
301
+ "compositePrimaryKeys": {},
302
+ "uniqueConstraints": {},
303
+ "policies": {},
304
+ "checkConstraints": {},
305
+ "isRLSEnabled": false
306
+ },
307
+ "public.sessions": {
308
+ "name": "sessions",
309
+ "schema": "",
310
+ "columns": {
311
+ "id": {
312
+ "name": "id",
313
+ "type": "text",
314
+ "primaryKey": true,
315
+ "notNull": true
316
+ },
317
+ "parent_id": {
318
+ "name": "parent_id",
319
+ "type": "text",
320
+ "primaryKey": false,
321
+ "notNull": false
322
+ },
323
+ "title": {
324
+ "name": "title",
325
+ "type": "text",
326
+ "primaryKey": false,
327
+ "notNull": true,
328
+ "default": "''"
329
+ },
330
+ "agent": {
331
+ "name": "agent",
332
+ "type": "text",
333
+ "primaryKey": false,
334
+ "notNull": false
335
+ },
336
+ "model": {
337
+ "name": "model",
338
+ "type": "jsonb",
339
+ "primaryKey": false,
340
+ "notNull": false
341
+ },
342
+ "directory": {
343
+ "name": "directory",
344
+ "type": "text",
345
+ "primaryKey": false,
346
+ "notNull": false
347
+ },
348
+ "cost": {
349
+ "name": "cost",
350
+ "type": "real",
351
+ "primaryKey": false,
352
+ "notNull": true,
353
+ "default": 0
354
+ },
355
+ "tokens_input": {
356
+ "name": "tokens_input",
357
+ "type": "bigint",
358
+ "primaryKey": false,
359
+ "notNull": true,
360
+ "default": 0
361
+ },
362
+ "tokens_output": {
363
+ "name": "tokens_output",
364
+ "type": "bigint",
365
+ "primaryKey": false,
366
+ "notNull": true,
367
+ "default": 0
368
+ },
369
+ "tokens_reasoning": {
370
+ "name": "tokens_reasoning",
371
+ "type": "bigint",
372
+ "primaryKey": false,
373
+ "notNull": true,
374
+ "default": 0
375
+ },
376
+ "tokens_cache_read": {
377
+ "name": "tokens_cache_read",
378
+ "type": "bigint",
379
+ "primaryKey": false,
380
+ "notNull": true,
381
+ "default": 0
382
+ },
383
+ "tokens_cache_write": {
384
+ "name": "tokens_cache_write",
385
+ "type": "bigint",
386
+ "primaryKey": false,
387
+ "notNull": true,
388
+ "default": 0
389
+ },
390
+ "user_id": {
391
+ "name": "user_id",
392
+ "type": "text",
393
+ "primaryKey": false,
394
+ "notNull": false
395
+ },
396
+ "time_created": {
397
+ "name": "time_created",
398
+ "type": "bigint",
399
+ "primaryKey": false,
400
+ "notNull": true
401
+ },
402
+ "time_updated": {
403
+ "name": "time_updated",
404
+ "type": "bigint",
405
+ "primaryKey": false,
406
+ "notNull": true
407
+ }
408
+ },
409
+ "indexes": {
410
+ "sessions_user_idx": {
411
+ "name": "sessions_user_idx",
412
+ "columns": [
413
+ {
414
+ "expression": "user_id",
415
+ "isExpression": false,
416
+ "asc": true,
417
+ "nulls": "last"
418
+ }
419
+ ],
420
+ "isUnique": false,
421
+ "concurrently": false,
422
+ "method": "btree",
423
+ "with": {}
424
+ },
425
+ "sessions_time_created_idx": {
426
+ "name": "sessions_time_created_idx",
427
+ "columns": [
428
+ {
429
+ "expression": "time_created",
430
+ "isExpression": false,
431
+ "asc": true,
432
+ "nulls": "last"
433
+ }
434
+ ],
435
+ "isUnique": false,
436
+ "concurrently": false,
437
+ "method": "btree",
438
+ "with": {}
439
+ }
440
+ },
441
+ "foreignKeys": {},
442
+ "compositePrimaryKeys": {},
443
+ "uniqueConstraints": {},
444
+ "policies": {},
445
+ "checkConstraints": {},
446
+ "isRLSEnabled": false
447
+ },
448
+ "public.todos": {
449
+ "name": "todos",
450
+ "schema": "",
451
+ "columns": {
452
+ "session_id": {
453
+ "name": "session_id",
454
+ "type": "text",
455
+ "primaryKey": false,
456
+ "notNull": true
457
+ },
458
+ "position": {
459
+ "name": "position",
460
+ "type": "integer",
461
+ "primaryKey": false,
462
+ "notNull": true
463
+ },
464
+ "content": {
465
+ "name": "content",
466
+ "type": "text",
467
+ "primaryKey": false,
468
+ "notNull": true
469
+ },
470
+ "status": {
471
+ "name": "status",
472
+ "type": "text",
473
+ "primaryKey": false,
474
+ "notNull": true
475
+ },
476
+ "priority": {
477
+ "name": "priority",
478
+ "type": "text",
479
+ "primaryKey": false,
480
+ "notNull": true,
481
+ "default": "'medium'"
482
+ },
483
+ "time_created": {
484
+ "name": "time_created",
485
+ "type": "bigint",
486
+ "primaryKey": false,
487
+ "notNull": true
488
+ },
489
+ "time_updated": {
490
+ "name": "time_updated",
491
+ "type": "bigint",
492
+ "primaryKey": false,
493
+ "notNull": true
494
+ }
495
+ },
496
+ "indexes": {},
497
+ "foreignKeys": {
498
+ "todos_session_id_sessions_id_fk": {
499
+ "name": "todos_session_id_sessions_id_fk",
500
+ "tableFrom": "todos",
501
+ "tableTo": "sessions",
502
+ "columnsFrom": [
503
+ "session_id"
504
+ ],
505
+ "columnsTo": [
506
+ "id"
507
+ ],
508
+ "onDelete": "cascade",
509
+ "onUpdate": "no action"
510
+ }
511
+ },
512
+ "compositePrimaryKeys": {
513
+ "todos_session_id_position_pk": {
514
+ "name": "todos_session_id_position_pk",
515
+ "columns": [
516
+ "session_id",
517
+ "position"
518
+ ]
519
+ }
520
+ },
521
+ "uniqueConstraints": {},
522
+ "policies": {},
523
+ "checkConstraints": {},
524
+ "isRLSEnabled": false
525
+ }
526
+ },
527
+ "enums": {},
528
+ "schemas": {},
529
+ "sequences": {},
530
+ "roles": {},
531
+ "policies": {},
532
+ "views": {},
533
+ "_meta": {
534
+ "columns": {},
535
+ "schemas": {},
536
+ "tables": {}
537
+ }
538
+ }