customizable icon color

This commit is contained in:
Daniel
2023-06-02 15:29:52 +03:30
parent 3e6bef875b
commit be180d34e2
11 changed files with 165 additions and 99 deletions
@@ -16,6 +16,7 @@ CREATE TABLE "Collection" (
"id" SERIAL NOT NULL,
"name" TEXT NOT NULL,
"description" TEXT NOT NULL DEFAULT '',
"color" TEXT NOT NULL DEFAULT '#7dd3fc',
"isPublic" BOOLEAN NOT NULL DEFAULT false,
"ownerId" INTEGER NOT NULL,
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
+2 -1
View File
@@ -24,6 +24,7 @@ model Collection {
id Int @id @default(autoincrement())
name String
description String @default("")
color String @default("#7dd3fc")
isPublic Boolean @default(false)
owner User @relation(fields: [ownerId], references: [id])
ownerId Int
@@ -69,4 +70,4 @@ model Tag {
ownerId Int
@@unique([name, ownerId])
}
}