chore(legacy): relocate v1 dataconnect source
This commit is contained in:
35
legacy/dataconnect-v1/schema/staffDocument.gql
Normal file
35
legacy/dataconnect-v1/schema/staffDocument.gql
Normal file
@@ -0,0 +1,35 @@
|
||||
enum DocumentStatus {
|
||||
PENDING
|
||||
PROCESSING
|
||||
AUTO_PASS
|
||||
AUTO_FAIL
|
||||
NEEDS_REVIEW
|
||||
APPROVED
|
||||
REJECTED
|
||||
ERROR
|
||||
UPLOADED
|
||||
EXPIRING
|
||||
MISSING
|
||||
VERIFIED
|
||||
}
|
||||
|
||||
type StaffDocument @table(name: "staff_documents", key: ["staffId", "documentId"]) {
|
||||
id: UUID! @default(expr: "uuidV4()")
|
||||
staffId: UUID!
|
||||
staffName: String!
|
||||
documentId: UUID!
|
||||
document: Document! @ref(fields: "documentId", references: "id")
|
||||
|
||||
status: DocumentStatus! @default(expr: "'PENDING'")
|
||||
documentUrl: String
|
||||
expiryDate: Timestamp
|
||||
|
||||
# Verification Metadata (Align with Attire flow)
|
||||
verificationId: String
|
||||
verifiedAt: Timestamp
|
||||
rejectionReason: String
|
||||
|
||||
createdAt: Timestamp @default(expr: "request.time")
|
||||
updatedAt: Timestamp @default(expr: "request.time")
|
||||
createdBy: String
|
||||
}
|
||||
Reference in New Issue
Block a user