new version of staff for the actual front

This commit is contained in:
José Salazar
2025-12-02 09:18:01 -05:00
parent d2c227c9d5
commit 04bffcea37
3 changed files with 25 additions and 9 deletions

View File

@@ -42,22 +42,24 @@ enum BackgroundCheckStatus {
type Staff @table(name: "staffs") {
id: UUID! @default(expr: "uuidV4()")
employeeName: String!
vendorId: UUID # vendor_id (FK lógica a Vendor.id)
vendorName: String
employeeName: String! @col(name: "employee_name")
vendorId: UUID @col(name: "vendor_id") # vendor_id (FK lógica a Vendor.id)
vendorName: String @col(name: "vendor_name")
manager: String
contactNumber: String
contactNumber: String @col(name: "contact_number")
email: String
department: StaffDepartment
hubLocation: String
hubLocation: String @col(name: "hub_location")
track: String
position: String
profileType: ProfileType
employmentType: EmploymentType!
profileType: ProfileType @col(name: "profile_type")
employmentType: EmploymentType! @col(name: "employment_type")
english: EnglishLevel
rate: Float
rating: Float
reliabilityScore: Int
backgroundCheckStatus: BackgroundCheckStatus! # background_check_status
reliabilityScore: Int @col(name: "reliability_score")
backgroundCheckStatus: BackgroundCheckStatus! @col(name: "background_check_status")
notes: String
createdDate: Timestamp @default(expr: "request.time")
updatedDate: Timestamp @default(expr: "request.time")
createdBy: String @default(expr: "auth.uid")