Files
Krow-workspace/dataconnect/schema/staff.gql
2025-11-27 09:32:52 -05:00

65 lines
1.1 KiB
GraphQL

enum EmploymentType {
FULL_TIME
PART_TIME
ON_CALL
WEEKENDS
SPECIFIC_DAYS
SEASONAL
MEDICAL_LEAVE
}
enum StaffDepartment {
OPERATIONS
SALES
HR
FINANCE
IT
MARKETING
CUSTOMER_SERVICE
LOGISTICS
}
enum ProfileType {
SKILLED
BEGINNER
CROSS_TRAINED
}
enum EnglishLevel {
FLUENT
INTERMEDIATE
BASIC
NONE
}
enum BackgroundCheckStatus {
PENDING
CLEARED
FAILED
EXPIRED
NOT_REQUIRED
}
type Staff @table(name: "staffs") {
id: UUID! @default(expr: "uuidV4()")
employeeName: String!
vendorId: UUID # vendor_id (FK lógica a Vendor.id)
vendorName: String
manager: String
contactNumber: String
email: String
department: StaffDepartment
hubLocation: String
track: String
position: String
profileType: ProfileType
employmentType: EmploymentType!
english: EnglishLevel
rating: Float
reliabilityScore: Int
backgroundCheckStatus: BackgroundCheckStatus! # background_check_status
createdDate: Timestamp @default(expr: "request.time")
updatedDate: Timestamp @default(expr: "request.time")
createdBy: String @default(expr: "auth.uid")
}