new schema for event adding authid for created by and chaging type for assiged_staff and shits

This commit is contained in:
José Salazar
2025-11-19 15:53:11 -05:00
parent e8ffa4c5ef
commit 38b68e8520

View File

@@ -25,13 +25,13 @@ type Event @table(name: "events") {
vendorId: UUID vendorId: UUID
status: EventStatus! status: EventStatus!
date: Timestamp! date: Timestamp!
shifts: String @col(dataType: "jsonb") shifts: String
total: Float total: Float
requested: Int requested: Int
assignedStaff: String @col(dataType: "jsonb") assignedStaff: String
createdDate: Timestamp @default(expr: "request.time") createdDate: Timestamp @default(expr: "request.time")
updatedDate: Timestamp @default(expr: "request.time") updatedDate: Timestamp @default(expr: "request.time")
createdBy: String createdBy: String @default(expr: "auth.uid")
} }