Files
raven/server/AyaNova/models/WorkOrderItemPriority.cs

34 lines
1008 B
C#

using AyaNova.Biz;
using System.ComponentModel.DataAnnotations;
using Newtonsoft.Json;
namespace AyaNova.Models
{
//NOTE: Any non required field (nullable in DB) sb nullable here, i.e. decimal? not decimal,
//otherwise the server will call it an invalid record if the field isn't sent from client
public class WorkOrderItemPriority
{
public long Id { get; set; }
public uint Concurrency { get; set; }
[Required]
public string Name { get; set; }
public bool Active { get; set; }
[MaxLength(12)]
public string Color { get; set; } = "#ffffffff";//white / no color is the default
}//eoc
}//eons
/*
[dbo].[APRIORITY](
[AID] [uniqueidentifier] NOT NULL,
[ACREATED] [datetime] NOT NULL,
[ACREATOR] [uniqueidentifier] NOT NULL,
[AMODIFIER] [uniqueidentifier] NOT NULL,
[ANAME] [nvarchar](255) NOT NULL,
[AMODIFIED] [datetime] NOT NULL,
[AARGB] [int] NOT NULL,
[AACTIVE] [bit] NOT NULL,
*/