WorkEmailCodes table
The WorkEmailCodes table in the Shipfolio schema has 10 columns, keyed by Id, with 2 foreign keys to AspNetUsers and Companies.
Columns (10)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key | |
| UserId | uuid | not null, references AspNetUsers.Id | |
| CompanyId | uuid | not null, references Companies.Id | |
| Domain | varchar(253) | not null | |
| AddressHash | varchar(64) | not null | |
| CodeHash | varchar(64) | not null | |
| SentAt | timestamptz | not null | |
| ExpiresAt | timestamptz | not null | |
| Attempts | integer | not null | |
| UsedAt | timestamptz |
Indexes (4)
(AddressHash, SentAt)(IX_WorkEmailCodes_AddressHash_SentAt)(CompanyId)(IX_WorkEmailCodes_CompanyId)(SentAt)(IX_WorkEmailCodes_SentAt)(UserId, SentAt)(IX_WorkEmailCodes_UserId_SentAt)
Relationships
WorkEmailCodes.UserIdreferencesAspNetUsers.IdWorkEmailCodes.CompanyIdreferencesCompanies.Id