SiteDomains table

The SiteDomains table in the FitStack - V2 schema has 13 columns, keyed by Id, with 1 foreign key to Sites.

A Company's own domain serving its Site (ADR 0012: via the Firebase Hosting API).

Columns (13)

Columns of the SiteDomains table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
SiteIduuidnot null, references Sites.IdCASCADE.
Hostnamecharacter varying(253)not nullLower-cased, no scheme.
Statustextnot null`SiteDomainStatus`.
VerificationTokentextnot nullTXT record value the Company must publish.
FirebaseDomainNametextThe Firebase Hosting customDomains resource name once created.
IsPrimarybooleannot nullOther hostnames and the Subdomain redirect to the primary.
LastCheckedAttimestamp with time zone
FailureReasoncharacter varying(500)
CreatedAttimestamp with time zonenot null
ModifiedAttimestamp with time zone
IsDeletedbooleannot null
DeletedAttimestamp with time zone

Indexes (2)

  • (Hostname) unique (IX_SiteDomains_Hostname)
  • (SiteId, IsPrimary) (IX_SiteDomains_SiteId_IsPrimary)

Relationships