Coflyr · Backend model field catalog

EntityAuditState

Audit.EntityAuditStates.

25 former mapped fieldsDeleted6 field groupsGenerated 2026-10-06
Model class
coflyr.models.common.EntityAuditState
Former source
Features/Shared/Audit/Models/EntityAuditState.cs (removed)
Table
Audit.EntityAuditStates
Review
Reviewed decision 2026-10-06: Delete EntityAuditState model and table. Current and historical audit data are read directly from AuditLogEntries.

This page preserves the former fields for review. The EntityAuditState model and table are removed; existing rows were migrated into AuditLogEntries before the table was dropped. The temporary CurrentAuditStates view and AuditCurrentSnapshot projection were subsequently removed. Every former scalar field appears once. Types and nullability reflect the pre-removal EF snapshot. Navigation properties and unmapped DTO fields are outside this page. Purpose text is inferred from names and should be checked against the feature workflow.

← All model classes · AMOS Workpackage example

Identity and naming

1 fields
#FieldEF typeStorageBusiness purpose
1IdGuidRequiredStable identifier for this record.

Relationships and references

4 fields
#FieldEF typeStorageBusiness purpose
1DepartmentIdGuid?NullableSelects the related department record.
2EntityIdGuidRequiredSelects the related entity record.
3SentToDepartmentIdGuid?NullableSelects the related sent to department record.
4SentToUserIdGuid?NullableSelects the related sent to user record.

Status and controls

4 fields
#FieldEF typeStorageBusiness purpose
1BusinessStatusintRequiredTracks the business status of this entity audit state.
2DocumentStatusstringNullableTracks the document status of this entity audit state.
3PreApprovedboolRequiredIndicates whether pre approved applies to this entity audit state.
4StatusInformationstringNullableRecords status information for this entity audit state.

Dates and timing

2 fields
#FieldEF typeStorageBusiness purpose
1EffectiveDateDateTime?NullableRecords the effective date for this entity audit state.
2ReceivingDateDateTime?NullableRecords the receiving date for this entity audit state.

Audit and revision

8 fields
#FieldEF typeStorageBusiness purpose
1AuditActivationDate
DB: ActivationDate
DateTime?NullableRecords the audit activation date for this entity audit state.
2AuditBystringNullableRecords audit by for this entity audit state.
3AuditDateDateTime?NullableRecords the audit date for this entity audit state.
4AuditRemarksstringNullableRecords audit remarks for this entity audit state.
5AuditStatusintRequiredTracks the audit status of this entity audit state.
6AuditUserIdGuid?NullableSelects the related audit user record.
7CreatedByApnint?NullableRecords created by apn for this entity audit state.
8LatestAuditLogEntryIdGuid?NullableSelects the related latest audit log entry record.

Other fields

6 fields
#FieldEF typeStorageBusiness purpose
1EntityTypestringRequiredRecords entity type for this entity audit state.
2LastChangedApnint?NullableRecords last changed apn for this entity audit state.
3LastChangedFormCodestringNullableRecords last changed form code for this entity audit state.
4ReleaseStateintRequiredRecords release state for this entity audit state.
5ValidFromDateTime?NullableRecords valid from for this entity audit state.
6ValidToDateTime?NullableRecords valid to for this entity audit state.