Skip to main content
Version: v1 (Current)

Badge printing data relationships

This map describes the current model relationships used by credential rendering and print-job tracking. It is not a complete database schema: attributes below are selected model fields, and relationship lines do not specify every database constraint or nullability rule.

Read the relationships correctly​

  • A credential belongs to a credential type, using attendee_credential_type_id. Its accepted badge value is identifier; do not invent separate barcode_uuid or credential_number fields from the earlier conceptual diagram.
  • An attendee can have no credential, one credential or multiple credentials. Default assignment does not establish a mandatory one-to-one relationship, and changing a default does not migrate existing records.
  • The type links to a badge template. The template owns versions and separately selects a current version through current_version_id. Publication and current-version selection are distinct.
  • A print job references one printable entity through printable_id and printable_type. The two printable lines are alternatives, not a requirement to attach both a credential and a social post. The current creation API recognizes those two types; a polymorphic relation does not make every model printable automatically.
  • PrintJob does not store the old physical attendee_credential_id column as its printable identity. Its compatibility accessor derives that value only for credential jobs. It also does not use a job-level template_id in the current fillable contract.
  • Audit records can reference a credential without a print job. The content endpoints record generation/request activity separately; a print_generated entry is not proof of successful rendering or physical printing.
  • Reader assignment, job status and an audit record are separate from a device acknowledgment. The model status enum does not by itself prove a transition policy or a completed physical print.

No group-to-credential-type auto-assignment relationship is asserted by this map. Use the actual assignment workflow described in Credential types, rather than adding fields from the old conceptual schema.

Verification scope​

Selected fields and relationships were reconciled with AttendeeCredentialType, AttendeeCredential, BadgeTemplate, PrintJob and PrintAuditLog model source on 2026-10-14. Inspect migrations for physical constraints and full schemas; this relationship guide does not certify deployed migrations or hardware behavior.