This commit is contained in:
2021-02-15 17:45:21 +00:00
parent 075347e539
commit db4517d359
2 changed files with 108 additions and 1 deletions

View File

@@ -0,0 +1,60 @@
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
/*
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
*/