chore(legacy): relocate v1 dataconnect source
This commit is contained in:
27
legacy/dataconnect-v1/schema/staffAttire.gql
Normal file
27
legacy/dataconnect-v1/schema/staffAttire.gql
Normal file
@@ -0,0 +1,27 @@
|
||||
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")
|
||||
}
|
||||
Reference in New Issue
Block a user