modifiying staff schema for front
This commit is contained in:
@@ -10,12 +10,12 @@ mutation CreateStaff(
|
|||||||
$track: String,
|
$track: String,
|
||||||
$position: String,
|
$position: String,
|
||||||
$profileType: ProfileType,
|
$profileType: ProfileType,
|
||||||
$employmentType: EmploymentType!,
|
$employmentType: EmploymentType,
|
||||||
$english: EnglishLevel,
|
$english: EnglishLevel,
|
||||||
$rate: Float,
|
$rate: Float,
|
||||||
$rating: Float,
|
$rating: Float,
|
||||||
$reliabilityScore: Int,
|
$reliabilityScore: Int,
|
||||||
$backgroundCheckStatus: BackgroundCheckStatus!
|
$backgroundCheckStatus: BackgroundCheckStatus,
|
||||||
$notes: String
|
$notes: String
|
||||||
) @auth(level: USER) {
|
) @auth(level: USER) {
|
||||||
staff_insert(
|
staff_insert(
|
||||||
@@ -60,7 +60,7 @@ mutation UpdateStaff(
|
|||||||
$rate: Float,
|
$rate: Float,
|
||||||
$rating: Float,
|
$rating: Float,
|
||||||
$reliabilityScore: Int,
|
$reliabilityScore: Int,
|
||||||
$backgroundCheckStatus: BackgroundCheckStatus
|
$backgroundCheckStatus: BackgroundCheckStatus,
|
||||||
$notes: String
|
$notes: String
|
||||||
) @auth(level: USER) {
|
) @auth(level: USER) {
|
||||||
staff_update(
|
staff_update(
|
||||||
|
|||||||
@@ -53,12 +53,12 @@ type Staff @table(name: "staffs") {
|
|||||||
track: String
|
track: String
|
||||||
position: String
|
position: String
|
||||||
profileType: ProfileType @col(name: "profile_type")
|
profileType: ProfileType @col(name: "profile_type")
|
||||||
employmentType: EmploymentType! @col(name: "employment_type")
|
employmentType: EmploymentType @col(name: "employment_type")
|
||||||
english: EnglishLevel
|
english: EnglishLevel
|
||||||
rate: Float
|
rate: Float
|
||||||
rating: Float
|
rating: Float
|
||||||
reliabilityScore: Int @col(name: "reliability_score")
|
reliabilityScore: Int @col(name: "reliability_score")
|
||||||
backgroundCheckStatus: BackgroundCheckStatus! @col(name: "background_check_status")
|
backgroundCheckStatus: BackgroundCheckStatus @col(name: "background_check_status")
|
||||||
notes: String
|
notes: 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")
|
||||||
|
|||||||
Reference in New Issue
Block a user