feat: add optionnal link description

This commit is contained in:
Sonny
2024-04-09 23:05:14 +02:00
parent cf6b87306e
commit 584489dbb9
12 changed files with 101 additions and 58 deletions

View File

@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE `link` ADD COLUMN `description` VARCHAR(255) NULL;

View File

@@ -45,9 +45,10 @@ model Category {
}
model Link {
id Int @id @default(autoincrement())
name String @db.VarChar(255)
url String @db.Text
id Int @id @default(autoincrement())
name String @db.VarChar(255)
description String? @db.VarChar(255)
url String @db.Text
category Category @relation(fields: [categoryId], references: [id])
categoryId Int