MlAuditLog table

The MlAuditLog table in the FitStack - V2 schema has 15 columns, keyed by Id.

SINGULAR table name; C# class is `MlAuditLogEntry`. No DbSet. Structurally the same idea as `CoachDataAccessLogs` (62) — who did what to which entity, with the outcome — and a good precedent to follow when implementing it.

Columns (15)

Columns of the MlAuditLog table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
Actioncharacter varying(128)not null
EntityTypecharacter varying(64)not null
EntityIduuid
UserIdcharacter varying(450)
Emailcharacter varying(256)
IpAddresscharacter varying(64)
CorrelationIduuid
RequestPayloadJsontext
Outcomecharacter varying(32)not null
FailureReasontext
CreatedAttimestamp with time zonenot null
ModifiedAttimestamp with time zone
IsDeletedbooleannot null
DeletedAttimestamp with time zone

Indexes (4)

  • (EntityType, EntityId) (IX_MlAuditLog_EntityType_EntityId)
  • (UserId) (IX_MlAuditLog_UserId)
  • (CorrelationId) (IX_MlAuditLog_CorrelationId)
  • (CreatedAt) (IX_MlAuditLog_CreatedAt)