sync
This commit is contained in:
parent
7706f5b6a8
commit
0ccef1b31f
2 changed files with 4 additions and 2 deletions
|
|
@ -91,7 +91,7 @@ export const ImportCommand = cmd({
|
||||||
.values({
|
.values({
|
||||||
id: msg.info.id,
|
id: msg.info.id,
|
||||||
session_id: exportData.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,
|
data: msg.info,
|
||||||
})
|
})
|
||||||
.onConflictDoNothing()
|
.onConflictDoNothing()
|
||||||
|
|
|
||||||
|
|
@ -139,7 +139,9 @@ export namespace Database {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const Timestamps = {
|
export const Timestamps = {
|
||||||
time_created: integer().notNull(),
|
time_created: integer()
|
||||||
|
.notNull()
|
||||||
|
.$default(() => Date.now()),
|
||||||
time_updated: integer()
|
time_updated: integer()
|
||||||
.notNull()
|
.notNull()
|
||||||
.$onUpdate(() => Date.now()),
|
.$onUpdate(() => Date.now()),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue