new field and enums values for break in shiftrole

This commit is contained in:
José Salazar
2026-02-12 14:54:29 -05:00
parent 4e873fff26
commit 57b63b85ef
7 changed files with 110 additions and 12 deletions

View File

@@ -1,6 +1,9 @@
enum BreakDuration {
MIN_10
MIN_15
MIN_30
MIN_45
MIN_60
NO_BREAK
}
@@ -25,6 +28,7 @@ type ShiftRole @table(name: "shift_roles", key: ["shiftId", "roleId"]) {
department: String
uniform: String
breakType: BreakDuration
isBreakPaid: Boolean @default(expr: "false")
totalValue: Float
createdAt: Timestamp @default(expr: "request.time")