Coflyr · Backend model field catalog

DefectActionType

Administration.DefectReferenceValues.

13 mapped fields6 field groupsGenerated 2026-10-06Reviewed
Model class
coflyr.models.administration.DefectActionType
Source
Features/Administration/DefectReferenceLists/Models/DefectReferenceLists.cs
Table
Administration.DefectReferenceValues
Review
Reviewed · marked 2026-10-06 · DefectActionType is a typed row in the shared Administration.DefectReferenceValues table. It inherits the common identity and audit fields from DefectReferenceEntry; active status uses companion EntityAuditState.BusinessStatus. Priority defaults to Routine and RequiresAction defaults to false.

Every mapped scalar field appears once. Types and nullability come from the current EF model 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.

Reviewed changes

  • Merged into Administration.DefectReferenceValues using the ReferenceType discriminator; the DefectActionType class, API, and action-specific fields remain.
  • ParentId: remove the scalar column; manage parent relationships through entity links.
  • IsActive: remove the scalar column; use EntityAuditState.BusinessStatus for active and inactive state.
  • SortOrder: rename to SequenceNumber.
  • DomainQualifiers: store nullable string values; define the allowed-value enum inside DefectActionType.
  • DefectActionType: inherit AuditableEntity so the entity audit lifecycle applies.
  • Priority: add an enum-backed field with Routine, Priority, Urgent, and AircraftOnGround; default to Routine.
  • RequiresAction: add a checkbox (boolean) for follow-up action; default to unchecked.

← All model classes · AMOS Workpackage example

Identity and naming

4 fields
#FieldEF typeStorageBusiness purposeReview
1IdGuidRequiredStable identifier for this record.—
2CodestringRequiredRecords code for this defect action type.—
3NamestringRequiredRecords name for this defect action type.—
4SequenceNumberintRequiredRecords sequence number for this defect action type.Renamed from SortOrder

Relationships and references

1 fields
#FieldEF typeStorageBusiness purposeReview
1ReferenceTypestringRequiredDiscriminator that identifies this shared-table row as a DefectActionType, keeping action choices separate from the other defect reference lists.—

Status and controls

2 fields
#FieldEF typeStorageBusiness purposeReview
1IsNoGoboolRequiredIndicates whether no go applies to this defect action type.—
2RequiresActionboolRequiredIndicates whether selecting this action type requires follow-up work. For example, checking it for a repair action flags the need to record or assign the next action.Checkbox; unchecked (false) by default

Descriptions and details

1 fields
#FieldEF typeStorageBusiness purposeReview
1DescriptionstringNullableRecords description for this defect action type.—

Audit and revision

2 fields
#FieldEF typeStorageBusiness purposeReview
1SystemAuditIdGuid?NullableLinks to system audit history when this model stores the reference.—
2UpdateIdGuid?NullableLinks to the preceding revision or update record.—

Other fields

3 fields
#FieldEF typeStorageBusiness purposeReview
1PriorityintRequiredSets the default urgency when this action type is selected. For example, a routine inspection can default to Routine, while an aircraft-on-ground response can default to AircraftOnGround.Enum: Routine (default), Priority, Urgent, AircraftOnGround
2SeverityLevelint?NullableRecords severity level for this defect action type.—
3DomainQualifiers
DB: ActionDomainQualifiers
stringNullableLimits the reporting domains in which this action type can be selected; null allows every domain.Nullable string; allowed values are defined by the nested DefectActionType enum