enum CertificationType {
  LEGAL
  OPERATIONAL
  SAFETY
  TRAINING
  LICENSE
  OTHER
}

enum CertificationStatus {
  CURRENT
  EXPIRING_SOON
  EXPIRED
  PENDING_VALIDATION
}

enum CertificationValidationStatus {
  APPROVED
  PENDING_EXPERT_REVIEW
  REJECTED
  AI_VERIFIED
  AI_FLAGGED
  MANUAL_REVIEW_NEEDED
}

type Certification @table(name: "certification") {
  id: UUID! @default(expr: "uuidV4()")
  employeeName: String!
  certificationName: String!
  certificationType: CertificationType
  status: CertificationStatus
  expiryDate: String!
  validationStatus: CertificationValidationStatus
  createdDate: Timestamp @default(expr: "request.time")
  updatedDate: Timestamp @default(expr: "request.time")
  createdBy: String @default(expr: "auth.uid")
}
