summaryrefslogtreecommitdiffhomepage
path: root/internal/db/sql/sessions.sql
diff options
context:
space:
mode:
authoradamdottv <[email protected]>2025-05-13 13:08:43 -0500
committeradamdottv <[email protected]>2025-05-13 13:08:43 -0500
commit01b6bf5bb7307246cb2cca7f1cbc8aba693941cc (patch)
treef47f5aa2b323ce8fea55f6999308486ff790d26e /internal/db/sql/sessions.sql
parentd8f3b606258a5655d73acc94d6cb37b421350817 (diff)
downloadopencode-01b6bf5bb7307246cb2cca7f1cbc8aba693941cc.tar.gz
opencode-01b6bf5bb7307246cb2cca7f1cbc8aba693941cc.zip
chore: refactor db
Diffstat (limited to 'internal/db/sql/sessions.sql')
-rw-r--r--internal/db/sql/sessions.sql8
1 files changed, 2 insertions, 6 deletions
diff --git a/internal/db/sql/sessions.sql b/internal/db/sql/sessions.sql
index 81abebd3c..fd7ffe56c 100644
--- a/internal/db/sql/sessions.sql
+++ b/internal/db/sql/sessions.sql
@@ -8,9 +8,7 @@ INSERT INTO sessions (
completion_tokens,
cost,
summary,
- summarized_at,
- updated_at,
- created_at
+ summarized_at
) VALUES (
?,
?,
@@ -20,9 +18,7 @@ INSERT INTO sessions (
?,
?,
?,
- ?,
- strftime('%s', 'now'),
- strftime('%s', 'now')
+ ?
) RETURNING *;
-- name: GetSessionByID :one