customizable icon color
This commit is contained in:
+1
@@ -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,
|
||||
@@ -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])
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user