new shift entity

This commit is contained in:
José Salazar
2025-11-26 15:52:31 -05:00
parent 3ac7605965
commit 4c24e83622
3 changed files with 93 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
type Shift @table(name: "shifts") {
id: UUID! @default(expr: "uuidV4()")
shiftName: String!
startDate: Timestamp!
endDate: Timestamp
assignedStaff: String # assigned_staff (jsonb -> String, array de objects)
createdDate: Timestamp @default(expr: "request.time")
updatedDate: Timestamp @default(expr: "request.time")
createdBy: String @default(expr: "auth.uid")
}