Coflyr · Backend model field catalog
WorkStepPhase
Maintenance.WorkStepPhases.
9 mapped fields5 field groupsGenerated 2026-10-10
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
- Latest WorkStep review decision: consolidate all mapped WorkStep models/field sets into the single WorkStep model and table, including phase and reference details. Mark the other model/table definitions Dropped. Preserve RecordKind, ownership, separate historical/child rows and role-specific validation. HTML only; backend/database implementation remains pending complete review.
← All model classes · AMOS Workpackage example
Dropped · Merge every field into WorkStep. This page retains the source inventory for review; backend/model retirement and physical migration are pending complete review.
Identity and naming
3 fields| # | Field | EF type | Storage | Business purpose | Review |
|---|---|---|---|---|---|
| 1 | Id | Guid | Required | Merge into the shared WorkStep.Id. | Merged To WorkStep.Id · pending |
| 2 | Code | StringRequested: MaintenancePhase? | Required | Drop the separate MaintenancePhase field from the unified WorkStep proposal because the selected task will supply the maintenance phase. During later implementation, map historical phase codes and assignments to task-owned definitions and preserve aircraft/component applicability, revision context and related-phase/counterpart behavior. Task-owned phase selection and remaining phase relationships require implementation review; backend/database adoption remains pending complete review. | Dropped Removal pending complete review |
| 3 | Name | String | Required | Merge into the shared WorkStep.ActionTitle. Merge the phase display name into ActionTitle on its Phase-role WorkStep row. Preserve existing phase names; backend/database adoption pending complete review. | Merged To WorkStep.ActionTitle · pending |
Relationships and references
1 fields| # | Field | EF type | Storage | Business purpose | Review |
|---|---|---|---|---|---|
| 1 | RelatedPhaseId | Guid? | Nullable | Drop RelatedPhaseId from the unified WorkStep proposal following the decision that the task handles phases. The current phase relationship can automatically generate a related counterpart workstep during planning. Preserve existing phase links, generated counterpart identities and historical relationships; review task-owned related-work planning and adapt automatic generation before retiring the relationship. This decision does not drop RestorationCounterpartStepId or approve a replacement field. Backend/database adoption remains pending complete review. | Dropped Removal pending complete review |
Status and controls
1 fields| # | Field | EF type | Storage | Business purpose | Review |
|---|---|---|---|---|---|
| 1 | IsActive | Boolean | Required | Mark IsActive Dropped from the unified WorkStep proposal. Backend/database adoption remains deferred until complete project review. | Dropped Removal pending complete review |
Audit and revision
2 fields| # | Field | EF type | Storage | Business purpose | Review |
|---|---|---|---|---|---|
| 1 | SystemAuditId | Guid? | Nullable | Merge into the shared WorkStep.SystemAuditId. | Merged To WorkStep.SystemAuditId · pending |
| 2 | UpdateId | Guid? | Nullable | Merge into the shared WorkStep.UpdateId. | Merged To WorkStep.UpdateId · pending |
Other fields
2 fields| # | Field | EF type | Storage | Business purpose | Review |
|---|---|---|---|---|---|
| 1 | ColorCode | String | Nullable | Drop ColorCode from the unified WorkStep proposal. Define phase display colours directly in project code, keyed by the task-owned phase, rather than storing a configurable colour field. Backend/database removal and colour implementation remain deferred. | Dropped Removal pending complete review |
| 2 | WorkType | WorkStepPhaseWorkType | Required | Drop WorkType from the unified WorkStep proposal, following the decision that tasks handle phases. Preserve existing Global, Aircraft and Component phase applicability and review how the task-owned design carries these constraints. Adapt phase planning and counterpart applicability checks before retiring storage; this decision does not remove other aircraft/component context fields. Backend/database adoption remains pending complete review. | Dropped Removal pending complete review |