28 lines
707 B
GraphQL
28 lines
707 B
GraphQL
enum AttireVerificationStatus {
|
|
PENDING
|
|
PROCESSING
|
|
AUTO_PASS
|
|
AUTO_FAIL
|
|
NEEDS_REVIEW
|
|
APPROVED
|
|
REJECTED
|
|
ERROR
|
|
}
|
|
|
|
type StaffAttire @table(name: "staff_attires", key: ["staffId", "attireOptionId"]) {
|
|
staffId: UUID!
|
|
staff: Staff! @ref(fields: "staffId", references: "id")
|
|
|
|
attireOptionId: UUID!
|
|
attireOption: AttireOption! @ref(fields: "attireOptionId", references: "id")
|
|
|
|
# Verification Metadata
|
|
verificationStatus: AttireVerificationStatus @default(expr: "'PENDING'")
|
|
verifiedAt: Timestamp
|
|
verificationPhotoUrl: String # Proof of ownership
|
|
verificationId: String
|
|
|
|
createdAt: Timestamp @default(expr: "request.time")
|
|
updatedAt: Timestamp @default(expr: "request.time")
|
|
}
|