mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 09:33:13 +00:00
- Create DropdownOption model with Category, Value, ParentValue for Trade/SubTrade/Problem - Add DropdownOptionsController with CRUD + ByCategory endpoint with parent filtering - Add Problem, Trade, SubTrade, VendorNTE, ScheduledDate, CompletedDate, Source to WorkOrder - Update EditWorkorder_DTO and GetWorkorderById with new fields - Audit log tracks changes to all new fields - Seed default Trades (10), SubTrades (20), and Problems (11) on startup
12 lines
360 B
C#
12 lines
360 B
C#
namespace Data.SeaHavenIndustries
|
|
{
|
|
public class DropdownOption
|
|
{
|
|
public int Id { get; set; }
|
|
public string Category { get; set; } = "";
|
|
public string Value { get; set; } = "";
|
|
public string? ParentValue { get; set; }
|
|
public int SortOrder { get; set; }
|
|
public bool IsActive { get; set; } = true;
|
|
}
|
|
}
|