using System; using System.Collections.Generic; using AyaNova.Biz; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; 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 Review : ICoreBizObjectModel { 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; } public string Wiki { get; set; } public string CustomFields { get; set; } public List Tags { get; set; } public DateTime? DateStarted { get; set; } public DateTime? DateCompleted { get; set; } public long? ReviewOverseerId { get; set; } public string AccountNumber { get; set; } public Review() { Tags = new List(); DateStarted = DateTime.UtcNow; } [NotMapped, JsonIgnore] public AyaType AyaType { get => AyaType.Review; } }//eoc }//eons /* DATES should be indexed for fast viewing CREATE TABLE [dbo].[ASCHEDULEMARKER]( [AID] [uniqueidentifier] NOT NULL, [ACREATED] [datetime] NOT NULL, [ACREATOR] [uniqueidentifier] NOT NULL, [AMODIFIER] [uniqueidentifier] NOT NULL, [ANAME] [nvarchar](255) NULL, [ANOTES] [ntext] NULL, [AMODIFIED] [datetime] NULL, [ASTARTDATE] [datetime] NULL, [ASTOPDATE] [datetime] NULL, [ASCHEDULEMARKERSOURCETYPE] [smallint] NULL, [ASOURCEID] [uniqueidentifier] NOT NULL, [AARGB] [int] NULL, [AFOLLOWID] [uniqueidentifier] NULL, [AFOLLOWTYPE] [smallint] NULL, [ACOMPLETED] [bit] NOT NULL, */