CoachCertifications table

The CoachCertifications table in the FitStack - V2 schema has 13 columns, keyed by Id, with 3 foreign keys to Coaches, Media and Users.

Columns (13)

Columns of the CoachCertifications table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
CoachIduuidnot null, references Coaches.IdCASCADE.
Namecharacter varying(200)not null
IssuingBodycharacter varying(200)
IssuedOndate
ExpiresOndate
MediaIduuidreferences Media.Idv2 FIX: real FK to the scanned certificate.
VerifiedByUserIdtextreferences Users.Idv2 ADD.
VerifiedAttimestamp with time zonev2 ADD: null = claimed but unverified. v1 displayed unverified certifications as fact.
CreatedAttimestamp with time zonenot null
ModifiedAttimestamp with time zone
IsDeletedbooleannot null
DeletedAttimestamp with time zone

Indexes (2)

  • (CoachId) (IX_CoachCertifications_CoachId)
  • (ExpiresOn) (IX_CoachCertifications_ExpiresOn)

Relationships

  • CoachCertifications.CoachId references Coaches.Id
  • CoachCertifications.MediaId references Media.Id
  • CoachCertifications.VerifiedByUserId references Users.Id