nao-core 0.0.38__py3-none-manylinux2014_aarch64.whl
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.
- nao_core/__init__.py +2 -0
- nao_core/__init__.py.bak +2 -0
- nao_core/bin/build-info.json +5 -0
- nao_core/bin/fastapi/main.py +268 -0
- nao_core/bin/fastapi/test_main.py +156 -0
- nao_core/bin/migrations-postgres/0000_user_auth_and_chat_tables.sql +98 -0
- nao_core/bin/migrations-postgres/0001_message_feedback.sql +9 -0
- nao_core/bin/migrations-postgres/0002_chat_message_stop_reason_and_error_message.sql +2 -0
- nao_core/bin/migrations-postgres/0003_handle_slack_with_thread.sql +2 -0
- nao_core/bin/migrations-postgres/0004_input_and_output_tokens.sql +8 -0
- nao_core/bin/migrations-postgres/0005_add_project_tables.sql +39 -0
- nao_core/bin/migrations-postgres/0006_llm_model_ids.sql +4 -0
- nao_core/bin/migrations-postgres/0007_chat_message_llm_info.sql +2 -0
- nao_core/bin/migrations-postgres/meta/0000_snapshot.json +707 -0
- nao_core/bin/migrations-postgres/meta/0001_snapshot.json +766 -0
- nao_core/bin/migrations-postgres/meta/0002_snapshot.json +778 -0
- nao_core/bin/migrations-postgres/meta/0003_snapshot.json +799 -0
- nao_core/bin/migrations-postgres/meta/0004_snapshot.json +847 -0
- nao_core/bin/migrations-postgres/meta/0005_snapshot.json +1129 -0
- nao_core/bin/migrations-postgres/meta/0006_snapshot.json +1141 -0
- nao_core/bin/migrations-postgres/meta/_journal.json +62 -0
- nao_core/bin/migrations-sqlite/0000_user_auth_and_chat_tables.sql +98 -0
- nao_core/bin/migrations-sqlite/0001_message_feedback.sql +8 -0
- nao_core/bin/migrations-sqlite/0002_chat_message_stop_reason_and_error_message.sql +2 -0
- nao_core/bin/migrations-sqlite/0003_handle_slack_with_thread.sql +2 -0
- nao_core/bin/migrations-sqlite/0004_input_and_output_tokens.sql +8 -0
- nao_core/bin/migrations-sqlite/0005_add_project_tables.sql +38 -0
- nao_core/bin/migrations-sqlite/0006_llm_model_ids.sql +4 -0
- nao_core/bin/migrations-sqlite/0007_chat_message_llm_info.sql +2 -0
- nao_core/bin/migrations-sqlite/meta/0000_snapshot.json +674 -0
- nao_core/bin/migrations-sqlite/meta/0001_snapshot.json +735 -0
- nao_core/bin/migrations-sqlite/meta/0002_snapshot.json +749 -0
- nao_core/bin/migrations-sqlite/meta/0003_snapshot.json +763 -0
- nao_core/bin/migrations-sqlite/meta/0004_snapshot.json +819 -0
- nao_core/bin/migrations-sqlite/meta/0005_snapshot.json +1086 -0
- nao_core/bin/migrations-sqlite/meta/0006_snapshot.json +1100 -0
- nao_core/bin/migrations-sqlite/meta/_journal.json +62 -0
- nao_core/bin/nao-chat-server +0 -0
- nao_core/bin/public/assets/code-block-F6WJLWQG-CV0uOmNJ.js +153 -0
- nao_core/bin/public/assets/index-DcbndLHo.css +1 -0
- nao_core/bin/public/assets/index-t1hZI3nl.js +560 -0
- nao_core/bin/public/favicon.ico +0 -0
- nao_core/bin/public/index.html +18 -0
- nao_core/bin/rg +0 -0
- nao_core/commands/__init__.py +6 -0
- nao_core/commands/chat.py +225 -0
- nao_core/commands/debug.py +158 -0
- nao_core/commands/init.py +358 -0
- nao_core/commands/sync/__init__.py +124 -0
- nao_core/commands/sync/accessors.py +290 -0
- nao_core/commands/sync/cleanup.py +156 -0
- nao_core/commands/sync/providers/__init__.py +32 -0
- nao_core/commands/sync/providers/base.py +113 -0
- nao_core/commands/sync/providers/databases/__init__.py +17 -0
- nao_core/commands/sync/providers/databases/bigquery.py +79 -0
- nao_core/commands/sync/providers/databases/databricks.py +79 -0
- nao_core/commands/sync/providers/databases/duckdb.py +78 -0
- nao_core/commands/sync/providers/databases/postgres.py +79 -0
- nao_core/commands/sync/providers/databases/provider.py +129 -0
- nao_core/commands/sync/providers/databases/snowflake.py +79 -0
- nao_core/commands/sync/providers/notion/__init__.py +5 -0
- nao_core/commands/sync/providers/notion/provider.py +205 -0
- nao_core/commands/sync/providers/repositories/__init__.py +5 -0
- nao_core/commands/sync/providers/repositories/provider.py +134 -0
- nao_core/commands/sync/registry.py +23 -0
- nao_core/config/__init__.py +30 -0
- nao_core/config/base.py +100 -0
- nao_core/config/databases/__init__.py +55 -0
- nao_core/config/databases/base.py +85 -0
- nao_core/config/databases/bigquery.py +99 -0
- nao_core/config/databases/databricks.py +79 -0
- nao_core/config/databases/duckdb.py +41 -0
- nao_core/config/databases/postgres.py +83 -0
- nao_core/config/databases/snowflake.py +125 -0
- nao_core/config/exceptions.py +7 -0
- nao_core/config/llm/__init__.py +19 -0
- nao_core/config/notion/__init__.py +8 -0
- nao_core/config/repos/__init__.py +3 -0
- nao_core/config/repos/base.py +11 -0
- nao_core/config/slack/__init__.py +12 -0
- nao_core/context/__init__.py +54 -0
- nao_core/context/base.py +57 -0
- nao_core/context/git.py +177 -0
- nao_core/context/local.py +59 -0
- nao_core/main.py +13 -0
- nao_core/templates/__init__.py +41 -0
- nao_core/templates/context.py +193 -0
- nao_core/templates/defaults/databases/columns.md.j2 +23 -0
- nao_core/templates/defaults/databases/description.md.j2 +32 -0
- nao_core/templates/defaults/databases/preview.md.j2 +22 -0
- nao_core/templates/defaults/databases/profiling.md.j2 +34 -0
- nao_core/templates/engine.py +133 -0
- nao_core/templates/render.py +196 -0
- nao_core-0.0.38.dist-info/METADATA +150 -0
- nao_core-0.0.38.dist-info/RECORD +98 -0
- nao_core-0.0.38.dist-info/WHEEL +4 -0
- nao_core-0.0.38.dist-info/entry_points.txt +2 -0
- nao_core-0.0.38.dist-info/licenses/LICENSE +22 -0
|
@@ -0,0 +1,1086 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "6",
|
|
3
|
+
"dialect": "sqlite",
|
|
4
|
+
"id": "9a72d9d3-ea5e-4554-8ee7-035b095b41d3",
|
|
5
|
+
"prevId": "8583309a-ef40-453d-9478-43e01efe86b0",
|
|
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
|
+
"default": "(cast(unixepoch('subsecond') * 1000 as integer))"
|
|
94
|
+
},
|
|
95
|
+
"updated_at": {
|
|
96
|
+
"name": "updated_at",
|
|
97
|
+
"type": "integer",
|
|
98
|
+
"primaryKey": false,
|
|
99
|
+
"notNull": true,
|
|
100
|
+
"autoincrement": false
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"indexes": {
|
|
104
|
+
"account_userId_idx": {
|
|
105
|
+
"name": "account_userId_idx",
|
|
106
|
+
"columns": [
|
|
107
|
+
"user_id"
|
|
108
|
+
],
|
|
109
|
+
"isUnique": false
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"foreignKeys": {
|
|
113
|
+
"account_user_id_user_id_fk": {
|
|
114
|
+
"name": "account_user_id_user_id_fk",
|
|
115
|
+
"tableFrom": "account",
|
|
116
|
+
"tableTo": "user",
|
|
117
|
+
"columnsFrom": [
|
|
118
|
+
"user_id"
|
|
119
|
+
],
|
|
120
|
+
"columnsTo": [
|
|
121
|
+
"id"
|
|
122
|
+
],
|
|
123
|
+
"onDelete": "cascade",
|
|
124
|
+
"onUpdate": "no action"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"compositePrimaryKeys": {},
|
|
128
|
+
"uniqueConstraints": {},
|
|
129
|
+
"checkConstraints": {}
|
|
130
|
+
},
|
|
131
|
+
"chat": {
|
|
132
|
+
"name": "chat",
|
|
133
|
+
"columns": {
|
|
134
|
+
"id": {
|
|
135
|
+
"name": "id",
|
|
136
|
+
"type": "text",
|
|
137
|
+
"primaryKey": true,
|
|
138
|
+
"notNull": true,
|
|
139
|
+
"autoincrement": false
|
|
140
|
+
},
|
|
141
|
+
"user_id": {
|
|
142
|
+
"name": "user_id",
|
|
143
|
+
"type": "text",
|
|
144
|
+
"primaryKey": false,
|
|
145
|
+
"notNull": true,
|
|
146
|
+
"autoincrement": false
|
|
147
|
+
},
|
|
148
|
+
"project_id": {
|
|
149
|
+
"name": "project_id",
|
|
150
|
+
"type": "text",
|
|
151
|
+
"primaryKey": false,
|
|
152
|
+
"notNull": true,
|
|
153
|
+
"autoincrement": false
|
|
154
|
+
},
|
|
155
|
+
"title": {
|
|
156
|
+
"name": "title",
|
|
157
|
+
"type": "text",
|
|
158
|
+
"primaryKey": false,
|
|
159
|
+
"notNull": true,
|
|
160
|
+
"autoincrement": false,
|
|
161
|
+
"default": "'New Conversation'"
|
|
162
|
+
},
|
|
163
|
+
"slack_thread_id": {
|
|
164
|
+
"name": "slack_thread_id",
|
|
165
|
+
"type": "text",
|
|
166
|
+
"primaryKey": false,
|
|
167
|
+
"notNull": false,
|
|
168
|
+
"autoincrement": false
|
|
169
|
+
},
|
|
170
|
+
"created_at": {
|
|
171
|
+
"name": "created_at",
|
|
172
|
+
"type": "integer",
|
|
173
|
+
"primaryKey": false,
|
|
174
|
+
"notNull": true,
|
|
175
|
+
"autoincrement": false,
|
|
176
|
+
"default": "(cast(unixepoch('subsecond') * 1000 as integer))"
|
|
177
|
+
},
|
|
178
|
+
"updated_at": {
|
|
179
|
+
"name": "updated_at",
|
|
180
|
+
"type": "integer",
|
|
181
|
+
"primaryKey": false,
|
|
182
|
+
"notNull": true,
|
|
183
|
+
"autoincrement": false,
|
|
184
|
+
"default": "(cast(unixepoch('subsecond') * 1000 as integer))"
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
"indexes": {
|
|
188
|
+
"chat_userId_idx": {
|
|
189
|
+
"name": "chat_userId_idx",
|
|
190
|
+
"columns": [
|
|
191
|
+
"user_id"
|
|
192
|
+
],
|
|
193
|
+
"isUnique": false
|
|
194
|
+
},
|
|
195
|
+
"chat_projectId_idx": {
|
|
196
|
+
"name": "chat_projectId_idx",
|
|
197
|
+
"columns": [
|
|
198
|
+
"project_id"
|
|
199
|
+
],
|
|
200
|
+
"isUnique": false
|
|
201
|
+
},
|
|
202
|
+
"chat_slack_thread_idx": {
|
|
203
|
+
"name": "chat_slack_thread_idx",
|
|
204
|
+
"columns": [
|
|
205
|
+
"slack_thread_id"
|
|
206
|
+
],
|
|
207
|
+
"isUnique": false
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
"foreignKeys": {
|
|
211
|
+
"chat_user_id_user_id_fk": {
|
|
212
|
+
"name": "chat_user_id_user_id_fk",
|
|
213
|
+
"tableFrom": "chat",
|
|
214
|
+
"tableTo": "user",
|
|
215
|
+
"columnsFrom": [
|
|
216
|
+
"user_id"
|
|
217
|
+
],
|
|
218
|
+
"columnsTo": [
|
|
219
|
+
"id"
|
|
220
|
+
],
|
|
221
|
+
"onDelete": "cascade",
|
|
222
|
+
"onUpdate": "no action"
|
|
223
|
+
},
|
|
224
|
+
"chat_project_id_project_id_fk": {
|
|
225
|
+
"name": "chat_project_id_project_id_fk",
|
|
226
|
+
"tableFrom": "chat",
|
|
227
|
+
"tableTo": "project",
|
|
228
|
+
"columnsFrom": [
|
|
229
|
+
"project_id"
|
|
230
|
+
],
|
|
231
|
+
"columnsTo": [
|
|
232
|
+
"id"
|
|
233
|
+
],
|
|
234
|
+
"onDelete": "cascade",
|
|
235
|
+
"onUpdate": "no action"
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
"compositePrimaryKeys": {},
|
|
239
|
+
"uniqueConstraints": {},
|
|
240
|
+
"checkConstraints": {}
|
|
241
|
+
},
|
|
242
|
+
"chat_message": {
|
|
243
|
+
"name": "chat_message",
|
|
244
|
+
"columns": {
|
|
245
|
+
"id": {
|
|
246
|
+
"name": "id",
|
|
247
|
+
"type": "text",
|
|
248
|
+
"primaryKey": true,
|
|
249
|
+
"notNull": true,
|
|
250
|
+
"autoincrement": false
|
|
251
|
+
},
|
|
252
|
+
"chat_id": {
|
|
253
|
+
"name": "chat_id",
|
|
254
|
+
"type": "text",
|
|
255
|
+
"primaryKey": false,
|
|
256
|
+
"notNull": true,
|
|
257
|
+
"autoincrement": false
|
|
258
|
+
},
|
|
259
|
+
"role": {
|
|
260
|
+
"name": "role",
|
|
261
|
+
"type": "text",
|
|
262
|
+
"primaryKey": false,
|
|
263
|
+
"notNull": true,
|
|
264
|
+
"autoincrement": false
|
|
265
|
+
},
|
|
266
|
+
"stop_reason": {
|
|
267
|
+
"name": "stop_reason",
|
|
268
|
+
"type": "text",
|
|
269
|
+
"primaryKey": false,
|
|
270
|
+
"notNull": false,
|
|
271
|
+
"autoincrement": false
|
|
272
|
+
},
|
|
273
|
+
"error_message": {
|
|
274
|
+
"name": "error_message",
|
|
275
|
+
"type": "text",
|
|
276
|
+
"primaryKey": false,
|
|
277
|
+
"notNull": false,
|
|
278
|
+
"autoincrement": false
|
|
279
|
+
},
|
|
280
|
+
"created_at": {
|
|
281
|
+
"name": "created_at",
|
|
282
|
+
"type": "integer",
|
|
283
|
+
"primaryKey": false,
|
|
284
|
+
"notNull": true,
|
|
285
|
+
"autoincrement": false,
|
|
286
|
+
"default": "(cast(unixepoch('subsecond') * 1000 as integer))"
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
"indexes": {
|
|
290
|
+
"chat_message_chatId_idx": {
|
|
291
|
+
"name": "chat_message_chatId_idx",
|
|
292
|
+
"columns": [
|
|
293
|
+
"chat_id"
|
|
294
|
+
],
|
|
295
|
+
"isUnique": false
|
|
296
|
+
},
|
|
297
|
+
"chat_message_createdAt_idx": {
|
|
298
|
+
"name": "chat_message_createdAt_idx",
|
|
299
|
+
"columns": [
|
|
300
|
+
"created_at"
|
|
301
|
+
],
|
|
302
|
+
"isUnique": false
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
"foreignKeys": {
|
|
306
|
+
"chat_message_chat_id_chat_id_fk": {
|
|
307
|
+
"name": "chat_message_chat_id_chat_id_fk",
|
|
308
|
+
"tableFrom": "chat_message",
|
|
309
|
+
"tableTo": "chat",
|
|
310
|
+
"columnsFrom": [
|
|
311
|
+
"chat_id"
|
|
312
|
+
],
|
|
313
|
+
"columnsTo": [
|
|
314
|
+
"id"
|
|
315
|
+
],
|
|
316
|
+
"onDelete": "cascade",
|
|
317
|
+
"onUpdate": "no action"
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
"compositePrimaryKeys": {},
|
|
321
|
+
"uniqueConstraints": {},
|
|
322
|
+
"checkConstraints": {}
|
|
323
|
+
},
|
|
324
|
+
"message_feedback": {
|
|
325
|
+
"name": "message_feedback",
|
|
326
|
+
"columns": {
|
|
327
|
+
"message_id": {
|
|
328
|
+
"name": "message_id",
|
|
329
|
+
"type": "text",
|
|
330
|
+
"primaryKey": true,
|
|
331
|
+
"notNull": true,
|
|
332
|
+
"autoincrement": false
|
|
333
|
+
},
|
|
334
|
+
"vote": {
|
|
335
|
+
"name": "vote",
|
|
336
|
+
"type": "text",
|
|
337
|
+
"primaryKey": false,
|
|
338
|
+
"notNull": true,
|
|
339
|
+
"autoincrement": false
|
|
340
|
+
},
|
|
341
|
+
"explanation": {
|
|
342
|
+
"name": "explanation",
|
|
343
|
+
"type": "text",
|
|
344
|
+
"primaryKey": false,
|
|
345
|
+
"notNull": false,
|
|
346
|
+
"autoincrement": false
|
|
347
|
+
},
|
|
348
|
+
"created_at": {
|
|
349
|
+
"name": "created_at",
|
|
350
|
+
"type": "integer",
|
|
351
|
+
"primaryKey": false,
|
|
352
|
+
"notNull": true,
|
|
353
|
+
"autoincrement": false,
|
|
354
|
+
"default": "(cast(unixepoch('subsecond') * 1000 as integer))"
|
|
355
|
+
},
|
|
356
|
+
"updated_at": {
|
|
357
|
+
"name": "updated_at",
|
|
358
|
+
"type": "integer",
|
|
359
|
+
"primaryKey": false,
|
|
360
|
+
"notNull": true,
|
|
361
|
+
"autoincrement": false,
|
|
362
|
+
"default": "(cast(unixepoch('subsecond') * 1000 as integer))"
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
"indexes": {},
|
|
366
|
+
"foreignKeys": {
|
|
367
|
+
"message_feedback_message_id_chat_message_id_fk": {
|
|
368
|
+
"name": "message_feedback_message_id_chat_message_id_fk",
|
|
369
|
+
"tableFrom": "message_feedback",
|
|
370
|
+
"tableTo": "chat_message",
|
|
371
|
+
"columnsFrom": [
|
|
372
|
+
"message_id"
|
|
373
|
+
],
|
|
374
|
+
"columnsTo": [
|
|
375
|
+
"id"
|
|
376
|
+
],
|
|
377
|
+
"onDelete": "cascade",
|
|
378
|
+
"onUpdate": "no action"
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
"compositePrimaryKeys": {},
|
|
382
|
+
"uniqueConstraints": {},
|
|
383
|
+
"checkConstraints": {}
|
|
384
|
+
},
|
|
385
|
+
"message_part": {
|
|
386
|
+
"name": "message_part",
|
|
387
|
+
"columns": {
|
|
388
|
+
"id": {
|
|
389
|
+
"name": "id",
|
|
390
|
+
"type": "text",
|
|
391
|
+
"primaryKey": true,
|
|
392
|
+
"notNull": true,
|
|
393
|
+
"autoincrement": false
|
|
394
|
+
},
|
|
395
|
+
"message_id": {
|
|
396
|
+
"name": "message_id",
|
|
397
|
+
"type": "text",
|
|
398
|
+
"primaryKey": false,
|
|
399
|
+
"notNull": true,
|
|
400
|
+
"autoincrement": false
|
|
401
|
+
},
|
|
402
|
+
"order": {
|
|
403
|
+
"name": "order",
|
|
404
|
+
"type": "integer",
|
|
405
|
+
"primaryKey": false,
|
|
406
|
+
"notNull": true,
|
|
407
|
+
"autoincrement": false
|
|
408
|
+
},
|
|
409
|
+
"created_at": {
|
|
410
|
+
"name": "created_at",
|
|
411
|
+
"type": "integer",
|
|
412
|
+
"primaryKey": false,
|
|
413
|
+
"notNull": true,
|
|
414
|
+
"autoincrement": false,
|
|
415
|
+
"default": "(cast(unixepoch('subsecond') * 1000 as integer))"
|
|
416
|
+
},
|
|
417
|
+
"type": {
|
|
418
|
+
"name": "type",
|
|
419
|
+
"type": "text",
|
|
420
|
+
"primaryKey": false,
|
|
421
|
+
"notNull": true,
|
|
422
|
+
"autoincrement": false
|
|
423
|
+
},
|
|
424
|
+
"text": {
|
|
425
|
+
"name": "text",
|
|
426
|
+
"type": "text",
|
|
427
|
+
"primaryKey": false,
|
|
428
|
+
"notNull": false,
|
|
429
|
+
"autoincrement": false
|
|
430
|
+
},
|
|
431
|
+
"reasoning_text": {
|
|
432
|
+
"name": "reasoning_text",
|
|
433
|
+
"type": "text",
|
|
434
|
+
"primaryKey": false,
|
|
435
|
+
"notNull": false,
|
|
436
|
+
"autoincrement": false
|
|
437
|
+
},
|
|
438
|
+
"input_total_tokens": {
|
|
439
|
+
"name": "input_total_tokens",
|
|
440
|
+
"type": "integer",
|
|
441
|
+
"primaryKey": false,
|
|
442
|
+
"notNull": false,
|
|
443
|
+
"autoincrement": false
|
|
444
|
+
},
|
|
445
|
+
"input_no_cache_tokens": {
|
|
446
|
+
"name": "input_no_cache_tokens",
|
|
447
|
+
"type": "integer",
|
|
448
|
+
"primaryKey": false,
|
|
449
|
+
"notNull": false,
|
|
450
|
+
"autoincrement": false
|
|
451
|
+
},
|
|
452
|
+
"input_cache_read_tokens": {
|
|
453
|
+
"name": "input_cache_read_tokens",
|
|
454
|
+
"type": "integer",
|
|
455
|
+
"primaryKey": false,
|
|
456
|
+
"notNull": false,
|
|
457
|
+
"autoincrement": false
|
|
458
|
+
},
|
|
459
|
+
"input_cache_write_tokens": {
|
|
460
|
+
"name": "input_cache_write_tokens",
|
|
461
|
+
"type": "integer",
|
|
462
|
+
"primaryKey": false,
|
|
463
|
+
"notNull": false,
|
|
464
|
+
"autoincrement": false
|
|
465
|
+
},
|
|
466
|
+
"output_total_tokens": {
|
|
467
|
+
"name": "output_total_tokens",
|
|
468
|
+
"type": "integer",
|
|
469
|
+
"primaryKey": false,
|
|
470
|
+
"notNull": false,
|
|
471
|
+
"autoincrement": false
|
|
472
|
+
},
|
|
473
|
+
"output_text_tokens": {
|
|
474
|
+
"name": "output_text_tokens",
|
|
475
|
+
"type": "integer",
|
|
476
|
+
"primaryKey": false,
|
|
477
|
+
"notNull": false,
|
|
478
|
+
"autoincrement": false
|
|
479
|
+
},
|
|
480
|
+
"output_reasoning_tokens": {
|
|
481
|
+
"name": "output_reasoning_tokens",
|
|
482
|
+
"type": "integer",
|
|
483
|
+
"primaryKey": false,
|
|
484
|
+
"notNull": false,
|
|
485
|
+
"autoincrement": false
|
|
486
|
+
},
|
|
487
|
+
"total_tokens": {
|
|
488
|
+
"name": "total_tokens",
|
|
489
|
+
"type": "integer",
|
|
490
|
+
"primaryKey": false,
|
|
491
|
+
"notNull": false,
|
|
492
|
+
"autoincrement": false
|
|
493
|
+
},
|
|
494
|
+
"tool_call_id": {
|
|
495
|
+
"name": "tool_call_id",
|
|
496
|
+
"type": "text",
|
|
497
|
+
"primaryKey": false,
|
|
498
|
+
"notNull": false,
|
|
499
|
+
"autoincrement": false
|
|
500
|
+
},
|
|
501
|
+
"tool_name": {
|
|
502
|
+
"name": "tool_name",
|
|
503
|
+
"type": "text",
|
|
504
|
+
"primaryKey": false,
|
|
505
|
+
"notNull": false,
|
|
506
|
+
"autoincrement": false
|
|
507
|
+
},
|
|
508
|
+
"tool_state": {
|
|
509
|
+
"name": "tool_state",
|
|
510
|
+
"type": "text",
|
|
511
|
+
"primaryKey": false,
|
|
512
|
+
"notNull": false,
|
|
513
|
+
"autoincrement": false
|
|
514
|
+
},
|
|
515
|
+
"tool_error_text": {
|
|
516
|
+
"name": "tool_error_text",
|
|
517
|
+
"type": "text",
|
|
518
|
+
"primaryKey": false,
|
|
519
|
+
"notNull": false,
|
|
520
|
+
"autoincrement": false
|
|
521
|
+
},
|
|
522
|
+
"tool_input": {
|
|
523
|
+
"name": "tool_input",
|
|
524
|
+
"type": "text",
|
|
525
|
+
"primaryKey": false,
|
|
526
|
+
"notNull": false,
|
|
527
|
+
"autoincrement": false
|
|
528
|
+
},
|
|
529
|
+
"tool_output": {
|
|
530
|
+
"name": "tool_output",
|
|
531
|
+
"type": "text",
|
|
532
|
+
"primaryKey": false,
|
|
533
|
+
"notNull": false,
|
|
534
|
+
"autoincrement": false
|
|
535
|
+
},
|
|
536
|
+
"tool_approval_id": {
|
|
537
|
+
"name": "tool_approval_id",
|
|
538
|
+
"type": "text",
|
|
539
|
+
"primaryKey": false,
|
|
540
|
+
"notNull": false,
|
|
541
|
+
"autoincrement": false
|
|
542
|
+
},
|
|
543
|
+
"tool_approval_approved": {
|
|
544
|
+
"name": "tool_approval_approved",
|
|
545
|
+
"type": "integer",
|
|
546
|
+
"primaryKey": false,
|
|
547
|
+
"notNull": false,
|
|
548
|
+
"autoincrement": false
|
|
549
|
+
},
|
|
550
|
+
"tool_approval_reason": {
|
|
551
|
+
"name": "tool_approval_reason",
|
|
552
|
+
"type": "text",
|
|
553
|
+
"primaryKey": false,
|
|
554
|
+
"notNull": false,
|
|
555
|
+
"autoincrement": false
|
|
556
|
+
}
|
|
557
|
+
},
|
|
558
|
+
"indexes": {
|
|
559
|
+
"parts_message_id_idx": {
|
|
560
|
+
"name": "parts_message_id_idx",
|
|
561
|
+
"columns": [
|
|
562
|
+
"message_id"
|
|
563
|
+
],
|
|
564
|
+
"isUnique": false
|
|
565
|
+
},
|
|
566
|
+
"parts_message_id_order_idx": {
|
|
567
|
+
"name": "parts_message_id_order_idx",
|
|
568
|
+
"columns": [
|
|
569
|
+
"message_id",
|
|
570
|
+
"order"
|
|
571
|
+
],
|
|
572
|
+
"isUnique": false
|
|
573
|
+
}
|
|
574
|
+
},
|
|
575
|
+
"foreignKeys": {
|
|
576
|
+
"message_part_message_id_chat_message_id_fk": {
|
|
577
|
+
"name": "message_part_message_id_chat_message_id_fk",
|
|
578
|
+
"tableFrom": "message_part",
|
|
579
|
+
"tableTo": "chat_message",
|
|
580
|
+
"columnsFrom": [
|
|
581
|
+
"message_id"
|
|
582
|
+
],
|
|
583
|
+
"columnsTo": [
|
|
584
|
+
"id"
|
|
585
|
+
],
|
|
586
|
+
"onDelete": "cascade",
|
|
587
|
+
"onUpdate": "no action"
|
|
588
|
+
}
|
|
589
|
+
},
|
|
590
|
+
"compositePrimaryKeys": {},
|
|
591
|
+
"uniqueConstraints": {},
|
|
592
|
+
"checkConstraints": {
|
|
593
|
+
"text_required_if_type_is_text": {
|
|
594
|
+
"name": "text_required_if_type_is_text",
|
|
595
|
+
"value": "CASE WHEN \"message_part\".\"type\" = 'text' THEN \"message_part\".\"text\" IS NOT NULL ELSE TRUE END"
|
|
596
|
+
},
|
|
597
|
+
"reasoning_text_required_if_type_is_reasoning": {
|
|
598
|
+
"name": "reasoning_text_required_if_type_is_reasoning",
|
|
599
|
+
"value": "CASE WHEN \"message_part\".\"type\" = 'reasoning' THEN \"message_part\".\"reasoning_text\" IS NOT NULL ELSE TRUE END"
|
|
600
|
+
},
|
|
601
|
+
"tool_call_fields_required": {
|
|
602
|
+
"name": "tool_call_fields_required",
|
|
603
|
+
"value": "CASE WHEN \"message_part\".\"type\" LIKE 'tool-%' THEN \"message_part\".\"tool_call_id\" IS NOT NULL AND \"message_part\".\"tool_state\" IS NOT NULL ELSE TRUE END"
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
},
|
|
607
|
+
"project": {
|
|
608
|
+
"name": "project",
|
|
609
|
+
"columns": {
|
|
610
|
+
"id": {
|
|
611
|
+
"name": "id",
|
|
612
|
+
"type": "text",
|
|
613
|
+
"primaryKey": true,
|
|
614
|
+
"notNull": true,
|
|
615
|
+
"autoincrement": false
|
|
616
|
+
},
|
|
617
|
+
"name": {
|
|
618
|
+
"name": "name",
|
|
619
|
+
"type": "text",
|
|
620
|
+
"primaryKey": false,
|
|
621
|
+
"notNull": true,
|
|
622
|
+
"autoincrement": false
|
|
623
|
+
},
|
|
624
|
+
"type": {
|
|
625
|
+
"name": "type",
|
|
626
|
+
"type": "text",
|
|
627
|
+
"primaryKey": false,
|
|
628
|
+
"notNull": true,
|
|
629
|
+
"autoincrement": false
|
|
630
|
+
},
|
|
631
|
+
"path": {
|
|
632
|
+
"name": "path",
|
|
633
|
+
"type": "text",
|
|
634
|
+
"primaryKey": false,
|
|
635
|
+
"notNull": false,
|
|
636
|
+
"autoincrement": false
|
|
637
|
+
},
|
|
638
|
+
"slack_bot_token": {
|
|
639
|
+
"name": "slack_bot_token",
|
|
640
|
+
"type": "text",
|
|
641
|
+
"primaryKey": false,
|
|
642
|
+
"notNull": false,
|
|
643
|
+
"autoincrement": false
|
|
644
|
+
},
|
|
645
|
+
"slack_signing_secret": {
|
|
646
|
+
"name": "slack_signing_secret",
|
|
647
|
+
"type": "text",
|
|
648
|
+
"primaryKey": false,
|
|
649
|
+
"notNull": false,
|
|
650
|
+
"autoincrement": false
|
|
651
|
+
},
|
|
652
|
+
"created_at": {
|
|
653
|
+
"name": "created_at",
|
|
654
|
+
"type": "integer",
|
|
655
|
+
"primaryKey": false,
|
|
656
|
+
"notNull": true,
|
|
657
|
+
"autoincrement": false,
|
|
658
|
+
"default": "(cast(unixepoch('subsecond') * 1000 as integer))"
|
|
659
|
+
},
|
|
660
|
+
"updated_at": {
|
|
661
|
+
"name": "updated_at",
|
|
662
|
+
"type": "integer",
|
|
663
|
+
"primaryKey": false,
|
|
664
|
+
"notNull": true,
|
|
665
|
+
"autoincrement": false,
|
|
666
|
+
"default": "(cast(unixepoch('subsecond') * 1000 as integer))"
|
|
667
|
+
}
|
|
668
|
+
},
|
|
669
|
+
"indexes": {},
|
|
670
|
+
"foreignKeys": {},
|
|
671
|
+
"compositePrimaryKeys": {},
|
|
672
|
+
"uniqueConstraints": {},
|
|
673
|
+
"checkConstraints": {
|
|
674
|
+
"local_project_path_required": {
|
|
675
|
+
"name": "local_project_path_required",
|
|
676
|
+
"value": "CASE WHEN \"project\".\"type\" = 'local' THEN \"project\".\"path\" IS NOT NULL ELSE TRUE END"
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
},
|
|
680
|
+
"project_llm_config": {
|
|
681
|
+
"name": "project_llm_config",
|
|
682
|
+
"columns": {
|
|
683
|
+
"id": {
|
|
684
|
+
"name": "id",
|
|
685
|
+
"type": "text",
|
|
686
|
+
"primaryKey": true,
|
|
687
|
+
"notNull": true,
|
|
688
|
+
"autoincrement": false
|
|
689
|
+
},
|
|
690
|
+
"project_id": {
|
|
691
|
+
"name": "project_id",
|
|
692
|
+
"type": "text",
|
|
693
|
+
"primaryKey": false,
|
|
694
|
+
"notNull": true,
|
|
695
|
+
"autoincrement": false
|
|
696
|
+
},
|
|
697
|
+
"provider": {
|
|
698
|
+
"name": "provider",
|
|
699
|
+
"type": "text",
|
|
700
|
+
"primaryKey": false,
|
|
701
|
+
"notNull": true,
|
|
702
|
+
"autoincrement": false
|
|
703
|
+
},
|
|
704
|
+
"api_key": {
|
|
705
|
+
"name": "api_key",
|
|
706
|
+
"type": "text",
|
|
707
|
+
"primaryKey": false,
|
|
708
|
+
"notNull": true,
|
|
709
|
+
"autoincrement": false
|
|
710
|
+
},
|
|
711
|
+
"created_at": {
|
|
712
|
+
"name": "created_at",
|
|
713
|
+
"type": "integer",
|
|
714
|
+
"primaryKey": false,
|
|
715
|
+
"notNull": true,
|
|
716
|
+
"autoincrement": false,
|
|
717
|
+
"default": "(cast(unixepoch('subsecond') * 1000 as integer))"
|
|
718
|
+
},
|
|
719
|
+
"updated_at": {
|
|
720
|
+
"name": "updated_at",
|
|
721
|
+
"type": "integer",
|
|
722
|
+
"primaryKey": false,
|
|
723
|
+
"notNull": true,
|
|
724
|
+
"autoincrement": false,
|
|
725
|
+
"default": "(cast(unixepoch('subsecond') * 1000 as integer))"
|
|
726
|
+
}
|
|
727
|
+
},
|
|
728
|
+
"indexes": {
|
|
729
|
+
"project_llm_config_projectId_idx": {
|
|
730
|
+
"name": "project_llm_config_projectId_idx",
|
|
731
|
+
"columns": [
|
|
732
|
+
"project_id"
|
|
733
|
+
],
|
|
734
|
+
"isUnique": false
|
|
735
|
+
},
|
|
736
|
+
"project_llm_config_unique": {
|
|
737
|
+
"name": "project_llm_config_unique",
|
|
738
|
+
"columns": [
|
|
739
|
+
"id",
|
|
740
|
+
"project_id",
|
|
741
|
+
"provider"
|
|
742
|
+
],
|
|
743
|
+
"isUnique": true
|
|
744
|
+
}
|
|
745
|
+
},
|
|
746
|
+
"foreignKeys": {
|
|
747
|
+
"project_llm_config_project_id_project_id_fk": {
|
|
748
|
+
"name": "project_llm_config_project_id_project_id_fk",
|
|
749
|
+
"tableFrom": "project_llm_config",
|
|
750
|
+
"tableTo": "project",
|
|
751
|
+
"columnsFrom": [
|
|
752
|
+
"project_id"
|
|
753
|
+
],
|
|
754
|
+
"columnsTo": [
|
|
755
|
+
"id"
|
|
756
|
+
],
|
|
757
|
+
"onDelete": "cascade",
|
|
758
|
+
"onUpdate": "no action"
|
|
759
|
+
}
|
|
760
|
+
},
|
|
761
|
+
"compositePrimaryKeys": {},
|
|
762
|
+
"uniqueConstraints": {},
|
|
763
|
+
"checkConstraints": {}
|
|
764
|
+
},
|
|
765
|
+
"project_member": {
|
|
766
|
+
"name": "project_member",
|
|
767
|
+
"columns": {
|
|
768
|
+
"project_id": {
|
|
769
|
+
"name": "project_id",
|
|
770
|
+
"type": "text",
|
|
771
|
+
"primaryKey": false,
|
|
772
|
+
"notNull": true,
|
|
773
|
+
"autoincrement": false
|
|
774
|
+
},
|
|
775
|
+
"user_id": {
|
|
776
|
+
"name": "user_id",
|
|
777
|
+
"type": "text",
|
|
778
|
+
"primaryKey": false,
|
|
779
|
+
"notNull": true,
|
|
780
|
+
"autoincrement": false
|
|
781
|
+
},
|
|
782
|
+
"role": {
|
|
783
|
+
"name": "role",
|
|
784
|
+
"type": "text",
|
|
785
|
+
"primaryKey": false,
|
|
786
|
+
"notNull": true,
|
|
787
|
+
"autoincrement": false
|
|
788
|
+
},
|
|
789
|
+
"created_at": {
|
|
790
|
+
"name": "created_at",
|
|
791
|
+
"type": "integer",
|
|
792
|
+
"primaryKey": false,
|
|
793
|
+
"notNull": true,
|
|
794
|
+
"autoincrement": false,
|
|
795
|
+
"default": "(cast(unixepoch('subsecond') * 1000 as integer))"
|
|
796
|
+
}
|
|
797
|
+
},
|
|
798
|
+
"indexes": {
|
|
799
|
+
"project_member_userId_idx": {
|
|
800
|
+
"name": "project_member_userId_idx",
|
|
801
|
+
"columns": [
|
|
802
|
+
"user_id"
|
|
803
|
+
],
|
|
804
|
+
"isUnique": false
|
|
805
|
+
}
|
|
806
|
+
},
|
|
807
|
+
"foreignKeys": {
|
|
808
|
+
"project_member_project_id_project_id_fk": {
|
|
809
|
+
"name": "project_member_project_id_project_id_fk",
|
|
810
|
+
"tableFrom": "project_member",
|
|
811
|
+
"tableTo": "project",
|
|
812
|
+
"columnsFrom": [
|
|
813
|
+
"project_id"
|
|
814
|
+
],
|
|
815
|
+
"columnsTo": [
|
|
816
|
+
"id"
|
|
817
|
+
],
|
|
818
|
+
"onDelete": "cascade",
|
|
819
|
+
"onUpdate": "no action"
|
|
820
|
+
},
|
|
821
|
+
"project_member_user_id_user_id_fk": {
|
|
822
|
+
"name": "project_member_user_id_user_id_fk",
|
|
823
|
+
"tableFrom": "project_member",
|
|
824
|
+
"tableTo": "user",
|
|
825
|
+
"columnsFrom": [
|
|
826
|
+
"user_id"
|
|
827
|
+
],
|
|
828
|
+
"columnsTo": [
|
|
829
|
+
"id"
|
|
830
|
+
],
|
|
831
|
+
"onDelete": "cascade",
|
|
832
|
+
"onUpdate": "no action"
|
|
833
|
+
}
|
|
834
|
+
},
|
|
835
|
+
"compositePrimaryKeys": {
|
|
836
|
+
"project_member_project_id_user_id_pk": {
|
|
837
|
+
"columns": [
|
|
838
|
+
"project_id",
|
|
839
|
+
"user_id"
|
|
840
|
+
],
|
|
841
|
+
"name": "project_member_project_id_user_id_pk"
|
|
842
|
+
}
|
|
843
|
+
},
|
|
844
|
+
"uniqueConstraints": {},
|
|
845
|
+
"checkConstraints": {}
|
|
846
|
+
},
|
|
847
|
+
"session": {
|
|
848
|
+
"name": "session",
|
|
849
|
+
"columns": {
|
|
850
|
+
"id": {
|
|
851
|
+
"name": "id",
|
|
852
|
+
"type": "text",
|
|
853
|
+
"primaryKey": true,
|
|
854
|
+
"notNull": true,
|
|
855
|
+
"autoincrement": false
|
|
856
|
+
},
|
|
857
|
+
"expires_at": {
|
|
858
|
+
"name": "expires_at",
|
|
859
|
+
"type": "integer",
|
|
860
|
+
"primaryKey": false,
|
|
861
|
+
"notNull": true,
|
|
862
|
+
"autoincrement": false
|
|
863
|
+
},
|
|
864
|
+
"token": {
|
|
865
|
+
"name": "token",
|
|
866
|
+
"type": "text",
|
|
867
|
+
"primaryKey": false,
|
|
868
|
+
"notNull": true,
|
|
869
|
+
"autoincrement": false
|
|
870
|
+
},
|
|
871
|
+
"created_at": {
|
|
872
|
+
"name": "created_at",
|
|
873
|
+
"type": "integer",
|
|
874
|
+
"primaryKey": false,
|
|
875
|
+
"notNull": true,
|
|
876
|
+
"autoincrement": false,
|
|
877
|
+
"default": "(cast(unixepoch('subsecond') * 1000 as integer))"
|
|
878
|
+
},
|
|
879
|
+
"updated_at": {
|
|
880
|
+
"name": "updated_at",
|
|
881
|
+
"type": "integer",
|
|
882
|
+
"primaryKey": false,
|
|
883
|
+
"notNull": true,
|
|
884
|
+
"autoincrement": false
|
|
885
|
+
},
|
|
886
|
+
"ip_address": {
|
|
887
|
+
"name": "ip_address",
|
|
888
|
+
"type": "text",
|
|
889
|
+
"primaryKey": false,
|
|
890
|
+
"notNull": false,
|
|
891
|
+
"autoincrement": false
|
|
892
|
+
},
|
|
893
|
+
"user_agent": {
|
|
894
|
+
"name": "user_agent",
|
|
895
|
+
"type": "text",
|
|
896
|
+
"primaryKey": false,
|
|
897
|
+
"notNull": false,
|
|
898
|
+
"autoincrement": false
|
|
899
|
+
},
|
|
900
|
+
"user_id": {
|
|
901
|
+
"name": "user_id",
|
|
902
|
+
"type": "text",
|
|
903
|
+
"primaryKey": false,
|
|
904
|
+
"notNull": true,
|
|
905
|
+
"autoincrement": false
|
|
906
|
+
}
|
|
907
|
+
},
|
|
908
|
+
"indexes": {
|
|
909
|
+
"session_token_unique": {
|
|
910
|
+
"name": "session_token_unique",
|
|
911
|
+
"columns": [
|
|
912
|
+
"token"
|
|
913
|
+
],
|
|
914
|
+
"isUnique": true
|
|
915
|
+
},
|
|
916
|
+
"session_userId_idx": {
|
|
917
|
+
"name": "session_userId_idx",
|
|
918
|
+
"columns": [
|
|
919
|
+
"user_id"
|
|
920
|
+
],
|
|
921
|
+
"isUnique": false
|
|
922
|
+
}
|
|
923
|
+
},
|
|
924
|
+
"foreignKeys": {
|
|
925
|
+
"session_user_id_user_id_fk": {
|
|
926
|
+
"name": "session_user_id_user_id_fk",
|
|
927
|
+
"tableFrom": "session",
|
|
928
|
+
"tableTo": "user",
|
|
929
|
+
"columnsFrom": [
|
|
930
|
+
"user_id"
|
|
931
|
+
],
|
|
932
|
+
"columnsTo": [
|
|
933
|
+
"id"
|
|
934
|
+
],
|
|
935
|
+
"onDelete": "cascade",
|
|
936
|
+
"onUpdate": "no action"
|
|
937
|
+
}
|
|
938
|
+
},
|
|
939
|
+
"compositePrimaryKeys": {},
|
|
940
|
+
"uniqueConstraints": {},
|
|
941
|
+
"checkConstraints": {}
|
|
942
|
+
},
|
|
943
|
+
"user": {
|
|
944
|
+
"name": "user",
|
|
945
|
+
"columns": {
|
|
946
|
+
"id": {
|
|
947
|
+
"name": "id",
|
|
948
|
+
"type": "text",
|
|
949
|
+
"primaryKey": true,
|
|
950
|
+
"notNull": true,
|
|
951
|
+
"autoincrement": false
|
|
952
|
+
},
|
|
953
|
+
"name": {
|
|
954
|
+
"name": "name",
|
|
955
|
+
"type": "text",
|
|
956
|
+
"primaryKey": false,
|
|
957
|
+
"notNull": true,
|
|
958
|
+
"autoincrement": false
|
|
959
|
+
},
|
|
960
|
+
"email": {
|
|
961
|
+
"name": "email",
|
|
962
|
+
"type": "text",
|
|
963
|
+
"primaryKey": false,
|
|
964
|
+
"notNull": true,
|
|
965
|
+
"autoincrement": false
|
|
966
|
+
},
|
|
967
|
+
"email_verified": {
|
|
968
|
+
"name": "email_verified",
|
|
969
|
+
"type": "integer",
|
|
970
|
+
"primaryKey": false,
|
|
971
|
+
"notNull": true,
|
|
972
|
+
"autoincrement": false,
|
|
973
|
+
"default": false
|
|
974
|
+
},
|
|
975
|
+
"image": {
|
|
976
|
+
"name": "image",
|
|
977
|
+
"type": "text",
|
|
978
|
+
"primaryKey": false,
|
|
979
|
+
"notNull": false,
|
|
980
|
+
"autoincrement": false
|
|
981
|
+
},
|
|
982
|
+
"created_at": {
|
|
983
|
+
"name": "created_at",
|
|
984
|
+
"type": "integer",
|
|
985
|
+
"primaryKey": false,
|
|
986
|
+
"notNull": true,
|
|
987
|
+
"autoincrement": false,
|
|
988
|
+
"default": "(cast(unixepoch('subsecond') * 1000 as integer))"
|
|
989
|
+
},
|
|
990
|
+
"updated_at": {
|
|
991
|
+
"name": "updated_at",
|
|
992
|
+
"type": "integer",
|
|
993
|
+
"primaryKey": false,
|
|
994
|
+
"notNull": true,
|
|
995
|
+
"autoincrement": false,
|
|
996
|
+
"default": "(cast(unixepoch('subsecond') * 1000 as integer))"
|
|
997
|
+
}
|
|
998
|
+
},
|
|
999
|
+
"indexes": {
|
|
1000
|
+
"user_email_unique": {
|
|
1001
|
+
"name": "user_email_unique",
|
|
1002
|
+
"columns": [
|
|
1003
|
+
"email"
|
|
1004
|
+
],
|
|
1005
|
+
"isUnique": true
|
|
1006
|
+
}
|
|
1007
|
+
},
|
|
1008
|
+
"foreignKeys": {},
|
|
1009
|
+
"compositePrimaryKeys": {},
|
|
1010
|
+
"uniqueConstraints": {},
|
|
1011
|
+
"checkConstraints": {}
|
|
1012
|
+
},
|
|
1013
|
+
"verification": {
|
|
1014
|
+
"name": "verification",
|
|
1015
|
+
"columns": {
|
|
1016
|
+
"id": {
|
|
1017
|
+
"name": "id",
|
|
1018
|
+
"type": "text",
|
|
1019
|
+
"primaryKey": true,
|
|
1020
|
+
"notNull": true,
|
|
1021
|
+
"autoincrement": false
|
|
1022
|
+
},
|
|
1023
|
+
"identifier": {
|
|
1024
|
+
"name": "identifier",
|
|
1025
|
+
"type": "text",
|
|
1026
|
+
"primaryKey": false,
|
|
1027
|
+
"notNull": true,
|
|
1028
|
+
"autoincrement": false
|
|
1029
|
+
},
|
|
1030
|
+
"value": {
|
|
1031
|
+
"name": "value",
|
|
1032
|
+
"type": "text",
|
|
1033
|
+
"primaryKey": false,
|
|
1034
|
+
"notNull": true,
|
|
1035
|
+
"autoincrement": false
|
|
1036
|
+
},
|
|
1037
|
+
"expires_at": {
|
|
1038
|
+
"name": "expires_at",
|
|
1039
|
+
"type": "integer",
|
|
1040
|
+
"primaryKey": false,
|
|
1041
|
+
"notNull": true,
|
|
1042
|
+
"autoincrement": false
|
|
1043
|
+
},
|
|
1044
|
+
"created_at": {
|
|
1045
|
+
"name": "created_at",
|
|
1046
|
+
"type": "integer",
|
|
1047
|
+
"primaryKey": false,
|
|
1048
|
+
"notNull": true,
|
|
1049
|
+
"autoincrement": false,
|
|
1050
|
+
"default": "(cast(unixepoch('subsecond') * 1000 as integer))"
|
|
1051
|
+
},
|
|
1052
|
+
"updated_at": {
|
|
1053
|
+
"name": "updated_at",
|
|
1054
|
+
"type": "integer",
|
|
1055
|
+
"primaryKey": false,
|
|
1056
|
+
"notNull": true,
|
|
1057
|
+
"autoincrement": false,
|
|
1058
|
+
"default": "(cast(unixepoch('subsecond') * 1000 as integer))"
|
|
1059
|
+
}
|
|
1060
|
+
},
|
|
1061
|
+
"indexes": {
|
|
1062
|
+
"verification_identifier_idx": {
|
|
1063
|
+
"name": "verification_identifier_idx",
|
|
1064
|
+
"columns": [
|
|
1065
|
+
"identifier"
|
|
1066
|
+
],
|
|
1067
|
+
"isUnique": false
|
|
1068
|
+
}
|
|
1069
|
+
},
|
|
1070
|
+
"foreignKeys": {},
|
|
1071
|
+
"compositePrimaryKeys": {},
|
|
1072
|
+
"uniqueConstraints": {},
|
|
1073
|
+
"checkConstraints": {}
|
|
1074
|
+
}
|
|
1075
|
+
},
|
|
1076
|
+
"views": {},
|
|
1077
|
+
"enums": {},
|
|
1078
|
+
"_meta": {
|
|
1079
|
+
"schemas": {},
|
|
1080
|
+
"tables": {},
|
|
1081
|
+
"columns": {}
|
|
1082
|
+
},
|
|
1083
|
+
"internal": {
|
|
1084
|
+
"indexes": {}
|
|
1085
|
+
}
|
|
1086
|
+
}
|