aboutsummaryrefslogtreecommitdiff
path: root/gn3/api
diff options
context:
space:
mode:
authorAlexander_Kabui2024-05-24 17:18:55 +0300
committerAlexander_Kabui2024-05-24 17:18:55 +0300
commita3284926aaa73ce27565e4a1131d4447a3a7face (patch)
tree6264702638f013d1db8437f14b1a90c10ec587cf /gn3/api
parent3ea881f3bc28e8087be08f1d507991ac9b2a4230 (diff)
downloadgenenetwork3-a3284926aaa73ce27565e4a1131d4447a3a7face.tar.gz
Add created_at timestamp to History table.
Diffstat (limited to 'gn3/api')
-rw-r--r--gn3/api/llm.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gn3/api/llm.py b/gn3/api/llm.py
index c1f6304..5924f12 100644
--- a/gn3/api/llm.py
+++ b/gn3/api/llm.py
@@ -40,6 +40,7 @@ def search():
task_id TEXT NOT NULL,
query TEXT NOT NULL,
results TEXT,
+ created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY(task_id)) WITHOUT ROWID""")
cursor.execute(
"""INSERT INTO history(user_id, task_id, query, results)