names should be auto generated instead of descriptions + add default value to name field

This commit is contained in:
daniel31x13
2024-05-24 20:41:31 -04:00
parent cb50de96a3
commit bcb6aea119
5 changed files with 84 additions and 11 deletions
@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "Link" ALTER COLUMN "name" SET DEFAULT '';
+1 -1
View File
@@ -123,7 +123,7 @@ model UsersAndCollections {
model Link {
id Int @id @default(autoincrement())
name String
name String @default("")
type String @default("url")
description String @default("")
pinnedBy User[]