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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| Action | character varying(128) | not null | |
| EntityType | character varying(64) | not null | |
| EntityId | uuid | ||
| UserId | character varying(450) | ||
| character varying(256) | |||
| IpAddress | character varying(64) | ||
| CorrelationId | uuid | ||
| RequestPayloadJson | text | ||
| Outcome | character varying(32) | not null | |
| FailureReason | text | ||
| CreatedAt | timestamp with time zone | not null | |
| ModifiedAt | timestamp with time zone | ||
| IsDeleted | boolean | not null | |
| DeletedAt | timestamp with time zone |
Indexes (4)
(EntityType, EntityId)(IX_MlAuditLog_EntityType_EntityId)(UserId)(IX_MlAuditLog_UserId)(CorrelationId)(IX_MlAuditLog_CorrelationId)(CreatedAt)(IX_MlAuditLog_CreatedAt)