🚧 wip: implement collection upsert logic

This commit is contained in:
2026-03-28 21:59:44 +07:00
parent 56c921e800
commit 3768ae4c26
4 changed files with 77 additions and 1 deletions

View File

@ -369,6 +369,7 @@ Table user_logs {
Table collections {
id String [pk]
name String [not null]
slug String [not null]
medias medias [not null]
owner users [not null]
ownerId String [not null]
@ -379,6 +380,10 @@ Table collections {
deletedAt DateTime
createdAt DateTime [default: `now()`, not null]
updatedAt DateTime [default: `now()`, not null]
indexes {
(slug, ownerId) [unique]
}
}
Table watch_histories {