- Updated GetStaffByIdStaff, GetStaffByUserIdStaffs, ListStaffStaffs, and UpdateStaffVariablesBuilder classes to replace AnyValue with List<String> for skills and industries. - Modified JSON serialization and deserialization logic accordingly. - Adjusted ExperienceRepositoryImpl to handle List<String> for industries and skills. - Updated GraphQL mutations and schema to reflect changes in data types for skills and industries.
94 lines
1.5 KiB
GraphQL
94 lines
1.5 KiB
GraphQL
|
|
enum BackgroundCheckStatus {
|
|
PENDING
|
|
CLEARED
|
|
FAILED
|
|
EXPIRED
|
|
NOT_REQUIRED
|
|
}
|
|
|
|
enum EmploymentType {
|
|
FULL_TIME
|
|
PART_TIME
|
|
ON_CALL
|
|
WEEKENDS
|
|
SPECIFIC_DAYS
|
|
SEASONAL
|
|
MEDICAL_LEAVE
|
|
}
|
|
|
|
enum DepartmentType {
|
|
OPERATIONS
|
|
SALES
|
|
HR
|
|
FINANCE
|
|
IT
|
|
MARKETING
|
|
CUSTOMER_SERVICE
|
|
LOGISTICS
|
|
}
|
|
|
|
enum EnglishProficiency {
|
|
FLUENT
|
|
INTERMEDIATE
|
|
BASIC
|
|
NONE
|
|
}
|
|
|
|
type Staff @table(name: "staffs") {
|
|
id: UUID! @default(expr: "uuidV4()")
|
|
userId: String!
|
|
|
|
# Identity
|
|
fullName: String!
|
|
level: String
|
|
role: String
|
|
phone: String
|
|
email: String
|
|
photoUrl: String
|
|
|
|
# Metrics
|
|
totalShifts: Int
|
|
averageRating: Float
|
|
onTimeRate: Int
|
|
noShowCount: Int
|
|
cancellationCount: Int
|
|
reliabilityScore: Int
|
|
|
|
# Gamification
|
|
xp: Int @default(expr: "0")
|
|
badges: Any
|
|
|
|
# Profile
|
|
bio: String
|
|
skills: [String] #changed it for staffRole
|
|
industries: [String]
|
|
preferredLocations: [String]
|
|
maxDistanceMiles: Int
|
|
languages: Any
|
|
itemsAttire: Any
|
|
|
|
# Recommendation
|
|
isRecommended: Boolean @default(expr: "false")
|
|
|
|
# Relations / ownership
|
|
ownerId: UUID #vendor/business
|
|
|
|
# web
|
|
department: DepartmentType
|
|
hubId: UUID
|
|
manager: UUID
|
|
english: EnglishProficiency
|
|
|
|
backgroundCheckStatus: BackgroundCheckStatus
|
|
employmentType: EmploymentType
|
|
initial: String
|
|
englishRequired: Boolean @default(expr: "false")
|
|
city: String
|
|
addres: String
|
|
|
|
createdAt: Timestamp @default(expr: "request.time")
|
|
updatedAt: Timestamp @default(expr: "request.time")
|
|
createdBy: String
|
|
}
|