Issuing & Custodian Institutions:


SCB QR REGISTRY SYSTEM

Database Schema + Credential Lifecycle Workflow


PART A — SYSTEM OVERVIEW

Purpose

To provide tamper-proof, real-time verification of all Specialty Coffee Barista (SCB) credentials via QR code scanning.

Core Principles

  • One barista = one permanent SCB ID
  • One credential = one verifiable registry record
  • Public can verify, but only the authority can issue, edit, revoke
  • If it’s not in the registry, it’s not valid

PART B — DATABASE SCHEMA (CORE TABLES)

1. scb_professionals

(Master identity table – never deleted)

Field NameTypeDescription
scb_idVARCHAR(20)Unique permanent SCB ID (e.g. SCB-KE-000124)
first_nameVARCHAR(100)Legal first name
last_nameVARCHAR(100)Legal surname
date_of_birthDATEIdentity validation
nationalityVARCHAR(50)Country
genderENUMOptional
photo_urlTEXTProfile photo
phoneVARCHAR(30)Contact
emailVARCHAR(150)Contact
county_cityVARCHAR(100)Location
created_atTIMESTAMPFirst registration date
statusENUMActive / Inactive / Deceased

2. scb_credentials

(Each certification issued)

Field NameTypeDescription
credential_idUUIDUnique credential record
scb_idVARCHAR(20)Links to professional
credential_levelENUMSCB / SCB-C / SCB-P / SCB-A
issue_dateDATECertification date
expiry_dateDATEOptional (CPD-based)
statusENUMActive / Suspended / Revoked / Expired
issuing_bodyVARCHAR(150)Kenya Coffee School
program_pathwayVARCHAR(150)Kenya Coffee School / Barista Mtaani
assessment_referenceVARCHAR(100)Internal assessment ID
qr_hashVARCHAR(255)Encrypted verification hash
revocation_reasonTEXTIf applicable
last_verified_atTIMESTAMPLast QR scan

3. scb_badges

(Digital & physical badge tracking)

Field NameTypeDescription
badge_idUUIDBadge identifier
credential_idUUIDLinked credential
badge_typeENUMDigital / Physical
badge_urlTEXTImage or badge link
qr_code_urlTEXTQR image
issued_atTIMESTAMPDate issued
is_activeBOOLEANTrue / False

4. scb_registry_public_view

(Optimized read-only verification view)

Field ShownSource
Full Namescb_professionals
Photoscb_professionals
SCB IDscb_professionals
Credential Levelscb_credentials
Statusscb_credentials
Issuing Authorityscb_credentials
Issue Datescb_credentials
Expiry Datescb_credentials
Code of EthicsBoolean confirmation

⚠️ No private data (ID numbers, contacts) exposed publicly.


5. scb_disciplinary_log

(Audit & governance)

Field NameTypeDescription
log_idUUIDRecord ID
scb_idVARCHAR(20)Professional
actionENUMWarning / Suspension / Revocation
reasonTEXTEthics or misconduct
decision_byVARCHAR(150)Authority
effective_dateDATEAction start
appeal_statusENUMNone / Pending / Upheld / Reversed

6. scb_system_audit

(Security & compliance)

Field NameType
event_idUUID
user_roleENUM (Admin / Evaluator / Viewer)
actionTEXT
timestampTIMESTAMP
ip_addressVARCHAR(50)

PART C — QR CODE STRUCTURE

QR Encoded URL (Example)

https://registry.kenyacoffeeschool.ac.ke/scb/SCB-KE-000124

Behind the QR:

  • SCB ID
  • Credential hash validation
  • Status check
  • Live database fetch

PART D — REGISTRY WORKFLOW (END-TO-END)

STEP 1: Training Completion

  • Learner completes SCB assessment
  • Results approved by evaluators

STEP 2: Credential Issuance

  • Admin creates record in scb_professionals
  • Credential issued in scb_credentials
  • QR hash generated
  • Digital badge created

STEP 3: Badge & Certificate Delivery

  • Digital badge emailed
  • Certificate PDF generated
  • Physical badge (optional)

STEP 4: Public Verification

Anyone scans QR →

  • Registry page loads
  • Credential status displayed
  • Employer confidence established

STEP 5: Ongoing Monitoring

  • CPD updates
  • Periodic verification
  • Status auto-updates (expiry, suspension)

STEP 6: Suspension or Revocation (If Needed)

  • Ethics panel decision logged
  • Credential status updated
  • QR immediately reflects new status

PART E — USER ROLES & ACCESS CONTROL

Roles

  • Super Admin (Kenya Coffee School) – Full control
  • Evaluator – Assessment input only
  • Registry Officer – Issue & manage credentials
  • Public User – Read-only verification

PART F — LEGAL & DATA PROTECTION

  • GDPR-aligned consent at enrollment
  • Right to correction & appeal
  • No commercial resale of personal data
  • Registry is proof-of-status, not surveillance

PART G — FAILURE & FRAUD PREVENTION

  • QR hash mismatch → “Invalid Credential”
  • Revoked credential → Red warning banner
  • Screenshot or copied QR → status still live-checked

OFFICIAL REGISTRY STATEMENT (PUBLIC)

This registry is the sole authoritative source for verifying Specialty Coffee Barista (SCB) credentials issued by Kenya Coffee School and Barista Mtaani.