cognova 0.2.0 → 0.2.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 (45) hide show
  1. package/Claude/CLAUDE.md +9 -4
  2. package/Claude/skills/environment/SKILL.md +6 -0
  3. package/Claude/skills/memory/SKILL.md +6 -0
  4. package/Claude/skills/project/SKILL.md +6 -0
  5. package/Claude/skills/secret/SKILL.md +85 -0
  6. package/Claude/skills/secret/secret.py +146 -0
  7. package/Claude/skills/skill-creator/SKILL.md +30 -0
  8. package/Claude/skills/task/SKILL.md +6 -0
  9. package/app/components/skills/Card.vue +82 -0
  10. package/app/components/skills/CreateModal.vue +156 -0
  11. package/app/components/skills/Editor.vue +135 -0
  12. package/app/components/skills/FileTree.vue +336 -0
  13. package/app/components/skills/LibraryCard.vue +122 -0
  14. package/app/components/skills/RenameModal.vue +84 -0
  15. package/app/layouts/dashboard.vue +7 -0
  16. package/app/pages/skills/[name].vue +198 -0
  17. package/app/pages/skills/index.vue +157 -0
  18. package/app/pages/skills/library.vue +209 -0
  19. package/dist/cli/index.js +23 -23
  20. package/nuxt.config.ts +9 -0
  21. package/package.json +1 -1
  22. package/server/api/skills/[name]/files/create.post.ts +45 -0
  23. package/server/api/skills/[name]/files/delete.post.ts +45 -0
  24. package/server/api/skills/[name]/files/index.get.ts +28 -0
  25. package/server/api/skills/[name]/files/read.post.ts +41 -0
  26. package/server/api/skills/[name]/files/write.post.ts +42 -0
  27. package/server/api/skills/[name]/index.get.ts +54 -0
  28. package/server/api/skills/[name]/rename.post.ts +64 -0
  29. package/server/api/skills/[name]/toggle.post.ts +32 -0
  30. package/server/api/skills/create.post.ts +51 -0
  31. package/server/api/skills/generate.post.ts +126 -0
  32. package/server/api/skills/index.get.ts +57 -0
  33. package/server/api/skills/library/check-updates.get.ts +46 -0
  34. package/server/api/skills/library/index.get.ts +56 -0
  35. package/server/api/skills/library/install.post.ts +73 -0
  36. package/server/db/schema.ts +17 -0
  37. package/server/drizzle/migrations/0012_good_deadpool.sql +12 -0
  38. package/server/drizzle/migrations/0013_swift_snowbird.sql +1 -0
  39. package/server/drizzle/migrations/meta/0012_snapshot.json +1713 -0
  40. package/server/drizzle/migrations/meta/0013_snapshot.json +1720 -0
  41. package/server/drizzle/migrations/meta/_journal.json +14 -0
  42. package/server/middleware/auth.ts +0 -1
  43. package/server/plugins/05.skills-catalog.ts +105 -0
  44. package/server/utils/skills-path.ts +197 -0
  45. package/shared/types/index.ts +63 -0
