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())
|
id Int @id @unique @default(autoincrement())
|
||||||
name String @unique
|
name String @unique
|
||||||
comment String?
|
comment String?
|
||||||
alerthook String @unique
|
alerthook String @unique @default(ulid())
|
||||||
prio priorities[]
|
prio priorities[]
|
||||||
content content[] // aka. all voice files
|
content content[] // aka. all voice files
|
||||||
|
|
||||||
@ -90,8 +90,8 @@ model priorities {
|
|||||||
model content {
|
model content {
|
||||||
id Int @id @unique @default(autoincrement())
|
id Int @id @unique @default(autoincrement())
|
||||||
type contentType
|
type contentType
|
||||||
name String
|
name String @unique
|
||||||
filename String
|
filename String @unique
|
||||||
actionplan actionPlan[]
|
actionplan actionPlan[]
|
||||||
|
|
||||||
@@fulltext([name, filename])
|
@@fulltext([name, filename])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user