@@ -0,0 +1,201 @@
1+{
2+ "id": "c37d31a9-377e-41df-be95-832686d4978c",
3+ "prevId": "ca5189e9-3478-4d36-8016-f20ddea2c568",
4+ "version": "7",
5+ "dialect": "postgresql",
6+ "tables": {
7+ "public.document_chunks": {
8+ "name": "document_chunks",
9+ "schema": "",
10+ "columns": {
11+ "id": {
12+ "name": "id",
13+ "type": "serial",
14+ "primaryKey": true,
15+ "notNull": true
16+ },
17+ "content": {
18+ "name": "content",
19+ "type": "text",
20+ "primaryKey": false,
21+ "notNull": true
22+ },
23+ "embedding": {
24+ "name": "embedding",
25+ "type": "vector(768)",
26+ "primaryKey": false,
27+ "notNull": false
28+ },
29+ "metadata": {
30+ "name": "metadata",
31+ "type": "jsonb",
32+ "primaryKey": false,
33+ "notNull": false
34+ },
35+ "created_at": {
36+ "name": "created_at",
37+ "type": "timestamp with time zone",
38+ "primaryKey": false,
39+ "notNull": true,
40+ "default": "now()"
41+ }
42+ },
43+ "indexes": {
44+ "embeddingIndex": {
45+ "name": "embeddingIndex",
46+ "columns": [
47+ {
48+ "expression": "embedding",
49+ "isExpression": false,
50+ "asc": true,
51+ "nulls": "last",
52+ "opclass": "vector_cosine_ops"
53+ }
54+ ],
55+ "isUnique": false,
56+ "concurrently": false,
57+ "method": "hnsw",
58+ "with": {}
59+ }
60+ },
61+ "foreignKeys": {},
62+ "compositePrimaryKeys": {},
63+ "uniqueConstraints": {},
64+ "policies": {},
65+ "checkConstraints": {},
66+ "isRLSEnabled": false
67+ },
68+ "public.messages": {
69+ "name": "messages",
70+ "schema": "",
71+ "columns": {
72+ "id": {
73+ "name": "id",
74+ "type": "serial",
75+ "primaryKey": true,
76+ "notNull": true
77+ },
78+ "thread_id": {
79+ "name": "thread_id",
80+ "type": "integer",
81+ "primaryKey": false,
82+ "notNull": true
83+ },
84+ "role": {
85+ "name": "role",
86+ "type": "text",
87+ "primaryKey": false,
88+ "notNull": true
89+ },
90+ "content": {
91+ "name": "content",
92+ "type": "text",
93+ "primaryKey": false,
94+ "notNull": true
95+ },
96+ "thinking": {
97+ "name": "thinking",
98+ "type": "text",
99+ "primaryKey": false,
100+ "notNull": false
101+ },
102+ "created_at": {
103+ "name": "created_at",
104+ "type": "timestamp with time zone",
105+ "primaryKey": false,
106+ "notNull": true,
107+ "default": "now()"
108+ }
109+ },
110+ "indexes": {},
111+ "foreignKeys": {
112+ "messages_thread_id_threads_id_fk": {
113+ "name": "messages_thread_id_threads_id_fk",
114+ "tableFrom": "messages",
115+ "tableTo": "threads",
116+ "columnsFrom": [
117+ "thread_id"
118+ ],
119+ "columnsTo": [
120+ "id"
121+ ],
122+ "onDelete": "cascade",
123+ "onUpdate": "no action"
124+ }
125+ },
126+ "compositePrimaryKeys": {},
127+ "uniqueConstraints": {},
128+ "policies": {},
129+ "checkConstraints": {},
130+ "isRLSEnabled": false
131+ },
132+ "public.threads": {
133+ "name": "threads",
134+ "schema": "",
135+ "columns": {
136+ "id": {
137+ "name": "id",
138+ "type": "serial",
139+ "primaryKey": true,
140+ "notNull": true
141+ },
142+ "title": {
143+ "name": "title",
144+ "type": "text",
145+ "primaryKey": false,
146+ "notNull": false
147+ },
148+ "model": {
149+ "name": "model",
150+ "type": "text",
151+ "primaryKey": false,
152+ "notNull": true
153+ },
154+ "max_prompt_length": {
155+ "name": "max_prompt_length",
156+ "type": "integer",
157+ "primaryKey": false,
158+ "notNull": false
159+ },
160+ "user_prompt": {
161+ "name": "user_prompt",
162+ "type": "text",
163+ "primaryKey": false,
164+ "notNull": false
165+ },
166+ "created_at": {
167+ "name": "created_at",
168+ "type": "timestamp with time zone",
169+ "primaryKey": false,
170+ "notNull": true,
171+ "default": "now()"
172+ },
173+ "updated_at": {
174+ "name": "updated_at",
175+ "type": "timestamp with time zone",
176+ "primaryKey": false,
177+ "notNull": true,
178+ "default": "now()"
179+ }
180+ },
181+ "indexes": {},
182+ "foreignKeys": {},
183+ "compositePrimaryKeys": {},
184+ "uniqueConstraints": {},
185+ "policies": {},
186+ "checkConstraints": {},
187+ "isRLSEnabled": false
188+ }
189+ },
190+ "enums": {},
191+ "schemas": {},
192+ "sequences": {},
193+ "roles": {},
194+ "policies": {},
195+ "views": {},
196+ "_meta": {
197+ "columns": {},
198+ "schemas": {},
199+ "tables": {}
200+ }
201+}