Coflyr · Backend model field catalog

WorkTemplateItem

Maintenance.WorkTemplateItems.

11 mapped fields4 field groupsGenerated 2026-10-10
Model class
coflyr.features.engineering.workrepositories.models.WorkTemplateItem
Source
Features/Engineering/WorkRepositories/Models/WorkTemplate.cs
Table
Maintenance.WorkTemplateItems
Review
Dropped · marked 2026-10-10 · Drop the separate WorkTemplateItem model/table in the review. Reusable template instructions become TemplateStep-role WorkStep rows linked by WorkTemplateMasterId. Preserve hierarchy, ordering, formatted instructions, revision provenance, audit history and planned material/resource demands during deferred adoption.

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

  • 2026-10-10 HTML decision: WorkTemplateItem marked Dropped; use WorkStep TemplateStep rows with WorkTemplateMasterId foreign key and structured demand children. Actual backend class and table remain pending complete review.

← All model classes · AMOS Workpackage example

Dropped · merge into WorkStep. Define template instructions using TemplateStep-role WorkStep rows with WorkTemplateMasterId. The original field inventory is retained below. Backend/database adoption is pending complete review. Review the replacement design.

Identity and naming

2 fields
#FieldEF typeStorageBusiness purposeReview
1IdGuidRequiredMerge into the shared WorkStep.Id. Preserve stable row identity or an explicit identity mapping if IDs collide. Replacement: Id. Backend/database adoption pending complete review.Merged
To WorkStep.Id · pending
2TitlestringRequiredMerge into the shared WorkStep.ActionTitle. Required title on each TemplateStep row; preserve the existing item title capacity. Replacement: ActionTitle. Backend/database adoption pending complete review.Merged
To WorkStep.ActionTitle · pending

Relationships and references

1 fields
#FieldEF typeStorageBusiness purposeReview
1ParentItemIdGuid?NullableMerge into the shared WorkStep.OwnerRecordId. Keep nested TemplateStep rows in the same template/revision context; remap parents when issuing. Replacement: OwnerRecordId. Backend/database adoption pending complete review.Merged
To WorkStep.OwnerRecordId · pending

Audit and revision

4 fields
#FieldEF typeStorageBusiness purposeReview
1RepositoryWorkStepRevisionIdGuid?NullablePreserve the referenced repository instruction revision via explicit source relationship/history during adoption; no replacement revision-ID column is approved here. Replacement: Controlled source relationship / history. Backend/database adoption pending complete review.Dropped
Removal pending complete review
2SystemAuditIdGuid?NullableMerge into the shared WorkStep.SystemAuditId. Preserve audit references and historical evidence. Replacement: SystemAuditId / source audit history. Backend/database adoption pending complete review.Merged
To WorkStep.SystemAuditId · pending
3UpdateIdGuid?NullableMerge into the shared WorkStep.UpdateId. Preserve update-chain identity and source history. Replacement: UpdateId. Backend/database adoption pending complete review.Merged
To WorkStep.UpdateId · pending
4WorkTemplateRevisionIdGuidRequiredMerge into the shared WorkStep.WorkTemplateMasterId. Resolve revision to its owning template. Master FK does not replace exact controlled revision history; do not reactivate the previously Dropped revision field. Replacement: WorkTemplateMasterId + preserved revision provenance. Backend/database adoption pending complete review.Merged
To WorkStep.WorkTemplateMasterId · pending

Other fields

4 fields
#FieldEF typeStorageBusiness purposeReview
1InstructionHtmlstringNullableMerge into the shared WorkStep.ActionText. Retain complete formatted instructions and review storage/rendering capacity before moving data. Replacement: ActionText. Backend/database adoption pending complete review.Merged
To WorkStep.ActionText · pending
2PartRequestsJsonstringNullableExpand every requested part, quantity and attribute into structured planned demand rows owned by the template step. Replacement: MaterialDemand child WorkStep rows. Backend/database adoption pending complete review.Dropped
Removal pending complete review
3ResourceRequestsJsonstringNullableExpand planned manpower, tools, facilities and timing/quantity details into structured child rows. Replacement: ResourceRequest child WorkStep rows. Backend/database adoption pending complete review.Dropped
Removal pending complete review
4SequenceintRequiredMerge into the shared WorkStep.WorkStepNumber. Positive whole-number text, ordered numerically; preserve sibling order and hierarchy. Replacement: WorkStepNumber. Backend/database adoption pending complete review.Merged
To WorkStep.WorkStepNumber · pending

Template steps in WorkStep

WorkTemplateItem is Dropped in this proposal. Backend classes and physical tables remain unchanged pending complete review.

WorkTemplateMaster owns reusable TemplateStep-role WorkStep rows through WorkTemplateMasterId. Template steps can have parent/child instructions and structured planned material/resource demand. Issuing creates independent executable WorkStep rows owned by a WorkorderMaster, with copied definitions and demands and preserved template/source revision provenance.

Former item fieldWorkStep treatmentPreserved behavior
WorkTemplateItem.IdIdPreserve stable row identity or an explicit identity mapping if IDs collide.
WorkTemplateItem.WorkTemplateRevisionIdWorkTemplateMasterId + preserved revision provenanceResolve revision to its owning template. Master FK does not replace exact controlled revision history; do not reactivate the previously Dropped revision field.
WorkTemplateItem.ParentItemIdOwnerRecordIdKeep nested TemplateStep rows in the same template/revision context; remap parents when issuing.
WorkTemplateItem.RepositoryWorkStepRevisionIdControlled source relationship / historyPreserve the referenced repository instruction revision via explicit source relationship/history during adoption; no replacement revision-ID column is approved here.
WorkTemplateItem.SequenceWorkStepNumberPositive whole-number text, ordered numerically; preserve sibling order and hierarchy.
WorkTemplateItem.TitleActionTitleRequired title on each TemplateStep row; preserve the existing item title capacity.
WorkTemplateItem.InstructionHtmlActionTextRetain complete formatted instructions and review storage/rendering capacity before moving data.
WorkTemplateItem.PartRequestsJsonMaterialDemand child WorkStep rowsExpand every requested part, quantity and attribute into structured planned demand rows owned by the template step.
WorkTemplateItem.ResourceRequestsJsonResourceRequest child WorkStep rowsExpand planned manpower, tools, facilities and timing/quantity details into structured child rows.
WorkTemplateItem.SystemAuditIdSystemAuditId / source audit historyPreserve audit references and historical evidence.
WorkTemplateItem.UpdateIdUpdateIdPreserve update-chain identity and source history.

Ownership and issuing rules