{ "name": "Certification", "type": "object", "properties": { "employee_id": { "type": "string", "description": "Staff member ID" }, "employee_name": { "type": "string", "description": "Staff member name" }, "vendor_id": { "type": "string", "description": "Vendor ID who owns this employee" }, "vendor_name": { "type": "string", "description": "Vendor name" }, "certification_type": { "type": "string", "enum": [ "Background Check", "RBS", "Food Handler" ], "description": "Type of certification - all 3 are required for every employee" }, "status": { "type": "string", "enum": [ "current", "expiring_soon", "expired", "pending" ], "default": "pending", "description": "Current status of certification" }, "issue_date": { "type": "string", "format": "date", "description": "Date certification was issued" }, "expiry_date": { "type": "string", "format": "date", "description": "Date certification expires" }, "issuer": { "type": "string", "description": "Name of issuing authority" }, "certificate_number": { "type": "string", "description": "Certificate number or ID" }, "document_url": { "type": "string", "description": "URL to uploaded certificate document" }, "days_until_expiry": { "type": "number", "description": "Auto-calculated days until expiry" }, "alert_sent_30_days": { "type": "boolean", "default": false, "description": "Has 30-day expiry alert been sent" }, "last_alert_date": { "type": "string", "format": "date-time", "description": "When last alert was sent" }, "notes": { "type": "string", "description": "Additional notes about this certification" } }, "required": [ "employee_id", "employee_name", "certification_type", "expiry_date" ] }