Skip to content
Source
Sign inSign up
TanStack/schemas
Open History to see the last commit

0000_snapshot.json

1,159 lines30.5 KB

1{
2 "version": "6",
3 "dialect": "sqlite",
4 "id": "775277ea-f4ab-4488-ab03-9b98327997d7",
5 "prevId": "00000000-0000-0000-0000-000000000000",
6 "tables": {
7 "account": {
8 "name": "account",
9 "columns": {
10 "id": {
11 "name": "id",
12 "type": "text",
13 "primaryKey": true,
14 "notNull": true,
15 "autoincrement": false
16 },
17 "account_id": {
18 "name": "account_id",
19 "type": "text",
20 "primaryKey": false,
21 "notNull": true,
22 "autoincrement": false
23 },
24 "provider_id": {
25 "name": "provider_id",
26 "type": "text",
27 "primaryKey": false,
28 "notNull": true,
29 "autoincrement": false
30 },
31 "user_id": {
32 "name": "user_id",
33 "type": "text",
34 "primaryKey": false,
35 "notNull": true,
36 "autoincrement": false
37 },
38 "access_token": {
39 "name": "access_token",
40 "type": "text",
41 "primaryKey": false,
42 "notNull": false,
43 "autoincrement": false
44 },
45 "refresh_token": {
46 "name": "refresh_token",
47 "type": "text",
48 "primaryKey": false,
49 "notNull": false,
50 "autoincrement": false
51 },
52 "id_token": {
53 "name": "id_token",
54 "type": "text",
55 "primaryKey": false,
56 "notNull": false,
57 "autoincrement": false
58 },
59 "access_token_expires_at": {
60 "name": "access_token_expires_at",
61 "type": "integer",
62 "primaryKey": false,
63 "notNull": false,
64 "autoincrement": false
65 },
66 "refresh_token_expires_at": {
67 "name": "refresh_token_expires_at",
68 "type": "integer",
69 "primaryKey": false,
70 "notNull": false,
71 "autoincrement": false
72 },
73 "scope": {
74 "name": "scope",
75 "type": "text",
76 "primaryKey": false,
77 "notNull": false,
78 "autoincrement": false
79 },
80 "password": {
81 "name": "password",
82 "type": "text",
83 "primaryKey": false,
84 "notNull": false,
85 "autoincrement": false
86 },
87 "created_at": {
88 "name": "created_at",
89 "type": "integer",
90 "primaryKey": false,
91 "notNull": true,
92 "autoincrement": false
93 },
94 "updated_at": {
95 "name": "updated_at",
96 "type": "integer",
97 "primaryKey": false,
98 "notNull": true,
99 "autoincrement": false
100 }
101 },
102 "indexes": {
103 "account_userId_idx": {
104 "name": "account_userId_idx",
105 "columns": ["user_id"],
106 "isUnique": false
107 }
108 },
109 "foreignKeys": {
110 "account_user_id_user_id_fk": {
111 "name": "account_user_id_user_id_fk",
112 "tableFrom": "account",
113 "tableTo": "user",
114 "columnsFrom": ["user_id"],
115 "columnsTo": ["id"],
116 "onDelete": "cascade",
117 "onUpdate": "no action"
118 }
119 },
120 "compositePrimaryKeys": {},
121 "uniqueConstraints": {},
122 "checkConstraints": {}
123 },
124 "agent": {
125 "name": "agent",
126 "columns": {
127 "id": {
128 "name": "id",
129 "type": "text",
130 "primaryKey": true,
131 "notNull": true,
132 "autoincrement": false
133 },
134 "name": {
135 "name": "name",
136 "type": "text",
137 "primaryKey": false,
138 "notNull": true,
139 "autoincrement": false
140 },
141 "user_id": {
142 "name": "user_id",
143 "type": "text",
144 "primaryKey": false,
145 "notNull": false,
146 "autoincrement": false
147 },
148 "host_id": {
149 "name": "host_id",
150 "type": "text",
151 "primaryKey": false,
152 "notNull": true,
153 "autoincrement": false
154 },
155 "status": {
156 "name": "status",
157 "type": "text",
158 "primaryKey": false,
159 "notNull": true,
160 "autoincrement": false,
161 "default": "'active'"
162 },
163 "mode": {
164 "name": "mode",
165 "type": "text",
166 "primaryKey": false,
167 "notNull": true,
168 "autoincrement": false,
169 "default": "'delegated'"
170 },
171 "public_key": {
172 "name": "public_key",
173 "type": "text",
174 "primaryKey": false,
175 "notNull": true,
176 "autoincrement": false
177 },
178 "kid": {
179 "name": "kid",
180 "type": "text",
181 "primaryKey": false,
182 "notNull": false,
183 "autoincrement": false
184 },
185 "jwks_url": {
186 "name": "jwks_url",
187 "type": "text",
188 "primaryKey": false,
189 "notNull": false,
190 "autoincrement": false
191 },
192 "last_used_at": {
193 "name": "last_used_at",
194 "type": "integer",
195 "primaryKey": false,
196 "notNull": false,
197 "autoincrement": false
198 },
199 "activated_at": {
200 "name": "activated_at",
201 "type": "integer",
202 "primaryKey": false,
203 "notNull": false,
204 "autoincrement": false
205 },
206 "expires_at": {
207 "name": "expires_at",
208 "type": "integer",
209 "primaryKey": false,
210 "notNull": false,
211 "autoincrement": false
212 },
213 "metadata": {
214 "name": "metadata",
215 "type": "text",
216 "primaryKey": false,
217 "notNull": false,
218 "autoincrement": false
219 },
220 "created_at": {
221 "name": "created_at",
222 "type": "integer",
223 "primaryKey": false,
224 "notNull": true,
225 "autoincrement": false
226 },
227 "updated_at": {
228 "name": "updated_at",
229 "type": "integer",
230 "primaryKey": false,
231 "notNull": true,
232 "autoincrement": false
233 }
234 },
235 "indexes": {
236 "agent_userId_idx": {
237 "name": "agent_userId_idx",
238 "columns": ["user_id"],
239 "isUnique": false
240 },
241 "agent_hostId_idx": {
242 "name": "agent_hostId_idx",
243 "columns": ["host_id"],
244 "isUnique": false
245 },
246 "agent_status_idx": {
247 "name": "agent_status_idx",
248 "columns": ["status"],
249 "isUnique": false
250 },
251 "agent_kid_idx": {
252 "name": "agent_kid_idx",
253 "columns": ["kid"],
254 "isUnique": false
255 }
256 },
257 "foreignKeys": {
258 "agent_user_id_user_id_fk": {
259 "name": "agent_user_id_user_id_fk",
260 "tableFrom": "agent",
261 "tableTo": "user",
262 "columnsFrom": ["user_id"],
263 "columnsTo": ["id"],
264 "onDelete": "cascade",
265 "onUpdate": "no action"
266 },
267 "agent_host_id_agent_host_id_fk": {
268 "name": "agent_host_id_agent_host_id_fk",
269 "tableFrom": "agent",
270 "tableTo": "agent_host",
271 "columnsFrom": ["host_id"],
272 "columnsTo": ["id"],
273 "onDelete": "cascade",
274 "onUpdate": "no action"
275 }
276 },
277 "compositePrimaryKeys": {},
278 "uniqueConstraints": {},
279 "checkConstraints": {}
280 },
281 "agent_capability_grant": {
282 "name": "agent_capability_grant",
283 "columns": {
284 "id": {
285 "name": "id",
286 "type": "text",
287 "primaryKey": true,
288 "notNull": true,
289 "autoincrement": false
290 },
291 "agent_id": {
292 "name": "agent_id",
293 "type": "text",
294 "primaryKey": false,
295 "notNull": true,
296 "autoincrement": false
297 },
298 "capability": {
299 "name": "capability",
300 "type": "text",
301 "primaryKey": false,
302 "notNull": true,
303 "autoincrement": false
304 },
305 "denied_by": {
306 "name": "denied_by",
307 "type": "text",
308 "primaryKey": false,
309 "notNull": false,
310 "autoincrement": false
311 },
312 "granted_by": {
313 "name": "granted_by",
314 "type": "text",
315 "primaryKey": false,
316 "notNull": false,
317 "autoincrement": false
318 },
319 "expires_at": {
320 "name": "expires_at",
321 "type": "integer",
322 "primaryKey": false,
323 "notNull": false,
324 "autoincrement": false
325 },
326 "created_at": {
327 "name": "created_at",
328 "type": "integer",
329 "primaryKey": false,
330 "notNull": true,
331 "autoincrement": false
332 },
333 "updated_at": {
334 "name": "updated_at",
335 "type": "integer",
336 "primaryKey": false,
337 "notNull": true,
338 "autoincrement": false
339 },
340 "status": {
341 "name": "status",
342 "type": "text",
343 "primaryKey": false,
344 "notNull": true,
345 "autoincrement": false,
346 "default": "'active'"
347 },
348 "reason": {
349 "name": "reason",
350 "type": "text",
351 "primaryKey": false,
352 "notNull": false,
353 "autoincrement": false
354 },
355 "constraints": {
356 "name": "constraints",
357 "type": "text",
358 "primaryKey": false,
359 "notNull": false,
360 "autoincrement": false
361 }
362 },
363 "indexes": {
364 "agentCapabilityGrant_agentId_idx": {
365 "name": "agentCapabilityGrant_agentId_idx",
366 "columns": ["agent_id"],
367 "isUnique": false
368 },
369 "agentCapabilityGrant_capability_idx": {
370 "name": "agentCapabilityGrant_capability_idx",
371 "columns": ["capability"],
372 "isUnique": false
373 },
374 "agentCapabilityGrant_grantedBy_idx": {
375 "name": "agentCapabilityGrant_grantedBy_idx",
376 "columns": ["granted_by"],
377 "isUnique": false
378 },
379 "agentCapabilityGrant_status_idx": {
380 "name": "agentCapabilityGrant_status_idx",
381 "columns": ["status"],
382 "isUnique": false
383 }
384 },
385 "foreignKeys": {
386 "agent_capability_grant_agent_id_agent_id_fk": {
387 "name": "agent_capability_grant_agent_id_agent_id_fk",
388 "tableFrom": "agent_capability_grant",
389 "tableTo": "agent",
390 "columnsFrom": ["agent_id"],
391 "columnsTo": ["id"],
392 "onDelete": "cascade",
393 "onUpdate": "no action"
394 },
395 "agent_capability_grant_denied_by_user_id_fk": {
396 "name": "agent_capability_grant_denied_by_user_id_fk",
397 "tableFrom": "agent_capability_grant",
398 "tableTo": "user",
399 "columnsFrom": ["denied_by"],
400 "columnsTo": ["id"],
401 "onDelete": "cascade",
402 "onUpdate": "no action"
403 },
404 "agent_capability_grant_granted_by_user_id_fk": {
405 "name": "agent_capability_grant_granted_by_user_id_fk",
406 "tableFrom": "agent_capability_grant",
407 "tableTo": "user",
408 "columnsFrom": ["granted_by"],
409 "columnsTo": ["id"],
410 "onDelete": "cascade",
411 "onUpdate": "no action"
412 }
413 },
414 "compositePrimaryKeys": {},
415 "uniqueConstraints": {},
416 "checkConstraints": {}
417 },
418 "agent_host": {
419 "name": "agent_host",
420 "columns": {
421 "id": {
422 "name": "id",
423 "type": "text",
424 "primaryKey": true,
425 "notNull": true,
426 "autoincrement": false
427 },
428 "name": {
429 "name": "name",
430 "type": "text",
431 "primaryKey": false,
432 "notNull": false,
433 "autoincrement": false
434 },
435 "user_id": {
436 "name": "user_id",
437 "type": "text",
438 "primaryKey": false,
439 "notNull": false,
440 "autoincrement": false
441 },
442 "default_capabilities": {
443 "name": "default_capabilities",
444 "type": "text",
445 "primaryKey": false,
446 "notNull": false,
447 "autoincrement": false
448 },
449 "public_key": {
450 "name": "public_key",
451 "type": "text",
452 "primaryKey": false,
453 "notNull": false,
454 "autoincrement": false
455 },
456 "kid": {
457 "name": "kid",
458 "type": "text",
459 "primaryKey": false,
460 "notNull": false,
461 "autoincrement": false
462 },
463 "jwks_url": {
464 "name": "jwks_url",
465 "type": "text",
466 "primaryKey": false,
467 "notNull": false,
468 "autoincrement": false
469 },
470 "enrollment_token_hash": {
471 "name": "enrollment_token_hash",
472 "type": "text",
473 "primaryKey": false,
474 "notNull": false,
475 "autoincrement": false
476 },
477 "enrollment_token_expires_at": {
478 "name": "enrollment_token_expires_at",
479 "type": "integer",
480 "primaryKey": false,
481 "notNull": false,
482 "autoincrement": false
483 },
484 "status": {
485 "name": "status",
486 "type": "text",
487 "primaryKey": false,
488 "notNull": true,
489 "autoincrement": false,
490 "default": "'active'"
491 },
492 "activated_at": {
493 "name": "activated_at",
494 "type": "integer",
495 "primaryKey": false,
496 "notNull": false,
497 "autoincrement": false
498 },
499 "expires_at": {
500 "name": "expires_at",
501 "type": "integer",
502 "primaryKey": false,
503 "notNull": false,
504 "autoincrement": false
505 },
506 "last_used_at": {
507 "name": "last_used_at",
508 "type": "integer",
509 "primaryKey": false,
510 "notNull": false,
511 "autoincrement": false
512 },
513 "created_at": {
514 "name": "created_at",
515 "type": "integer",
516 "primaryKey": false,
517 "notNull": true,
518 "autoincrement": false
519 },
520 "updated_at": {
521 "name": "updated_at",
522 "type": "integer",
523 "primaryKey": false,
524 "notNull": true,
525 "autoincrement": false
526 }
527 },
528 "indexes": {
529 "agentHost_userId_idx": {
530 "name": "agentHost_userId_idx",
531 "columns": ["user_id"],
532 "isUnique": false
533 },
534 "agentHost_kid_idx": {
535 "name": "agentHost_kid_idx",
536 "columns": ["kid"],
537 "isUnique": false
538 },
539 "agentHost_enrollmentTokenHash_idx": {
540 "name": "agentHost_enrollmentTokenHash_idx",
541 "columns": ["enrollment_token_hash"],
542 "isUnique": false
543 },
544 "agentHost_status_idx": {
545 "name": "agentHost_status_idx",
546 "columns": ["status"],
547 "isUnique": false
548 }
549 },
550 "foreignKeys": {
551 "agent_host_user_id_user_id_fk": {
552 "name": "agent_host_user_id_user_id_fk",
553 "tableFrom": "agent_host",
554 "tableTo": "user",
555 "columnsFrom": ["user_id"],
556 "columnsTo": ["id"],
557 "onDelete": "cascade",
558 "onUpdate": "no action"
559 }
560 },
561 "compositePrimaryKeys": {},
562 "uniqueConstraints": {},
563 "checkConstraints": {}
564 },
565 "apikey": {
566 "name": "apikey",
567 "columns": {
568 "id": {
569 "name": "id",
570 "type": "text",
571 "primaryKey": true,
572 "notNull": true,
573 "autoincrement": false
574 },
575 "config_id": {
576 "name": "config_id",
577 "type": "text",
578 "primaryKey": false,
579 "notNull": true,
580 "autoincrement": false,
581 "default": "'default'"
582 },
583 "name": {
584 "name": "name",
585 "type": "text",
586 "primaryKey": false,
587 "notNull": false,
588 "autoincrement": false
589 },
590 "start": {
591 "name": "start",
592 "type": "text",
593 "primaryKey": false,
594 "notNull": false,
595 "autoincrement": false
596 },
597 "reference_id": {
598 "name": "reference_id",
599 "type": "text",
600 "primaryKey": false,
601 "notNull": true,
602 "autoincrement": false
603 },
604 "prefix": {
605 "name": "prefix",
606 "type": "text",
607 "primaryKey": false,
608 "notNull": false,
609 "autoincrement": false
610 },
611 "key": {
612 "name": "key",
613 "type": "text",
614 "primaryKey": false,
615 "notNull": true,
616 "autoincrement": false
617 },
618 "refill_interval": {
619 "name": "refill_interval",
620 "type": "integer",
621 "primaryKey": false,
622 "notNull": false,
623 "autoincrement": false
624 },
625 "refill_amount": {
626 "name": "refill_amount",
627 "type": "integer",
628 "primaryKey": false,
629 "notNull": false,
630 "autoincrement": false
631 },
632 "last_refill_at": {
633 "name": "last_refill_at",
634 "type": "integer",
635 "primaryKey": false,
636 "notNull": false,
637 "autoincrement": false
638 },
639 "enabled": {
640 "name": "enabled",
641 "type": "integer",
642 "primaryKey": false,
643 "notNull": false,
644 "autoincrement": false,
645 "default": true
646 },
647 "rate_limit_enabled": {
648 "name": "rate_limit_enabled",
649 "type": "integer",
650 "primaryKey": false,
651 "notNull": false,
652 "autoincrement": false,
653 "default": true
654 },
655 "rate_limit_time_window": {
656 "name": "rate_limit_time_window",
657 "type": "integer",
658 "primaryKey": false,
659 "notNull": false,
660 "autoincrement": false,
661 "default": 86400000
662 },
663 "rate_limit_max": {
664 "name": "rate_limit_max",
665 "type": "integer",
666 "primaryKey": false,
667 "notNull": false,
668 "autoincrement": false,
669 "default": 10
670 },
671 "request_count": {
672 "name": "request_count",
673 "type": "integer",
674 "primaryKey": false,
675 "notNull": false,
676 "autoincrement": false,
677 "default": 0
678 },
679 "remaining": {
680 "name": "remaining",
681 "type": "integer",
682 "primaryKey": false,
683 "notNull": false,
684 "autoincrement": false
685 },
686 "last_request": {
687 "name": "last_request",
688 "type": "integer",
689 "primaryKey": false,
690 "notNull": false,
691 "autoincrement": false
692 },
693 "expires_at": {
694 "name": "expires_at",
695 "type": "integer",
696 "primaryKey": false,
697 "notNull": false,
698 "autoincrement": false
699 },
700 "created_at": {
701 "name": "created_at",
702 "type": "integer",
703 "primaryKey": false,
704 "notNull": true,
705 "autoincrement": false
706 },
707 "updated_at": {
708 "name": "updated_at",
709 "type": "integer",
710 "primaryKey": false,
711 "notNull": true,
712 "autoincrement": false
713 },
714 "permissions": {
715 "name": "permissions",
716 "type": "text",
717 "primaryKey": false,
718 "notNull": false,
719 "autoincrement": false
720 },
721 "metadata": {
722 "name": "metadata",
723 "type": "text",
724 "primaryKey": false,
725 "notNull": false,
726 "autoincrement": false
727 }
728 },
729 "indexes": {
730 "apikey_configId_idx": {
731 "name": "apikey_configId_idx",
732 "columns": ["config_id"],
733 "isUnique": false
734 },
735 "apikey_referenceId_idx": {
736 "name": "apikey_referenceId_idx",
737 "columns": ["reference_id"],
738 "isUnique": false
739 },
740 "apikey_key_idx": {
741 "name": "apikey_key_idx",
742 "columns": ["key"],
743 "isUnique": false
744 }
745 },
746 "foreignKeys": {},
747 "compositePrimaryKeys": {},
748 "uniqueConstraints": {},
749 "checkConstraints": {}
750 },
751 "approval_request": {
752 "name": "approval_request",
753 "columns": {
754 "id": {
755 "name": "id",
756 "type": "text",
757 "primaryKey": true,
758 "notNull": true,
759 "autoincrement": false
760 },
761 "method": {
762 "name": "method",
763 "type": "text",
764 "primaryKey": false,
765 "notNull": true,
766 "autoincrement": false
767 },
768 "agent_id": {
769 "name": "agent_id",
770 "type": "text",
771 "primaryKey": false,
772 "notNull": false,
773 "autoincrement": false
774 },
775 "host_id": {
776 "name": "host_id",
777 "type": "text",
778 "primaryKey": false,
779 "notNull": false,
780 "autoincrement": false
781 },
782 "user_id": {
783 "name": "user_id",
784 "type": "text",
785 "primaryKey": false,
786 "notNull": false,
787 "autoincrement": false
788 },
789 "capabilities": {
790 "name": "capabilities",
791 "type": "text",
792 "primaryKey": false,
793 "notNull": false,
794 "autoincrement": false
795 },
796 "status": {
797 "name": "status",
798 "type": "text",
799 "primaryKey": false,
800 "notNull": true,
801 "autoincrement": false,
802 "default": "'pending'"
803 },
804 "user_code_hash": {
805 "name": "user_code_hash",
806 "type": "text",
807 "primaryKey": false,
808 "notNull": false,
809 "autoincrement": false
810 },
811 "login_hint": {
812 "name": "login_hint",
813 "type": "text",
814 "primaryKey": false,
815 "notNull": false,
816 "autoincrement": false
817 },
818 "binding_message": {
819 "name": "binding_message",
820 "type": "text",
821 "primaryKey": false,
822 "notNull": false,
823 "autoincrement": false
824 },
825 "client_notification_token": {
826 "name": "client_notification_token",
827 "type": "text",
828 "primaryKey": false,
829 "notNull": false,
830 "autoincrement": false
831 },
832 "client_notification_endpoint": {
833 "name": "client_notification_endpoint",
834 "type": "text",
835 "primaryKey": false,
836 "notNull": false,
837 "autoincrement": false
838 },
839 "delivery_mode": {
840 "name": "delivery_mode",
841 "type": "text",
842 "primaryKey": false,
843 "notNull": false,
844 "autoincrement": false
845 },
846 "interval": {
847 "name": "interval",
848 "type": "integer",
849 "primaryKey": false,
850 "notNull": true,
851 "autoincrement": false
852 },
853 "last_polled_at": {
854 "name": "last_polled_at",
855 "type": "integer",
856 "primaryKey": false,
857 "notNull": false,
858 "autoincrement": false
859 },
860 "expires_at": {
861 "name": "expires_at",
862 "type": "integer",
863 "primaryKey": false,
864 "notNull": true,
865 "autoincrement": false
866 },
867 "created_at": {
868 "name": "created_at",
869 "type": "integer",
870 "primaryKey": false,
871 "notNull": true,
872 "autoincrement": false
873 },
874 "updated_at": {
875 "name": "updated_at",
876 "type": "integer",
877 "primaryKey": false,
878 "notNull": true,
879 "autoincrement": false
880 }
881 },
882 "indexes": {
883 "approvalRequest_agentId_idx": {
884 "name": "approvalRequest_agentId_idx",
885 "columns": ["agent_id"],
886 "isUnique": false
887 },
888 "approvalRequest_hostId_idx": {
889 "name": "approvalRequest_hostId_idx",
890 "columns": ["host_id"],
891 "isUnique": false
892 },
893 "approvalRequest_userId_idx": {
894 "name": "approvalRequest_userId_idx",
895 "columns": ["user_id"],
896 "isUnique": false
897 },
898 "approvalRequest_status_idx": {
899 "name": "approvalRequest_status_idx",
900 "columns": ["status"],
901 "isUnique": false
902 }
903 },
904 "foreignKeys": {
905 "approval_request_agent_id_agent_id_fk": {
906 "name": "approval_request_agent_id_agent_id_fk",
907 "tableFrom": "approval_request",
908 "tableTo": "agent",
909 "columnsFrom": ["agent_id"],
910 "columnsTo": ["id"],
911 "onDelete": "cascade",
912 "onUpdate": "no action"
913 },
914 "approval_request_host_id_agent_host_id_fk": {
915 "name": "approval_request_host_id_agent_host_id_fk",
916 "tableFrom": "approval_request",
917 "tableTo": "agent_host",
918 "columnsFrom": ["host_id"],
919 "columnsTo": ["id"],
920 "onDelete": "cascade",
921 "onUpdate": "no action"
922 },
923 "approval_request_user_id_user_id_fk": {
924 "name": "approval_request_user_id_user_id_fk",
925 "tableFrom": "approval_request",
926 "tableTo": "user",
927 "columnsFrom": ["user_id"],
928 "columnsTo": ["id"],
929 "onDelete": "cascade",
930 "onUpdate": "no action"
931 }
932 },
933 "compositePrimaryKeys": {},
934 "uniqueConstraints": {},
935 "checkConstraints": {}
936 },
937 "session": {
938 "name": "session",
939 "columns": {
940 "id": {
941 "name": "id",
942 "type": "text",
943 "primaryKey": true,
944 "notNull": true,
945 "autoincrement": false
946 },
947 "expires_at": {
948 "name": "expires_at",
949 "type": "integer",
950 "primaryKey": false,
951 "notNull": true,
952 "autoincrement": false
953 },
954 "token": {
955 "name": "token",
956 "type": "text",
957 "primaryKey": false,
958 "notNull": true,
959 "autoincrement": false
960 },
961 "created_at": {
962 "name": "created_at",
963 "type": "integer",
964 "primaryKey": false,
965 "notNull": true,
966 "autoincrement": false
967 },
968 "updated_at": {
969 "name": "updated_at",
970 "type": "integer",
971 "primaryKey": false,
972 "notNull": true,
973 "autoincrement": false
974 },
975 "ip_address": {
976 "name": "ip_address",
977 "type": "text",
978 "primaryKey": false,
979 "notNull": false,
980 "autoincrement": false
981 },
982 "user_agent": {
983 "name": "user_agent",
984 "type": "text",
985 "primaryKey": false,
986 "notNull": false,
987 "autoincrement": false
988 },
989 "user_id": {
990 "name": "user_id",
991 "type": "text",
992 "primaryKey": false,
993 "notNull": true,
994 "autoincrement": false
995 }
996 },
997 "indexes": {
998 "session_token_unique": {
999 "name": "session_token_unique",
1000 "columns": ["token"],
1001 "isUnique": true
1002 },
1003 "session_userId_idx": {
1004 "name": "session_userId_idx",
1005 "columns": ["user_id"],
1006 "isUnique": false
1008 },
1009 "foreignKeys": {
1010 "session_user_id_user_id_fk": {
1011 "name": "session_user_id_user_id_fk",
1012 "tableFrom": "session",
1013 "tableTo": "user",
1014 "columnsFrom": ["user_id"],
1015 "columnsTo": ["id"],
1016 "onDelete": "cascade",
1017 "onUpdate": "no action"
1019 },
1020 "compositePrimaryKeys": {},
1021 "uniqueConstraints": {},
1022 "checkConstraints": {}
1023 },
1024 "user": {
1025 "name": "user",
1026 "columns": {
1027 "id": {
1028 "name": "id",
1029 "type": "text",
1030 "primaryKey": true,
1031 "notNull": true,
1032 "autoincrement": false
1033 },
1034 "name": {
1035 "name": "name",
1036 "type": "text",
1037 "primaryKey": false,
1038 "notNull": true,
1039 "autoincrement": false
1040 },
1041 "email": {
1042 "name": "email",
1043 "type": "text",
1044 "primaryKey": false,
1045 "notNull": true,
1046 "autoincrement": false
1047 },
1048 "email_verified": {
1049 "name": "email_verified",
1050 "type": "integer",
1051 "primaryKey": false,
1052 "notNull": true,
1053 "autoincrement": false,
1054 "default": false
1055 },
1056 "image": {
1057 "name": "image",
1058 "type": "text",
1059 "primaryKey": false,
1060 "notNull": false,
1061 "autoincrement": false
1062 },
1063 "created_at": {
1064 "name": "created_at",
1065 "type": "integer",
1066 "primaryKey": false,
1067 "notNull": true,
1068 "autoincrement": false
1069 },
1070 "updated_at": {
1071 "name": "updated_at",
1072 "type": "integer",
1073 "primaryKey": false,
1074 "notNull": true,
1075 "autoincrement": false
1077 },
1078 "indexes": {
1079 "user_email_unique": {
1080 "name": "user_email_unique",
1081 "columns": ["email"],
1082 "isUnique": true
1084 },
1085 "foreignKeys": {},
1086 "compositePrimaryKeys": {},
1087 "uniqueConstraints": {},
1088 "checkConstraints": {}
1089 },
1090 "verification": {
1091 "name": "verification",
1092 "columns": {
1093 "id": {
1094 "name": "id",
1095 "type": "text",
1096 "primaryKey": true,
1097 "notNull": true,
1098 "autoincrement": false
1099 },
1100 "identifier": {
1101 "name": "identifier",
1102 "type": "text",
1103 "primaryKey": false,
1104 "notNull": true,
1105 "autoincrement": false
1106 },
1107 "value": {
1108 "name": "value",
1109 "type": "text",
1110 "primaryKey": false,
1111 "notNull": true,
1112 "autoincrement": false
1113 },
1114 "expires_at": {
1115 "name": "expires_at",
1116 "type": "integer",
1117 "primaryKey": false,
1118 "notNull": true,
1119 "autoincrement": false
1120 },
1121 "created_at": {
1122 "name": "created_at",
1123 "type": "integer",
1124 "primaryKey": false,
1125 "notNull": true,
1126 "autoincrement": false
1127 },
1128 "updated_at": {
1129 "name": "updated_at",
1130 "type": "integer",
1131 "primaryKey": false,
1132 "notNull": true,
1133 "autoincrement": false
1135 },
1136 "indexes": {
1137 "verification_identifier_idx": {
1138 "name": "verification_identifier_idx",
1139 "columns": ["identifier"],
1140 "isUnique": false
1142 },
1143 "foreignKeys": {},
1144 "compositePrimaryKeys": {},
1145 "uniqueConstraints": {},
1146 "checkConstraints": {}
1148 },
1149 "views": {},
1150 "enums": {},
1151 "_meta": {
1152 "schemas": {},
1153 "tables": {},
1154 "columns": {}
1155 },
1156 "internal": {
1157 "indexes": {}