prisma schema -> Generate alerthook / content name+filename unique
This commit is contained in:
parent
64d317115c
commit
634f05bc27
@ -67,7 +67,7 @@ model actionPlan {
|
||||
id Int @id @unique @default(autoincrement())
|
||||
name String @unique
|
||||
comment String?
|
||||
alerthook String @unique
|
||||
alerthook String @unique @default(ulid())
|
||||
prio priorities[]
|
||||
content content[] // aka. all voice files
|
||||
|
||||
@ -90,8 +90,8 @@ model priorities {
|
||||
model content {
|
||||
id Int @id @unique @default(autoincrement())
|
||||
type contentType
|
||||
name String
|
||||
filename String
|
||||
name String @unique
|
||||
filename String @unique
|
||||
actionplan actionPlan[]
|
||||
|
||||
@@fulltext([name, filename])
|
||||
|
Loading…
x
Reference in New Issue
Block a user