Inital work on AFLOW-37

This commit is contained in:
Sören Oesterwind 2023-07-11 16:38:18 +02:00
parent f52897fd4d
commit cd37f096ca

View File

@ -99,6 +99,21 @@ model contactInfo {
StorageUnit StorageUnit[]
Item Item[]
project project[]
projectAssignedUsers project[] @relation("projectAssignedUsers")
}
model project {
id Int @id @default(autoincrement())
name String @unique
description String? @db.VarChar(2048)
// People
manager contactInfo? @relation(fields: [contactInfoId], references: [id]) // Primary, manager of the project
assignedUsers contactInfo[] @relation("projectAssignedUsers") // Secondary, assigned users to the project, stagehands, etc.
contactInfoId Int?
// When does it start and end
startTime DateTime?
endTime DateTime?
}
/// TODO: Allow multiple types to be used?