Files
Krow-workspace/backend/dataconnect/schema/staff.gql
Achintha Isuru 536b020c52 feat: update preferredLocations field to List<String> across staff-related entities and mutations
- Changed preferredLocations from AnyValue to List<String> in GetStaffByIdStaff, GetStaffByUserIdStaffs, ListStaffStaffs, and UpdateStaffVariablesBuilder classes.
- Updated JSON serialization/deserialization for preferredLocations to handle List<String>.
- Modified Staff entity to include preferredLocations as List<String>.
- Adjusted ProfileSetupBloc and PersonalInfoBloc to accommodate changes in preferredLocations.
- Updated PersonalInfoRepositoryImpl to handle preferredLocations as List<String>.
- Refactored PersonalInfoContent and PersonalInfoForm to use locations instead of address.
- Updated GraphQL mutations and schema to reflect the new List<String> type for preferredLocations.
2026-01-27 02:17:52 -05:00

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: Any #changed it for staffRole
industries: Any
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
}