using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Newtonsoft.Json; namespace AyaNova.Models { public class PurchaseOrderItem { public long Id { get; set; } public uint Concurrency { get; set; } [Required] public long PurchaseOrderId { get; set; } [JsonIgnore] public PurchaseOrder PurchaseOrder { get; set; } }//eoc }//eons /* ** Also add receiveddate as a line item field CREATE TABLE [dbo].[APURCHASEORDERITEM]( [AID] [uniqueidentifier] NOT NULL, [APURCHASEORDERID] [uniqueidentifier] NOT NULL, [ACREATOR] [uniqueidentifier] NOT NULL, [AMODIFIER] [uniqueidentifier] NOT NULL, [ACREATED] [datetime] NOT NULL, [AMODIFIED] [datetime] NOT NULL, [APARTID] [uniqueidentifier] NOT NULL, [AQUANTITYORDERED] [decimal](19, 5) NULL, [APURCHASEORDERCOST] [decimal](19, 5) NULL, [AQUANTITYRECEIVED] [decimal](19, 5) NULL, [ACLOSED] [bit] NOT NULL, [AWORKORDERITEMPARTREQUESTID] [uniqueidentifier] NULL, [APARTREQUESTEDBYID] [uniqueidentifier] NULL, [APARTWAREHOUSEID] [uniqueidentifier] NULL, [APURCHASETAXCODEID] [uniqueidentifier] NULL, CREATE TABLE [dbo].[APURCHASEORDERRECEIPTITEM]( [AID] [uniqueidentifier] NOT NULL, [APURCHASEORDERRECEIPTID] [uniqueidentifier] NOT NULL, [ACREATED] [datetime] NOT NULL, [AMODIFIED] [datetime] NOT NULL, [ACREATOR] [uniqueidentifier] NOT NULL, [AMODIFIER] [uniqueidentifier] NOT NULL, [APARTID] [uniqueidentifier] NOT NULL, [APARTWAREHOUSEID] [uniqueidentifier] NOT NULL, [APURCHASEORDERID] [uniqueidentifier] NOT NULL, [APURCHASEORDERITEMID] [uniqueidentifier] NOT NULL, [ARECEIPTCOST] [decimal](19, 5) NOT NULL, [AQUANTITYRECEIVED] [decimal](19, 5) NOT NULL, PRIMARY KEY NONCLUSTERED */