@@ -0,0 +1,1713 @@
1
+ {
2
+ "id": "cecf1830-fbfd-44fb-90f7-304e1f2d150e",
3
+ "prevId": "e6011a9b-7a1b-443d-862e-a2d74eba0fd8",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.account": {
8
+ "name": "account",
9
+ "schema": "",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "text",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "user_id": {
18
+ "name": "user_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "account_id": {
24
+ "name": "account_id",
25
+ "type": "text",
26
+ "primaryKey": false,
27
+ "notNull": true
28
+ },
29
+ "provider_id": {
30
+ "name": "provider_id",
31
+ "type": "text",
32
+ "primaryKey": false,
33
+ "notNull": true
34
+ },
35
+ "access_token": {
36
+ "name": "access_token",
37
+ "type": "text",
38
+ "primaryKey": false,
39
+ "notNull": false
40
+ },
41
+ "refresh_token": {
42
+ "name": "refresh_token",
43
+ "type": "text",
44
+ "primaryKey": false,
45
+ "notNull": false
46
+ },
47
+ "access_token_expires_at": {
48
+ "name": "access_token_expires_at",
49
+ "type": "timestamp with time zone",
50
+ "primaryKey": false,
51
+ "notNull": false
52
+ },
53
+ "refresh_token_expires_at": {
54
+ "name": "refresh_token_expires_at",
55
+ "type": "timestamp with time zone",
56
+ "primaryKey": false,
57
+ "notNull": false
58
+ },
59
+ "scope": {
60
+ "name": "scope",
61
+ "type": "text",
62
+ "primaryKey": false,
63
+ "notNull": false
64
+ },
65
+ "id_token": {
66
+ "name": "id_token",
67
+ "type": "text",
68
+ "primaryKey": false,
69
+ "notNull": false
70
+ },
71
+ "password": {
72
+ "name": "password",
73
+ "type": "text",
74
+ "primaryKey": false,
75
+ "notNull": false
76
+ },
77
+ "created_at": {
78
+ "name": "created_at",
79
+ "type": "timestamp with time zone",
80
+ "primaryKey": false,
81
+ "notNull": true,
82
+ "default": "now()"
83
+ },
84
+ "updated_at": {
85
+ "name": "updated_at",
86
+ "type": "timestamp with time zone",
87
+ "primaryKey": false,
88
+ "notNull": true,
89
+ "default": "now()"
90
+ }
91
+ },
92
+ "indexes": {},
93
+ "foreignKeys": {
94
+ "account_user_id_user_id_fk": {
95
+ "name": "account_user_id_user_id_fk",
96
+ "tableFrom": "account",
97
+ "tableTo": "user",
98
+ "columnsFrom": [
99
+ "user_id"
100
+ ],
101
+ "columnsTo": [
102
+ "id"
103
+ ],
104
+ "onDelete": "cascade",
105
+ "onUpdate": "no action"
106
+ }
107
+ },
108
+ "compositePrimaryKeys": {},
109
+ "uniqueConstraints": {},
110
+ "policies": {},
111
+ "checkConstraints": {},
112
+ "isRLSEnabled": false
113
+ },
114
+ "public.conversation_messages": {
115
+ "name": "conversation_messages",
116
+ "schema": "",
117
+ "columns": {
118
+ "id": {
119
+ "name": "id",
120
+ "type": "uuid",
121
+ "primaryKey": true,
122
+ "notNull": true,
123
+ "default": "gen_random_uuid()"
124
+ },
125
+ "conversation_id": {
126
+ "name": "conversation_id",
127
+ "type": "uuid",
128
+ "primaryKey": false,
129
+ "notNull": true
130
+ },
131
+ "role": {
132
+ "name": "role",
133
+ "type": "text",
134
+ "primaryKey": false,
135
+ "notNull": true
136
+ },
137
+ "content": {
138
+ "name": "content",
139
+ "type": "text",
140
+ "primaryKey": false,
141
+ "notNull": true
142
+ },
143
+ "cost_usd": {
144
+ "name": "cost_usd",
145
+ "type": "real",
146
+ "primaryKey": false,
147
+ "notNull": false
148
+ },
149
+ "duration_ms": {
150
+ "name": "duration_ms",
151
+ "type": "integer",
152
+ "primaryKey": false,
153
+ "notNull": false
154
+ },
155
+ "created_at": {
156
+ "name": "created_at",
157
+ "type": "timestamp with time zone",
158
+ "primaryKey": false,
159
+ "notNull": true,
160
+ "default": "now()"
161
+ }
162
+ },
163
+ "indexes": {},
164
+ "foreignKeys": {
165
+ "conversation_messages_conversation_id_conversations_id_fk": {
166
+ "name": "conversation_messages_conversation_id_conversations_id_fk",
167
+ "tableFrom": "conversation_messages",
168
+ "tableTo": "conversations",
169
+ "columnsFrom": [
170
+ "conversation_id"
171
+ ],
172
+ "columnsTo": [
173
+ "id"
174
+ ],
175
+ "onDelete": "cascade",
176
+ "onUpdate": "no action"
177
+ }
178
+ },
179
+ "compositePrimaryKeys": {},
180
+ "uniqueConstraints": {},
181
+ "policies": {},
182
+ "checkConstraints": {},
183
+ "isRLSEnabled": false
184
+ },
185
+ "public.conversations": {
186
+ "name": "conversations",
187
+ "schema": "",
188
+ "columns": {
189
+ "id": {
190
+ "name": "id",
191
+ "type": "uuid",
192
+ "primaryKey": true,
193
+ "notNull": true,
194
+ "default": "gen_random_uuid()"
195
+ },
196
+ "session_id": {
197
+ "name": "session_id",
198
+ "type": "text",
199
+ "primaryKey": false,
200
+ "notNull": true
201
+ },
202
+ "sdk_session_id": {
203
+ "name": "sdk_session_id",
204
+ "type": "text",
205
+ "primaryKey": false,
206
+ "notNull": false
207
+ },
208
+ "title": {
209
+ "name": "title",
210
+ "type": "text",
211
+ "primaryKey": false,
212
+ "notNull": false
213
+ },
214
+ "summary": {
215
+ "name": "summary",
216
+ "type": "text",
217
+ "primaryKey": false,
218
+ "notNull": false
219
+ },
220
+ "status": {
221
+ "name": "status",
222
+ "type": "text",
223
+ "primaryKey": false,
224
+ "notNull": true,
225
+ "default": "'idle'"
226
+ },
227
+ "total_cost_usd": {
228
+ "name": "total_cost_usd",
229
+ "type": "real",
230
+ "primaryKey": false,
231
+ "notNull": true,
232
+ "default": 0
233
+ },
234
+ "started_at": {
235
+ "name": "started_at",
236
+ "type": "timestamp with time zone",
237
+ "primaryKey": false,
238
+ "notNull": true,
239
+ "default": "now()"
240
+ },
241
+ "ended_at": {
242
+ "name": "ended_at",
243
+ "type": "timestamp with time zone",
244
+ "primaryKey": false,
245
+ "notNull": false
246
+ },
247
+ "message_count": {
248
+ "name": "message_count",
249
+ "type": "integer",
250
+ "primaryKey": false,
251
+ "notNull": true,
252
+ "default": 0
253
+ }
254
+ },
255
+ "indexes": {},
256
+ "foreignKeys": {},
257
+ "compositePrimaryKeys": {},
258
+ "uniqueConstraints": {
259
+ "conversations_session_id_unique": {
260
+ "name": "conversations_session_id_unique",
261
+ "nullsNotDistinct": false,
262
+ "columns": [
263
+ "session_id"
264
+ ]
265
+ }
266
+ },
267
+ "policies": {},
268
+ "checkConstraints": {},
269
+ "isRLSEnabled": false
270
+ },
271
+ "public.cron_agent_runs": {
272
+ "name": "cron_agent_runs",
273
+ "schema": "",
274
+ "columns": {
275
+ "id": {
276
+ "name": "id",
277
+ "type": "uuid",
278
+ "primaryKey": true,
279
+ "notNull": true,
280
+ "default": "gen_random_uuid()"
281
+ },
282
+ "agent_id": {
283
+ "name": "agent_id",
284
+ "type": "uuid",
285
+ "primaryKey": false,
286
+ "notNull": true
287
+ },
288
+ "status": {
289
+ "name": "status",
290
+ "type": "text",
291
+ "primaryKey": false,
292
+ "notNull": true
293
+ },
294
+ "output": {
295
+ "name": "output",
296
+ "type": "text",
297
+ "primaryKey": false,
298
+ "notNull": false
299
+ },
300
+ "error": {
301
+ "name": "error",
302
+ "type": "text",
303
+ "primaryKey": false,
304
+ "notNull": false
305
+ },
306
+ "cost_usd": {
307
+ "name": "cost_usd",
308
+ "type": "real",
309
+ "primaryKey": false,
310
+ "notNull": false
311
+ },
312
+ "input_tokens": {
313
+ "name": "input_tokens",
314
+ "type": "integer",
315
+ "primaryKey": false,
316
+ "notNull": false
317
+ },
318
+ "output_tokens": {
319
+ "name": "output_tokens",
320
+ "type": "integer",
321
+ "primaryKey": false,
322
+ "notNull": false
323
+ },
324
+ "num_turns": {
325
+ "name": "num_turns",
326
+ "type": "integer",
327
+ "primaryKey": false,
328
+ "notNull": false
329
+ },
330
+ "started_at": {
331
+ "name": "started_at",
332
+ "type": "timestamp with time zone",
333
+ "primaryKey": false,
334
+ "notNull": true,
335
+ "default": "now()"
336
+ },
337
+ "completed_at": {
338
+ "name": "completed_at",
339
+ "type": "timestamp with time zone",
340
+ "primaryKey": false,
341
+ "notNull": false
342
+ },
343
+ "duration_ms": {
344
+ "name": "duration_ms",
345
+ "type": "integer",
346
+ "primaryKey": false,
347
+ "notNull": false
348
+ }
349
+ },
350
+ "indexes": {},
351
+ "foreignKeys": {
352
+ "cron_agent_runs_agent_id_cron_agents_id_fk": {
353
+ "name": "cron_agent_runs_agent_id_cron_agents_id_fk",
354
+ "tableFrom": "cron_agent_runs",
355
+ "tableTo": "cron_agents",
356
+ "columnsFrom": [
357
+ "agent_id"
358
+ ],
359
+ "columnsTo": [
360
+ "id"
361
+ ],
362
+ "onDelete": "cascade",
363
+ "onUpdate": "no action"
364
+ }
365
+ },
366
+ "compositePrimaryKeys": {},
367
+ "uniqueConstraints": {},
368
+ "policies": {},
369
+ "checkConstraints": {},
370
+ "isRLSEnabled": false
371
+ },
372
+ "public.cron_agents": {
373
+ "name": "cron_agents",
374
+ "schema": "",
375
+ "columns": {
376
+ "id": {
377
+ "name": "id",
378
+ "type": "uuid",
379
+ "primaryKey": true,
380
+ "notNull": true,
381
+ "default": "gen_random_uuid()"
382
+ },
383
+ "name": {
384
+ "name": "name",
385
+ "type": "text",
386
+ "primaryKey": false,
387
+ "notNull": true
388
+ },
389
+ "description": {
390
+ "name": "description",
391
+ "type": "text",
392
+ "primaryKey": false,
393
+ "notNull": false
394
+ },
395
+ "schedule": {
396
+ "name": "schedule",
397
+ "type": "text",
398
+ "primaryKey": false,
399
+ "notNull": true
400
+ },
401
+ "prompt": {
402
+ "name": "prompt",
403
+ "type": "text",
404
+ "primaryKey": false,
405
+ "notNull": true
406
+ },
407
+ "enabled": {
408
+ "name": "enabled",
409
+ "type": "boolean",
410
+ "primaryKey": false,
411
+ "notNull": true,
412
+ "default": true
413
+ },
414
+ "max_turns": {
415
+ "name": "max_turns",
416
+ "type": "integer",
417
+ "primaryKey": false,
418
+ "notNull": false,
419
+ "default": 50
420
+ },
421
+ "max_budget_usd": {
422
+ "name": "max_budget_usd",
423
+ "type": "real",
424
+ "primaryKey": false,
425
+ "notNull": false
426
+ },
427
+ "last_run_at": {
428
+ "name": "last_run_at",
429
+ "type": "timestamp with time zone",
430
+ "primaryKey": false,
431
+ "notNull": false
432
+ },
433
+ "last_status": {
434
+ "name": "last_status",
435
+ "type": "text",
436
+ "primaryKey": false,
437
+ "notNull": false
438
+ },
439
+ "created_at": {
440
+ "name": "created_at",
441
+ "type": "timestamp with time zone",
442
+ "primaryKey": false,
443
+ "notNull": true,
444
+ "default": "now()"
445
+ },
446
+ "updated_at": {
447
+ "name": "updated_at",
448
+ "type": "timestamp with time zone",
449
+ "primaryKey": false,
450
+ "notNull": true,
451
+ "default": "now()"
452
+ },
453
+ "created_by": {
454
+ "name": "created_by",
455
+ "type": "text",
456
+ "primaryKey": false,
457
+ "notNull": false
458
+ }
459
+ },
460
+ "indexes": {},
461
+ "foreignKeys": {
462
+ "cron_agents_created_by_user_id_fk": {
463
+ "name": "cron_agents_created_by_user_id_fk",
464
+ "tableFrom": "cron_agents",
465
+ "tableTo": "user",
466
+ "columnsFrom": [
467
+ "created_by"
468
+ ],
469
+ "columnsTo": [
470
+ "id"
471
+ ],
472
+ "onDelete": "set null",
473
+ "onUpdate": "no action"
474
+ }
475
+ },
476
+ "compositePrimaryKeys": {},
477
+ "uniqueConstraints": {},
478
+ "policies": {},
479
+ "checkConstraints": {},
480
+ "isRLSEnabled": false
481
+ },
482
+ "public.documents": {
483
+ "name": "documents",
484
+ "schema": "",
485
+ "columns": {
486
+ "id": {
487
+ "name": "id",
488
+ "type": "uuid",
489
+ "primaryKey": true,
490
+ "notNull": true,
491
+ "default": "gen_random_uuid()"
492
+ },
493
+ "title": {
494
+ "name": "title",
495
+ "type": "text",
496
+ "primaryKey": false,
497
+ "notNull": true
498
+ },
499
+ "path": {
500
+ "name": "path",
501
+ "type": "text",
502
+ "primaryKey": false,
503
+ "notNull": true
504
+ },
505
+ "content": {
506
+ "name": "content",
507
+ "type": "text",
508
+ "primaryKey": false,
509
+ "notNull": false
510
+ },
511
+ "content_hash": {
512
+ "name": "content_hash",
513
+ "type": "text",
514
+ "primaryKey": false,
515
+ "notNull": false
516
+ },
517
+ "tags": {
518
+ "name": "tags",
519
+ "type": "text[]",
520
+ "primaryKey": false,
521
+ "notNull": false,
522
+ "default": "'{}'"
523
+ },
524
+ "project_id": {
525
+ "name": "project_id",
526
+ "type": "uuid",
527
+ "primaryKey": false,
528
+ "notNull": false
529
+ },
530
+ "shared": {
531
+ "name": "shared",
532
+ "type": "boolean",
533
+ "primaryKey": false,
534
+ "notNull": true,
535
+ "default": false
536
+ },
537
+ "share_type": {
538
+ "name": "share_type",
539
+ "type": "text",
540
+ "primaryKey": false,
541
+ "notNull": false
542
+ },
543
+ "file_type": {
544
+ "name": "file_type",
545
+ "type": "text",
546
+ "primaryKey": false,
547
+ "notNull": true
548
+ },
549
+ "mime_type": {
550
+ "name": "mime_type",
551
+ "type": "text",
552
+ "primaryKey": false,
553
+ "notNull": false
554
+ },
555
+ "synced_at": {
556
+ "name": "synced_at",
557
+ "type": "timestamp with time zone",
558
+ "primaryKey": false,
559
+ "notNull": false
560
+ },
561
+ "created_at": {
562
+ "name": "created_at",
563
+ "type": "timestamp with time zone",
564
+ "primaryKey": false,
565
+ "notNull": true,
566
+ "default": "now()"
567
+ },
568
+ "created_by": {
569
+ "name": "created_by",
570
+ "type": "text",
571
+ "primaryKey": false,
572
+ "notNull": false
573
+ },
574
+ "modified_at": {
575
+ "name": "modified_at",
576
+ "type": "timestamp with time zone",
577
+ "primaryKey": false,
578
+ "notNull": false
579
+ },
580
+ "modified_by": {
581
+ "name": "modified_by",
582
+ "type": "text",
583
+ "primaryKey": false,
584
+ "notNull": false
585
+ },
586
+ "deleted_at": {
587
+ "name": "deleted_at",
588
+ "type": "timestamp with time zone",
589
+ "primaryKey": false,
590
+ "notNull": false
591
+ },
592
+ "deleted_by": {
593
+ "name": "deleted_by",
594
+ "type": "text",
595
+ "primaryKey": false,
596
+ "notNull": false
597
+ }
598
+ },
599
+ "indexes": {},
600
+ "foreignKeys": {
601
+ "documents_project_id_projects_id_fk": {
602
+ "name": "documents_project_id_projects_id_fk",
603
+ "tableFrom": "documents",
604
+ "tableTo": "projects",
605
+ "columnsFrom": [
606
+ "project_id"
607
+ ],
608
+ "columnsTo": [
609
+ "id"
610
+ ],
611
+ "onDelete": "set null",
612
+ "onUpdate": "no action"
613
+ },
614
+ "documents_created_by_user_id_fk": {
615
+ "name": "documents_created_by_user_id_fk",
616
+ "tableFrom": "documents",
617
+ "tableTo": "user",
618
+ "columnsFrom": [
619
+ "created_by"
620
+ ],
621
+ "columnsTo": [
622
+ "id"
623
+ ],
624
+ "onDelete": "set null",
625
+ "onUpdate": "no action"
626
+ },
627
+ "documents_modified_by_user_id_fk": {
628
+ "name": "documents_modified_by_user_id_fk",
629
+ "tableFrom": "documents",
630
+ "tableTo": "user",
631
+ "columnsFrom": [
632
+ "modified_by"
633
+ ],
634
+ "columnsTo": [
635
+ "id"
636
+ ],
637
+ "onDelete": "set null",
638
+ "onUpdate": "no action"
639
+ },
640
+ "documents_deleted_by_user_id_fk": {
641
+ "name": "documents_deleted_by_user_id_fk",
642
+ "tableFrom": "documents",
643
+ "tableTo": "user",
644
+ "columnsFrom": [
645
+ "deleted_by"
646
+ ],
647
+ "columnsTo": [
648
+ "id"
649
+ ],
650
+ "onDelete": "set null",
651
+ "onUpdate": "no action"
652
+ }
653
+ },
654
+ "compositePrimaryKeys": {},
655
+ "uniqueConstraints": {
656
+ "documents_path_unique": {
657
+ "name": "documents_path_unique",
658
+ "nullsNotDistinct": false,
659
+ "columns": [
660
+ "path"
661
+ ]
662
+ }
663
+ },
664
+ "policies": {},
665
+ "checkConstraints": {},
666
+ "isRLSEnabled": false
667
+ },
668
+ "public.hook_events": {
669
+ "name": "hook_events",
670
+ "schema": "",
671
+ "columns": {
672
+ "id": {
673
+ "name": "id",
674
+ "type": "uuid",
675
+ "primaryKey": true,
676
+ "notNull": true,
677
+ "default": "gen_random_uuid()"
678
+ },
679
+ "event_type": {
680
+ "name": "event_type",
681
+ "type": "text",
682
+ "primaryKey": false,
683
+ "notNull": true
684
+ },
685
+ "session_id": {
686
+ "name": "session_id",
687
+ "type": "text",
688
+ "primaryKey": false,
689
+ "notNull": false
690
+ },
691
+ "project_dir": {
692
+ "name": "project_dir",
693
+ "type": "text",
694
+ "primaryKey": false,
695
+ "notNull": false
696
+ },
697
+ "tool_name": {
698
+ "name": "tool_name",
699
+ "type": "text",
700
+ "primaryKey": false,
701
+ "notNull": false
702
+ },
703
+ "tool_matcher": {
704
+ "name": "tool_matcher",
705
+ "type": "text",
706
+ "primaryKey": false,
707
+ "notNull": false
708
+ },
709
+ "event_data": {
710
+ "name": "event_data",
711
+ "type": "text",
712
+ "primaryKey": false,
713
+ "notNull": false
714
+ },
715
+ "exit_code": {
716
+ "name": "exit_code",
717
+ "type": "integer",
718
+ "primaryKey": false,
719
+ "notNull": false
720
+ },
721
+ "blocked": {
722
+ "name": "blocked",
723
+ "type": "boolean",
724
+ "primaryKey": false,
725
+ "notNull": true,
726
+ "default": false
727
+ },
728
+ "block_reason": {
729
+ "name": "block_reason",
730
+ "type": "text",
731
+ "primaryKey": false,
732
+ "notNull": false
733
+ },
734
+ "duration_ms": {
735
+ "name": "duration_ms",
736
+ "type": "integer",
737
+ "primaryKey": false,
738
+ "notNull": false
739
+ },
740
+ "hook_script": {
741
+ "name": "hook_script",
742
+ "type": "text",
743
+ "primaryKey": false,
744
+ "notNull": false
745
+ },
746
+ "created_at": {
747
+ "name": "created_at",
748
+ "type": "timestamp with time zone",
749
+ "primaryKey": false,
750
+ "notNull": true,
751
+ "default": "now()"
752
+ }
753
+ },
754
+ "indexes": {},
755
+ "foreignKeys": {},
756
+ "compositePrimaryKeys": {},
757
+ "uniqueConstraints": {},
758
+ "policies": {},
759
+ "checkConstraints": {},
760
+ "isRLSEnabled": false
761
+ },
762
+ "public.memory_chunks": {
763
+ "name": "memory_chunks",
764
+ "schema": "",
765
+ "columns": {
766
+ "id": {
767
+ "name": "id",
768
+ "type": "uuid",
769
+ "primaryKey": true,
770
+ "notNull": true,
771
+ "default": "gen_random_uuid()"
772
+ },
773
+ "session_id": {
774
+ "name": "session_id",
775
+ "type": "text",
776
+ "primaryKey": false,
777
+ "notNull": false
778
+ },
779
+ "project_path": {
780
+ "name": "project_path",
781
+ "type": "text",
782
+ "primaryKey": false,
783
+ "notNull": false
784
+ },
785
+ "chunk_type": {
786
+ "name": "chunk_type",
787
+ "type": "text",
788
+ "primaryKey": false,
789
+ "notNull": true
790
+ },
791
+ "content": {
792
+ "name": "content",
793
+ "type": "text",
794
+ "primaryKey": false,
795
+ "notNull": true
796
+ },
797
+ "source_excerpt": {
798
+ "name": "source_excerpt",
799
+ "type": "text",
800
+ "primaryKey": false,
801
+ "notNull": false
802
+ },
803
+ "relevance_score": {
804
+ "name": "relevance_score",
805
+ "type": "real",
806
+ "primaryKey": false,
807
+ "notNull": true,
808
+ "default": 1
809
+ },
810
+ "access_count": {
811
+ "name": "access_count",
812
+ "type": "integer",
813
+ "primaryKey": false,
814
+ "notNull": true,
815
+ "default": 0
816
+ },
817
+ "last_accessed_at": {
818
+ "name": "last_accessed_at",
819
+ "type": "timestamp with time zone",
820
+ "primaryKey": false,
821
+ "notNull": false
822
+ },
823
+ "created_at": {
824
+ "name": "created_at",
825
+ "type": "timestamp with time zone",
826
+ "primaryKey": false,
827
+ "notNull": true,
828
+ "default": "now()"
829
+ },
830
+ "expires_at": {
831
+ "name": "expires_at",
832
+ "type": "timestamp with time zone",
833
+ "primaryKey": false,
834
+ "notNull": false
835
+ }
836
+ },
837
+ "indexes": {},
838
+ "foreignKeys": {},
839
+ "compositePrimaryKeys": {},
840
+ "uniqueConstraints": {},
841
+ "policies": {},
842
+ "checkConstraints": {},
843
+ "isRLSEnabled": false
844
+ },
845
+ "public.projects": {
846
+ "name": "projects",
847
+ "schema": "",
848
+ "columns": {
849
+ "id": {
850
+ "name": "id",
851
+ "type": "uuid",
852
+ "primaryKey": true,
853
+ "notNull": true,
854
+ "default": "gen_random_uuid()"
855
+ },
856
+ "name": {
857
+ "name": "name",
858
+ "type": "text",
859
+ "primaryKey": false,
860
+ "notNull": true
861
+ },
862
+ "color": {
863
+ "name": "color",
864
+ "type": "text",
865
+ "primaryKey": false,
866
+ "notNull": true
867
+ },
868
+ "description": {
869
+ "name": "description",
870
+ "type": "text",
871
+ "primaryKey": false,
872
+ "notNull": false
873
+ },
874
+ "created_at": {
875
+ "name": "created_at",
876
+ "type": "timestamp with time zone",
877
+ "primaryKey": false,
878
+ "notNull": true,
879
+ "default": "now()"
880
+ },
881
+ "modified_at": {
882
+ "name": "modified_at",
883
+ "type": "timestamp with time zone",
884
+ "primaryKey": false,
885
+ "notNull": false
886
+ },
887
+ "deleted_at": {
888
+ "name": "deleted_at",
889
+ "type": "timestamp with time zone",
890
+ "primaryKey": false,
891
+ "notNull": false
892
+ },
893
+ "created_by": {
894
+ "name": "created_by",
895
+ "type": "text",
896
+ "primaryKey": false,
897
+ "notNull": false
898
+ },
899
+ "modified_by": {
900
+ "name": "modified_by",
901
+ "type": "text",
902
+ "primaryKey": false,
903
+ "notNull": false
904
+ },
905
+ "deleted_by": {
906
+ "name": "deleted_by",
907
+ "type": "text",
908
+ "primaryKey": false,
909
+ "notNull": false
910
+ }
911
+ },
912
+ "indexes": {},
913
+ "foreignKeys": {
914
+ "projects_created_by_user_id_fk": {
915
+ "name": "projects_created_by_user_id_fk",
916
+ "tableFrom": "projects",
917
+ "tableTo": "user",
918
+ "columnsFrom": [
919
+ "created_by"
920
+ ],
921
+ "columnsTo": [
922
+ "id"
923
+ ],
924
+ "onDelete": "set null",
925
+ "onUpdate": "no action"
926
+ },
927
+ "projects_modified_by_user_id_fk": {
928
+ "name": "projects_modified_by_user_id_fk",
929
+ "tableFrom": "projects",
930
+ "tableTo": "user",
931
+ "columnsFrom": [
932
+ "modified_by"
933
+ ],
934
+ "columnsTo": [
935
+ "id"
936
+ ],
937
+ "onDelete": "set null",
938
+ "onUpdate": "no action"
939
+ },
940
+ "projects_deleted_by_user_id_fk": {
941
+ "name": "projects_deleted_by_user_id_fk",
942
+ "tableFrom": "projects",
943
+ "tableTo": "user",
944
+ "columnsFrom": [
945
+ "deleted_by"
946
+ ],
947
+ "columnsTo": [
948
+ "id"
949
+ ],
950
+ "onDelete": "set null",
951
+ "onUpdate": "no action"
952
+ }
953
+ },
954
+ "compositePrimaryKeys": {},
955
+ "uniqueConstraints": {},
956
+ "policies": {},
957
+ "checkConstraints": {},
958
+ "isRLSEnabled": false
959
+ },
960
+ "public.reminders": {
961
+ "name": "reminders",
962
+ "schema": "",
963
+ "columns": {
964
+ "id": {
965
+ "name": "id",
966
+ "type": "uuid",
967
+ "primaryKey": true,
968
+ "notNull": true,
969
+ "default": "gen_random_uuid()"
970
+ },
971
+ "task_id": {
972
+ "name": "task_id",
973
+ "type": "uuid",
974
+ "primaryKey": false,
975
+ "notNull": false
976
+ },
977
+ "message": {
978
+ "name": "message",
979
+ "type": "text",
980
+ "primaryKey": false,
981
+ "notNull": true
982
+ },
983
+ "remind_at": {
984
+ "name": "remind_at",
985
+ "type": "timestamp with time zone",
986
+ "primaryKey": false,
987
+ "notNull": true
988
+ },
989
+ "notified": {
990
+ "name": "notified",
991
+ "type": "boolean",
992
+ "primaryKey": false,
993
+ "notNull": true,
994
+ "default": false
995
+ },
996
+ "created_at": {
997
+ "name": "created_at",
998
+ "type": "timestamp with time zone",
999
+ "primaryKey": false,
1000
+ "notNull": true,
1001
+ "default": "now()"
1002
+ }
1003
+ },
1004
+ "indexes": {},
1005
+ "foreignKeys": {
1006
+ "reminders_task_id_tasks_id_fk": {
1007
+ "name": "reminders_task_id_tasks_id_fk",
1008
+ "tableFrom": "reminders",
1009
+ "tableTo": "tasks",
1010
+ "columnsFrom": [
1011
+ "task_id"
1012
+ ],
1013
+ "columnsTo": [
1014
+ "id"
1015
+ ],
1016
+ "onDelete": "cascade",
1017
+ "onUpdate": "no action"
1018
+ }
1019
+ },
1020
+ "compositePrimaryKeys": {},
1021
+ "uniqueConstraints": {},
1022
+ "policies": {},
1023
+ "checkConstraints": {},
1024
+ "isRLSEnabled": false
1025
+ },
1026
+ "public.secrets": {
1027
+ "name": "secrets",
1028
+ "schema": "",
1029
+ "columns": {
1030
+ "id": {
1031
+ "name": "id",
1032
+ "type": "uuid",
1033
+ "primaryKey": true,
1034
+ "notNull": true,
1035
+ "default": "gen_random_uuid()"
1036
+ },
1037
+ "key": {
1038
+ "name": "key",
1039
+ "type": "text",
1040
+ "primaryKey": false,
1041
+ "notNull": true
1042
+ },
1043
+ "encrypted_value": {
1044
+ "name": "encrypted_value",
1045
+ "type": "text",
1046
+ "primaryKey": false,
1047
+ "notNull": true
1048
+ },
1049
+ "iv": {
1050
+ "name": "iv",
1051
+ "type": "text",
1052
+ "primaryKey": false,
1053
+ "notNull": true
1054
+ },
1055
+ "description": {
1056
+ "name": "description",
1057
+ "type": "text",
1058
+ "primaryKey": false,
1059
+ "notNull": false
1060
+ },
1061
+ "created_at": {
1062
+ "name": "created_at",
1063
+ "type": "timestamp with time zone",
1064
+ "primaryKey": false,
1065
+ "notNull": true,
1066
+ "default": "now()"
1067
+ },
1068
+ "updated_at": {
1069
+ "name": "updated_at",
1070
+ "type": "timestamp with time zone",
1071
+ "primaryKey": false,
1072
+ "notNull": true,
1073
+ "default": "now()"
1074
+ },
1075
+ "created_by": {
1076
+ "name": "created_by",
1077
+ "type": "text",
1078
+ "primaryKey": false,
1079
+ "notNull": false
1080
+ }
1081
+ },
1082
+ "indexes": {},
1083
+ "foreignKeys": {
1084
+ "secrets_created_by_user_id_fk": {
1085
+ "name": "secrets_created_by_user_id_fk",
1086
+ "tableFrom": "secrets",
1087
+ "tableTo": "user",
1088
+ "columnsFrom": [
1089
+ "created_by"
1090
+ ],
1091
+ "columnsTo": [
1092
+ "id"
1093
+ ],
1094
+ "onDelete": "set null",
1095
+ "onUpdate": "no action"
1096
+ }
1097
+ },
1098
+ "compositePrimaryKeys": {},
1099
+ "uniqueConstraints": {
1100
+ "secrets_key_unique": {
1101
+ "name": "secrets_key_unique",
1102
+ "nullsNotDistinct": false,
1103
+ "columns": [
1104
+ "key"
1105
+ ]
1106
+ }
1107
+ },
1108
+ "policies": {},
1109
+ "checkConstraints": {},
1110
+ "isRLSEnabled": false
1111
+ },
1112
+ "public.session": {
1113
+ "name": "session",
1114
+ "schema": "",
1115
+ "columns": {
1116
+ "id": {
1117
+ "name": "id",
1118
+ "type": "text",
1119
+ "primaryKey": true,
1120
+ "notNull": true
1121
+ },
1122
+ "user_id": {
1123
+ "name": "user_id",
1124
+ "type": "text",
1125
+ "primaryKey": false,
1126
+ "notNull": true
1127
+ },
1128
+ "token": {
1129
+ "name": "token",
1130
+ "type": "text",
1131
+ "primaryKey": false,
1132
+ "notNull": true
1133
+ },
1134
+ "expires_at": {
1135
+ "name": "expires_at",
1136
+ "type": "timestamp with time zone",
1137
+ "primaryKey": false,
1138
+ "notNull": true
1139
+ },
1140
+ "ip_address": {
1141
+ "name": "ip_address",
1142
+ "type": "text",
1143
+ "primaryKey": false,
1144
+ "notNull": false
1145
+ },
1146
+ "user_agent": {
1147
+ "name": "user_agent",
1148
+ "type": "text",
1149
+ "primaryKey": false,
1150
+ "notNull": false
1151
+ },
1152
+ "created_at": {
1153
+ "name": "created_at",
1154
+ "type": "timestamp with time zone",
1155
+ "primaryKey": false,
1156
+ "notNull": true,
1157
+ "default": "now()"
1158
+ },
1159
+ "updated_at": {
1160
+ "name": "updated_at",
1161
+ "type": "timestamp with time zone",
1162
+ "primaryKey": false,
1163
+ "notNull": true,
1164
+ "default": "now()"
1165
+ }
1166
+ },
1167
+ "indexes": {},
1168
+ "foreignKeys": {
1169
+ "session_user_id_user_id_fk": {
1170
+ "name": "session_user_id_user_id_fk",
1171
+ "tableFrom": "session",
1172
+ "tableTo": "user",
1173
+ "columnsFrom": [
1174
+ "user_id"
1175
+ ],
1176
+ "columnsTo": [
1177
+ "id"
1178
+ ],
1179
+ "onDelete": "cascade",
1180
+ "onUpdate": "no action"
1181
+ }
1182
+ },
1183
+ "compositePrimaryKeys": {},
1184
+ "uniqueConstraints": {
1185
+ "session_token_unique": {
1186
+ "name": "session_token_unique",
1187
+ "nullsNotDistinct": false,
1188
+ "columns": [
1189
+ "token"
1190
+ ]
1191
+ }
1192
+ },
1193
+ "policies": {},
1194
+ "checkConstraints": {},
1195
+ "isRLSEnabled": false
1196
+ },
1197
+ "public.skills_catalog": {
1198
+ "name": "skills_catalog",
1199
+ "schema": "",
1200
+ "columns": {
1201
+ "id": {
1202
+ "name": "id",
1203
+ "type": "uuid",
1204
+ "primaryKey": true,
1205
+ "notNull": true,
1206
+ "default": "gen_random_uuid()"
1207
+ },
1208
+ "name": {
1209
+ "name": "name",
1210
+ "type": "text",
1211
+ "primaryKey": false,
1212
+ "notNull": true
1213
+ },
1214
+ "description": {
1215
+ "name": "description",
1216
+ "type": "text",
1217
+ "primaryKey": false,
1218
+ "notNull": true
1219
+ },
1220
+ "version": {
1221
+ "name": "version",
1222
+ "type": "text",
1223
+ "primaryKey": false,
1224
+ "notNull": true
1225
+ },
1226
+ "author": {
1227
+ "name": "author",
1228
+ "type": "text",
1229
+ "primaryKey": false,
1230
+ "notNull": true
1231
+ },
1232
+ "requires_secrets": {
1233
+ "name": "requires_secrets",
1234
+ "type": "text[]",
1235
+ "primaryKey": false,
1236
+ "notNull": false,
1237
+ "default": "'{}'"
1238
+ },
1239
+ "files": {
1240
+ "name": "files",
1241
+ "type": "text[]",
1242
+ "primaryKey": false,
1243
+ "notNull": false,
1244
+ "default": "'{}'"
1245
+ },
1246
+ "updated_at": {
1247
+ "name": "updated_at",
1248
+ "type": "timestamp with time zone",
1249
+ "primaryKey": false,
1250
+ "notNull": true
1251
+ },
1252
+ "synced_at": {
1253
+ "name": "synced_at",
1254
+ "type": "timestamp with time zone",
1255
+ "primaryKey": false,
1256
+ "notNull": true,
1257
+ "default": "now()"
1258
+ }
1259
+ },
1260
+ "indexes": {},
1261
+ "foreignKeys": {},
1262
+ "compositePrimaryKeys": {},
1263
+ "uniqueConstraints": {
1264
+ "skills_catalog_name_unique": {
1265
+ "name": "skills_catalog_name_unique",
1266
+ "nullsNotDistinct": false,
1267
+ "columns": [
1268
+ "name"
1269
+ ]
1270
+ }
1271
+ },
1272
+ "policies": {},
1273
+ "checkConstraints": {},
1274
+ "isRLSEnabled": false
1275
+ },
1276
+ "public.tasks": {
1277
+ "name": "tasks",
1278
+ "schema": "",
1279
+ "columns": {
1280
+ "id": {
1281
+ "name": "id",
1282
+ "type": "uuid",
1283
+ "primaryKey": true,
1284
+ "notNull": true,
1285
+ "default": "gen_random_uuid()"
1286
+ },
1287
+ "title": {
1288
+ "name": "title",
1289
+ "type": "text",
1290
+ "primaryKey": false,
1291
+ "notNull": true
1292
+ },
1293
+ "description": {
1294
+ "name": "description",
1295
+ "type": "text",
1296
+ "primaryKey": false,
1297
+ "notNull": false
1298
+ },
1299
+ "status": {
1300
+ "name": "status",
1301
+ "type": "text",
1302
+ "primaryKey": false,
1303
+ "notNull": true,
1304
+ "default": "'todo'"
1305
+ },
1306
+ "priority": {
1307
+ "name": "priority",
1308
+ "type": "integer",
1309
+ "primaryKey": false,
1310
+ "notNull": true,
1311
+ "default": 2
1312
+ },
1313
+ "project_id": {
1314
+ "name": "project_id",
1315
+ "type": "uuid",
1316
+ "primaryKey": false,
1317
+ "notNull": false
1318
+ },
1319
+ "due_date": {
1320
+ "name": "due_date",
1321
+ "type": "timestamp with time zone",
1322
+ "primaryKey": false,
1323
+ "notNull": false
1324
+ },
1325
+ "tags": {
1326
+ "name": "tags",
1327
+ "type": "text[]",
1328
+ "primaryKey": false,
1329
+ "notNull": false,
1330
+ "default": "'{}'"
1331
+ },
1332
+ "created_at": {
1333
+ "name": "created_at",
1334
+ "type": "timestamp with time zone",
1335
+ "primaryKey": false,
1336
+ "notNull": true,
1337
+ "default": "now()"
1338
+ },
1339
+ "modified_at": {
1340
+ "name": "modified_at",
1341
+ "type": "timestamp with time zone",
1342
+ "primaryKey": false,
1343
+ "notNull": false
1344
+ },
1345
+ "completed_at": {
1346
+ "name": "completed_at",
1347
+ "type": "timestamp with time zone",
1348
+ "primaryKey": false,
1349
+ "notNull": false
1350
+ },
1351
+ "deleted_at": {
1352
+ "name": "deleted_at",
1353
+ "type": "timestamp with time zone",
1354
+ "primaryKey": false,
1355
+ "notNull": false
1356
+ },
1357
+ "created_by": {
1358
+ "name": "created_by",
1359
+ "type": "text",
1360
+ "primaryKey": false,
1361
+ "notNull": false
1362
+ },
1363
+ "modified_by": {
1364
+ "name": "modified_by",
1365
+ "type": "text",
1366
+ "primaryKey": false,
1367
+ "notNull": false
1368
+ },
1369
+ "deleted_by": {
1370
+ "name": "deleted_by",
1371
+ "type": "text",
1372
+ "primaryKey": false,
1373
+ "notNull": false
1374
+ }
1375
+ },
1376
+ "indexes": {},
1377
+ "foreignKeys": {
1378
+ "tasks_project_id_projects_id_fk": {
1379
+ "name": "tasks_project_id_projects_id_fk",
1380
+ "tableFrom": "tasks",
1381
+ "tableTo": "projects",
1382
+ "columnsFrom": [
1383
+ "project_id"
1384
+ ],
1385
+ "columnsTo": [
1386
+ "id"
1387
+ ],
1388
+ "onDelete": "set null",
1389
+ "onUpdate": "no action"
1390
+ },
1391
+ "tasks_created_by_user_id_fk": {
1392
+ "name": "tasks_created_by_user_id_fk",
1393
+ "tableFrom": "tasks",
1394
+ "tableTo": "user",
1395
+ "columnsFrom": [
1396
+ "created_by"
1397
+ ],
1398
+ "columnsTo": [
1399
+ "id"
1400
+ ],
1401
+ "onDelete": "set null",
1402
+ "onUpdate": "no action"
1403
+ },
1404
+ "tasks_modified_by_user_id_fk": {
1405
+ "name": "tasks_modified_by_user_id_fk",
1406
+ "tableFrom": "tasks",
1407
+ "tableTo": "user",
1408
+ "columnsFrom": [
1409
+ "modified_by"
1410
+ ],
1411
+ "columnsTo": [
1412
+ "id"
1413
+ ],
1414
+ "onDelete": "set null",
1415
+ "onUpdate": "no action"
1416
+ },
1417
+ "tasks_deleted_by_user_id_fk": {
1418
+ "name": "tasks_deleted_by_user_id_fk",
1419
+ "tableFrom": "tasks",
1420
+ "tableTo": "user",
1421
+ "columnsFrom": [
1422
+ "deleted_by"
1423
+ ],
1424
+ "columnsTo": [
1425
+ "id"
1426
+ ],
1427
+ "onDelete": "set null",
1428
+ "onUpdate": "no action"
1429
+ }
1430
+ },
1431
+ "compositePrimaryKeys": {},
1432
+ "uniqueConstraints": {},
1433
+ "policies": {},
1434
+ "checkConstraints": {},
1435
+ "isRLSEnabled": false
1436
+ },
1437
+ "public.token_usage": {
1438
+ "name": "token_usage",
1439
+ "schema": "",
1440
+ "columns": {
1441
+ "id": {
1442
+ "name": "id",
1443
+ "type": "uuid",
1444
+ "primaryKey": true,
1445
+ "notNull": true,
1446
+ "default": "gen_random_uuid()"
1447
+ },
1448
+ "source": {
1449
+ "name": "source",
1450
+ "type": "text",
1451
+ "primaryKey": false,
1452
+ "notNull": true
1453
+ },
1454
+ "source_id": {
1455
+ "name": "source_id",
1456
+ "type": "text",
1457
+ "primaryKey": false,
1458
+ "notNull": false
1459
+ },
1460
+ "source_name": {
1461
+ "name": "source_name",
1462
+ "type": "text",
1463
+ "primaryKey": false,
1464
+ "notNull": false
1465
+ },
1466
+ "input_tokens": {
1467
+ "name": "input_tokens",
1468
+ "type": "integer",
1469
+ "primaryKey": false,
1470
+ "notNull": true,
1471
+ "default": 0
1472
+ },
1473
+ "output_tokens": {
1474
+ "name": "output_tokens",
1475
+ "type": "integer",
1476
+ "primaryKey": false,
1477
+ "notNull": true,
1478
+ "default": 0
1479
+ },
1480
+ "cost_usd": {
1481
+ "name": "cost_usd",
1482
+ "type": "real",
1483
+ "primaryKey": false,
1484
+ "notNull": true,
1485
+ "default": 0
1486
+ },
1487
+ "duration_ms": {
1488
+ "name": "duration_ms",
1489
+ "type": "integer",
1490
+ "primaryKey": false,
1491
+ "notNull": false
1492
+ },
1493
+ "num_turns": {
1494
+ "name": "num_turns",
1495
+ "type": "integer",
1496
+ "primaryKey": false,
1497
+ "notNull": false
1498
+ },
1499
+ "created_at": {
1500
+ "name": "created_at",
1501
+ "type": "timestamp with time zone",
1502
+ "primaryKey": false,
1503
+ "notNull": true,
1504
+ "default": "now()"
1505
+ }
1506
+ },
1507
+ "indexes": {},
1508
+ "foreignKeys": {},
1509
+ "compositePrimaryKeys": {},
1510
+ "uniqueConstraints": {},
1511
+ "policies": {},
1512
+ "checkConstraints": {},
1513
+ "isRLSEnabled": false
1514
+ },
1515
+ "public.user": {
1516
+ "name": "user",
1517
+ "schema": "",
1518
+ "columns": {
1519
+ "id": {
1520
+ "name": "id",
1521
+ "type": "text",
1522
+ "primaryKey": true,
1523
+ "notNull": true
1524
+ },
1525
+ "name": {
1526
+ "name": "name",
1527
+ "type": "text",
1528
+ "primaryKey": false,
1529
+ "notNull": true
1530
+ },
1531
+ "email": {
1532
+ "name": "email",
1533
+ "type": "text",
1534
+ "primaryKey": false,
1535
+ "notNull": true
1536
+ },
1537
+ "email_verified": {
1538
+ "name": "email_verified",
1539
+ "type": "boolean",
1540
+ "primaryKey": false,
1541
+ "notNull": true,
1542
+ "default": false
1543
+ },
1544
+ "image": {
1545
+ "name": "image",
1546
+ "type": "text",
1547
+ "primaryKey": false,
1548
+ "notNull": false
1549
+ },
1550
+ "created_at": {
1551
+ "name": "created_at",
1552
+ "type": "timestamp with time zone",
1553
+ "primaryKey": false,
1554
+ "notNull": true,
1555
+ "default": "now()"
1556
+ },
1557
+ "updated_at": {
1558
+ "name": "updated_at",
1559
+ "type": "timestamp with time zone",
1560
+ "primaryKey": false,
1561
+ "notNull": true,
1562
+ "default": "now()"
1563
+ }
1564
+ },
1565
+ "indexes": {},
1566
+ "foreignKeys": {},
1567
+ "compositePrimaryKeys": {},
1568
+ "uniqueConstraints": {
1569
+ "user_email_unique": {
1570
+ "name": "user_email_unique",
1571
+ "nullsNotDistinct": false,
1572
+ "columns": [
1573
+ "email"
1574
+ ]
1575
+ }
1576
+ },
1577
+ "policies": {},
1578
+ "checkConstraints": {},
1579
+ "isRLSEnabled": false
1580
+ },
1581
+ "public.user_settings": {
1582
+ "name": "user_settings",
1583
+ "schema": "",
1584
+ "columns": {
1585
+ "id": {
1586
+ "name": "id",
1587
+ "type": "uuid",
1588
+ "primaryKey": true,
1589
+ "notNull": true,
1590
+ "default": "gen_random_uuid()"
1591
+ },
1592
+ "user_id": {
1593
+ "name": "user_id",
1594
+ "type": "text",
1595
+ "primaryKey": false,
1596
+ "notNull": true
1597
+ },
1598
+ "settings": {
1599
+ "name": "settings",
1600
+ "type": "text",
1601
+ "primaryKey": false,
1602
+ "notNull": true,
1603
+ "default": "'{}'"
1604
+ },
1605
+ "created_at": {
1606
+ "name": "created_at",
1607
+ "type": "timestamp with time zone",
1608
+ "primaryKey": false,
1609
+ "notNull": true,
1610
+ "default": "now()"
1611
+ },
1612
+ "updated_at": {
1613
+ "name": "updated_at",
1614
+ "type": "timestamp with time zone",
1615
+ "primaryKey": false,
1616
+ "notNull": true,
1617
+ "default": "now()"
1618
+ }
1619
+ },
1620
+ "indexes": {},
1621
+ "foreignKeys": {
1622
+ "user_settings_user_id_user_id_fk": {
1623
+ "name": "user_settings_user_id_user_id_fk",
1624
+ "tableFrom": "user_settings",
1625
+ "tableTo": "user",
1626
+ "columnsFrom": [
1627
+ "user_id"
1628
+ ],
1629
+ "columnsTo": [
1630
+ "id"
1631
+ ],
1632
+ "onDelete": "cascade",
1633
+ "onUpdate": "no action"
1634
+ }
1635
+ },
1636
+ "compositePrimaryKeys": {},
1637
+ "uniqueConstraints": {
1638
+ "user_settings_user_id_unique": {
1639
+ "name": "user_settings_user_id_unique",
1640
+ "nullsNotDistinct": false,
1641
+ "columns": [
1642
+ "user_id"
1643
+ ]
1644
+ }
1645
+ },
1646
+ "policies": {},
1647
+ "checkConstraints": {},
1648
+ "isRLSEnabled": false
1649
+ },
1650
+ "public.verification": {
1651
+ "name": "verification",
1652
+ "schema": "",
1653
+ "columns": {
1654
+ "id": {
1655
+ "name": "id",
1656
+ "type": "text",
1657
+ "primaryKey": true,
1658
+ "notNull": true
1659
+ },
1660
+ "identifier": {
1661
+ "name": "identifier",
1662
+ "type": "text",
1663
+ "primaryKey": false,
1664
+ "notNull": true
1665
+ },
1666
+ "value": {
1667
+ "name": "value",
1668
+ "type": "text",
1669
+ "primaryKey": false,
1670
+ "notNull": true
1671
+ },
1672
+ "expires_at": {
1673
+ "name": "expires_at",
1674
+ "type": "timestamp with time zone",
1675
+ "primaryKey": false,
1676
+ "notNull": true
1677
+ },
1678
+ "created_at": {
1679
+ "name": "created_at",
1680
+ "type": "timestamp with time zone",
1681
+ "primaryKey": false,
1682
+ "notNull": true,
1683
+ "default": "now()"
1684
+ },
1685
+ "updated_at": {
1686
+ "name": "updated_at",
1687
+ "type": "timestamp with time zone",
1688
+ "primaryKey": false,
1689
+ "notNull": true,
1690
+ "default": "now()"
1691
+ }
1692
+ },
1693
+ "indexes": {},
1694
+ "foreignKeys": {},
1695
+ "compositePrimaryKeys": {},
1696
+ "uniqueConstraints": {},
1697
+ "policies": {},
1698
+ "checkConstraints": {},
1699
+ "isRLSEnabled": false
1700
+ }
1701
+ },
1702
+ "enums": {},
1703
+ "schemas": {},
1704
+ "sequences": {},
1705
+ "roles": {},
1706
+ "policies": {},
1707
+ "views": {},
1708
+ "_meta": {
1709
+ "columns": {},
1710
+ "schemas": {},
1711
+ "tables": {}
1712
+ }
1713
+ }