fix: Update staff's cerficate schema to create queries and mutations

This commit is contained in:
dhinesh-m24
2026-02-25 15:42:19 +05:30
parent d126ece7ce
commit 30092146bf
2 changed files with 43 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ enum ValidationStatus {
}
type Certificate @table(name: "certificates") {
type Certificate @table(name: "certificates", key: ["staffId", "certificationType"]) {
id: UUID! @default(expr: "uuidV4()")
name: String!
@@ -39,7 +39,7 @@ type Certificate @table(name: "certificates") {
status: CertificateStatus!
fileUrl: String
icon: String
certificationType: ComplianceType
certificationType: ComplianceType!
issuer: String #Issuing Authority
certificateNumber: String