@@ -0,0 +1,115 @@
1+{
2+ "version": "6",
3+ "dialect": "sqlite",
4+ "id": "f2f09444-b0be-4fd4-bc43-aeb9a6479eab",
5+ "prevId": "00000000-0000-0000-0000-000000000000",
6+ "tables": {
7+ "messages": {
8+ "name": "messages",
9+ "columns": {
10+ "id": {
11+ "name": "id",
12+ "type": "integer",
13+ "primaryKey": true,
14+ "notNull": true,
15+ "autoincrement": true
16+ },
17+ "thread_id": {
18+ "name": "thread_id",
19+ "type": "integer",
20+ "primaryKey": false,
21+ "notNull": true,
22+ "autoincrement": false
23+ },
24+ "role": {
25+ "name": "role",
26+ "type": "text",
27+ "primaryKey": false,
28+ "notNull": true,
29+ "autoincrement": false
30+ },
31+ "content": {
32+ "name": "content",
33+ "type": "text",
34+ "primaryKey": false,
35+ "notNull": true,
36+ "autoincrement": false
37+ },
38+ "created_at": {
39+ "name": "created_at",
40+ "type": "integer",
41+ "primaryKey": false,
42+ "notNull": true,
43+ "autoincrement": false
44+ }
45+ },
46+ "indexes": {},
47+ "foreignKeys": {
48+ "messages_thread_id_threads_id_fk": {
49+ "name": "messages_thread_id_threads_id_fk",
50+ "tableFrom": "messages",
51+ "tableTo": "threads",
52+ "columnsFrom": [
53+ "thread_id"
54+ ],
55+ "columnsTo": [
56+ "id"
57+ ],
58+ "onDelete": "cascade",
59+ "onUpdate": "no action"
60+ }
61+ },
62+ "compositePrimaryKeys": {},
63+ "uniqueConstraints": {},
64+ "checkConstraints": {}
65+ },
66+ "threads": {
67+ "name": "threads",
68+ "columns": {
69+ "id": {
70+ "name": "id",
71+ "type": "integer",
72+ "primaryKey": true,
73+ "notNull": true,
74+ "autoincrement": true
75+ },
76+ "title": {
77+ "name": "title",
78+ "type": "text",
79+ "primaryKey": false,
80+ "notNull": false,
81+ "autoincrement": false
82+ },
83+ "created_at": {
84+ "name": "created_at",
85+ "type": "integer",
86+ "primaryKey": false,
87+ "notNull": true,
88+ "autoincrement": false
89+ },
90+ "updated_at": {
91+ "name": "updated_at",
92+ "type": "integer",
93+ "primaryKey": false,
94+ "notNull": true,
95+ "autoincrement": false
96+ }
97+ },
98+ "indexes": {},
99+ "foreignKeys": {},
100+ "compositePrimaryKeys": {},
101+ "uniqueConstraints": {},
102+ "checkConstraints": {}
103+ }
104+ },
105+ "views": {},
106+ "enums": {},
107+ "_meta": {
108+ "schemas": {},
109+ "tables": {},
110+ "columns": {}
111+ },
112+ "internal": {
113+ "indexes": {}
114+ }
115+}