allow importing of libraries via URL, update db schema

This commit is contained in:
Zimeng Xiong
2025-11-24 14:32:37 -08:00
parent ee8204532d
commit fa73708d97
14 changed files with 1301 additions and 16 deletions
@@ -0,0 +1,7 @@
-- CreateTable
CREATE TABLE "Library" (
"id" TEXT NOT NULL PRIMARY KEY DEFAULT 'default',
"items" TEXT NOT NULL DEFAULT '[]',
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updatedAt" DATETIME NOT NULL
);
Binary file not shown.
Binary file not shown.
+7
View File
@@ -33,3 +33,10 @@ model Drawing {
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
model Library {
id String @id @default("default") // Singleton pattern - use "default" ID
items String @default("[]") // Stored as JSON string array of library items
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}