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)

Columns of the WorkEmailCodes table
ColumnTypeConstraintsDescription
Iduuidprimary key
UserIduuidnot null, references AspNetUsers.Id
CompanyIduuidnot null, references Companies.Id
Domainvarchar(253)not null
AddressHashvarchar(64)not null
CodeHashvarchar(64)not null
SentAttimestamptznot null
ExpiresAttimestamptznot null
Attemptsintegernot null
UsedAttimestamptz

Indexes (4)

  • (AddressHash, SentAt) (IX_WorkEmailCodes_AddressHash_SentAt)
  • (CompanyId) (IX_WorkEmailCodes_CompanyId)
  • (SentAt) (IX_WorkEmailCodes_SentAt)
  • (UserId, SentAt) (IX_WorkEmailCodes_UserId_SentAt)

Relationships