LoginEvents table
The LoginEvents table in the Shipfolio schema has 11 columns, keyed by Id, with 1 foreign key to BanEntries. 1 column in SecondFactorChallenges references it.
Columns (11)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key | |
| UserId | uuid | ||
| varchar(256) | |||
| Provider | varchar(20) | not null | |
| Succeeded | boolean | not null | |
| Error | varchar(500) | ||
| OccurredAt | timestamptz | not null | |
| BanEntryId | uuid | references BanEntries.Id | |
| IpAddress | varchar(45) | ||
| UserAgent | varchar(512) | ||
| SecondFactor | varchar(50) |
Indexes (3)
(BanEntryId)(IX_LoginEvents_BanEntryId)(OccurredAt)(IX_LoginEvents_OccurredAt)(UserId, OccurredAt)(IX_LoginEvents_UserId_OccurredAt)
Relationships
LoginEvents.BanEntryIdreferencesBanEntries.IdSecondFactorChallenges.LoginEventIdreferencesLoginEvents