using System.ComponentModel.DataAnnotations; using Newtonsoft.Json; namespace AyaNova.Models { //NOTE: This is a feeder collection that is used to select from to tag a workorder item's single status field //whereas a workorder has a whole collection of workorder states that are set from a separate feeder workorderstate public class WorkOrderItemStatus { public long Id { get; set; } public uint Concurrency { get; set; } [Required] public string Name { get; set; } public bool Active { get; set; } public string Notes { get; set; } /* Hexadecimal notation: #RGB[A] R (red), G (green), B (blue), and A (alpha) are hexadecimal characters (0–9, A–F). A is optional. The three-digit notation (#RGB) is a shorter version of the six-digit form (#RRGGBB). For example, #f09 is the same color as #ff0099. Likewise, the four-digit RGB notation (#RGBA) is a shorter version of the eight-digit form (#RRGGBBAA). For example, #0f38 is the same color as #00ff3388. */ [MaxLength(12)] public string Color { get; set; } public WorkOrderItemStatus() { Color = "#ffffffff";//white / no color is the default } }//eoc }//eons /* [dbo].[AWORKORDERSTATUS]( [AID] [uniqueidentifier] NOT NULL, [ACREATED] [datetime] NOT NULL, [AMODIFIED] [datetime] NOT NULL, [AACTIVE] [bit] NOT NULL, [ACREATOR] [uniqueidentifier] NOT NULL, [AMODIFIER] [uniqueidentifier] NOT NULL, [ANAME] [nvarchar](255) NOT NULL, [ADESCRIPTION] [nvarchar](255) NULL, [AARGB] [int] NOT NULL V8: Split from workorder status for v8, for item it's still a single value and migrate should bring over all into both workorderstatus and this workorderitemstatus */