update staff entity schema and crud
This commit is contained in:
@@ -2,7 +2,34 @@ enum EmploymentType {
|
||||
FULL_TIME
|
||||
PART_TIME
|
||||
ON_CALL
|
||||
CONTRACT
|
||||
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 {
|
||||
@@ -10,20 +37,28 @@ enum BackgroundCheckStatus {
|
||||
CLEARED
|
||||
FAILED
|
||||
EXPIRED
|
||||
NOT_REQUIRED
|
||||
}
|
||||
|
||||
type Staff @table(name: "staffs") {
|
||||
id: UUID! @default(expr: "uuidV4()")
|
||||
employeeName: String!
|
||||
vendorId: UUID
|
||||
employeeName: String!
|
||||
vendorId: UUID # vendor_id (FK lógica a Vendor.id)
|
||||
vendorName: String
|
||||
manager: String
|
||||
contactNumber: String
|
||||
email: String
|
||||
position: String
|
||||
employmentType: EmploymentType!
|
||||
department: StaffDepartment
|
||||
hubLocation: String
|
||||
track: String
|
||||
position: String
|
||||
profileType: ProfileType
|
||||
employmentType: EmploymentType!
|
||||
english: EnglishLevel
|
||||
rating: Float
|
||||
reliabilityScore: Int
|
||||
backgroundCheckStatus: BackgroundCheckStatus!
|
||||
certifications: String
|
||||
backgroundCheckStatus: BackgroundCheckStatus! # background_check_status
|
||||
createdDate: Timestamp @default(expr: "request.time")
|
||||
updatedDate: Timestamp @default(expr: "request.time")
|
||||
createdBy: String @default(expr: "auth.uid")
|
||||
createdBy: String @default(expr: "auth.uid")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user