@@ -357,6 +357,7 @@ model Shot {
|
||||
versions Version[]
|
||||
tasks Task[]
|
||||
footagePlates FootagePlate[]
|
||||
references ShotReference[]
|
||||
loggedTakes Take[] @relation("TakeToShot")
|
||||
|
||||
@@unique([projectId, shotCode])
|
||||
@@ -379,6 +380,22 @@ model FootagePlate {
|
||||
@@map("footage_plates")
|
||||
}
|
||||
|
||||
model ShotReference {
|
||||
id String @id @default(cuid())
|
||||
shotId String
|
||||
label String?
|
||||
fileUrl String
|
||||
fileKey String @default("")
|
||||
fileName String @default("")
|
||||
fileSize BigInt?
|
||||
sortOrder Int @default(0)
|
||||
createdAt DateTime @default(now())
|
||||
|
||||
shot Shot @relation(fields: [shotId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@map("shot_references")
|
||||
}
|
||||
|
||||
model ShotGroup {
|
||||
id String @id @default(cuid())
|
||||
name String
|
||||
|
||||
Reference in New Issue
Block a user