feature/workspace-domain
Dax Raad 2026-01-27 16:41:24 -05:00
parent 7706f5b6a8
commit 0ccef1b31f
2 changed files with 4 additions and 2 deletions

View File

@ -91,7 +91,7 @@ export const ImportCommand = cmd({
.values({
id: msg.info.id,
session_id: exportData.info.id,
created_at: msg.info.time?.created ?? Date.now(),
time_created: msg.info.time?.created ?? Date.now(),
data: msg.info,
})
.onConflictDoNothing()

View File

@ -139,7 +139,9 @@ export namespace Database {
}
export const Timestamps = {
time_created: integer().notNull(),
time_created: integer()
.notNull()
.$default(() => Date.now()),
time_updated: integer()
.notNull()
.$onUpdate(() => Date.now()),