adding missing schema for event

This commit is contained in:
José Salazar
2025-12-17 11:58:19 -05:00
parent 7bbc248ce1
commit d98b816cc7
5 changed files with 201 additions and 63 deletions

View File

@@ -42,16 +42,22 @@ enum BackgroundCheckStatus {
type Staff @table(name: "staffs") {
id: UUID! @default(expr: "uuidV4()")
employeeName: String! @col(name: "employee_name")
vendorId: String @col(name: "vendor_id") # vendor_id (FK lógica a Vendor.id)
employeeName: String! @col(name: "employee_name")
initial:String@col(name:"initial") # nuevo
vendorId: String @default(expr: "auth.uid")#String @col(name: "vendor_id") # vendor_id (FK lógica a Vendor.id)
vendorName: String @col(name: "vendor_name")
manager: String
contactNumber: String @col(name: "contact_number")
phone: String @col(name:"phone") # nuevo
email: String
department: StaffDepartment
hubLocation: String @col(name: "hub_location")
hubLocation: String @col(name: "hub_location")
eventLocation:String@col(name:"event_location") # nuevo
address:String@col(name:"address") # nuevo
city:String@col(name:"city") # nuevo
track: String
position: String
position2: String @col(name:"position_2") # nuevo
profileType: ProfileType @col(name: "profile_type")
employmentType: EmploymentType @col(name: "employment_type")
english: EnglishLevel
@@ -60,6 +66,19 @@ type Staff @table(name: "staffs") {
reliabilityScore: Int @col(name: "reliability_score")
backgroundCheckStatus: BackgroundCheckStatus @col(name: "background_check_status")
notes: String
accountingComments: String @col(name:"accounting_comments") # nuevo
shiftCoveragePercentage: Int @col(name:"shift_coverage_percentage") # nuevo
cancellationCount: Int @col(name:"cancellation_count") # nuevo
noShowCount: Int @col(name:"no_show_count") # nuevo
totalShifts: Int @col(name:"total_shifts") # nuevo
invoiced: Boolean @default(expr:"false") # nuevo
englishRequired: Boolean @col(name:"english_required")@default(expr:"false") # nuevo
checkIn: String @col(name:"check_in") # nuevo
scheduleDays: String @col(name:"schedule_days") # nuevo
replacedBy: String @col(name:"replaced_by") # nuevo
action: String # nuevo
ro: String # nuevo
mon: String # nuevo
createdDate: Timestamp @default(expr: "request.time")
updatedDate: Timestamp @default(expr: "request.time")
createdBy: String @default(expr: "auth.uid")