sync
parent
7706f5b6a8
commit
0ccef1b31f
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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()),
|
||||
|
|
|
|||
Loading…
Reference in New Issue