new field and enums values for break in shiftrole
This commit is contained in:
@@ -9,6 +9,7 @@ mutation createShiftRole(
|
||||
$department: String
|
||||
$uniform: String
|
||||
$breakType: BreakDuration
|
||||
$isBreakPaid: Boolean
|
||||
$totalValue: Float
|
||||
) @auth(level: USER) {
|
||||
shiftRole_insert(
|
||||
@@ -23,6 +24,7 @@ mutation createShiftRole(
|
||||
department: $department
|
||||
uniform: $uniform
|
||||
breakType: $breakType
|
||||
isBreakPaid: $isBreakPaid
|
||||
totalValue: $totalValue
|
||||
}
|
||||
)
|
||||
@@ -39,6 +41,7 @@ mutation updateShiftRole(
|
||||
$department: String
|
||||
$uniform: String
|
||||
$breakType: BreakDuration
|
||||
$isBreakPaid: Boolean
|
||||
$totalValue: Float
|
||||
) @auth(level: USER) {
|
||||
shiftRole_update(
|
||||
@@ -52,6 +55,7 @@ mutation updateShiftRole(
|
||||
department: $department
|
||||
uniform: $uniform
|
||||
breakType: $breakType
|
||||
isBreakPaid: $isBreakPaid
|
||||
totalValue: $totalValue
|
||||
}
|
||||
)
|
||||
|
||||
@@ -15,6 +15,7 @@ query getShiftRoleById(
|
||||
department
|
||||
uniform
|
||||
breakType
|
||||
isBreakPaid
|
||||
totalValue
|
||||
createdAt
|
||||
|
||||
@@ -76,6 +77,7 @@ query listShiftRolesByShiftId(
|
||||
department
|
||||
uniform
|
||||
breakType
|
||||
isBreakPaid
|
||||
totalValue
|
||||
createdAt
|
||||
|
||||
@@ -132,6 +134,7 @@ query listShiftRolesByRoleId(
|
||||
department
|
||||
uniform
|
||||
breakType
|
||||
isBreakPaid
|
||||
totalValue
|
||||
createdAt
|
||||
|
||||
@@ -195,6 +198,7 @@ query listShiftRolesByShiftIdAndTimeRange(
|
||||
department
|
||||
uniform
|
||||
breakType
|
||||
isBreakPaid
|
||||
totalValue
|
||||
createdAt
|
||||
|
||||
@@ -263,6 +267,7 @@ query listShiftRolesByVendorId(
|
||||
department
|
||||
uniform
|
||||
breakType
|
||||
isBreakPaid
|
||||
totalValue
|
||||
createdAt
|
||||
|
||||
@@ -371,6 +376,7 @@ query listShiftRolesByBusinessAndOrder(
|
||||
endTime
|
||||
hours
|
||||
breakType
|
||||
isBreakPaid
|
||||
totalValue
|
||||
createdAt
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user