Trash ID Update Collections

This commit is contained in:
Zimeng Xiong
2025-11-21 19:31:59 -08:00
parent 4e8beae0ee
commit 0878b5e87f
16 changed files with 169 additions and 101 deletions
Binary file not shown.
@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "Drawing" ADD COLUMN "preview" TEXT;
@@ -1,3 +1,3 @@
# Please do not edit this file manually
# It should be added in your version-control system (e.g., Git)
provider = "sqlite"
# It should be added in your version-control system (i.e. Git)
provider = "sqlite"
+1
View File
@@ -24,6 +24,7 @@ model Drawing {
name String
elements String // Stored as JSON string
appState String // Stored as JSON string
preview String? // SVG string for thumbnail
version Int @default(1)
collectionId String?
collection Collection? @relation(fields: [collectionId], references: [id])