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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| SiteId | uuid | not null, references Sites.Id | CASCADE. |
| Hostname | character varying(253) | not null | Lower-cased, no scheme. |
| Status | text | not null | `SiteDomainStatus`. |
| VerificationToken | text | not null | TXT record value the Company must publish. |
| FirebaseDomainName | text | The Firebase Hosting customDomains resource name once created. | |
| IsPrimary | boolean | not null | Other hostnames and the Subdomain redirect to the primary. |
| LastCheckedAt | timestamp with time zone | ||
| FailureReason | character varying(500) | ||
| CreatedAt | timestamp with time zone | not null | |
| ModifiedAt | timestamp with time zone | ||
| IsDeleted | boolean | not null | |
| DeletedAt | timestamp with time zone |
Indexes (2)
(Hostname)unique (IX_SiteDomains_Hostname)(SiteId, IsPrimary)(IX_SiteDomains_SiteId_IsPrimary)
Relationships
SiteDomains.SiteIdreferencesSites.Id