initial commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class Company : BaseEntity
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? Currency { get; set; }
|
||||
public string? Street { get; set; }
|
||||
public string? City { get; set; }
|
||||
public string? State { get; set; }
|
||||
public string? ZipCode { get; set; }
|
||||
public string? Country { get; set; }
|
||||
public string? PhoneNumber { get; set; }
|
||||
public string? FaxNumber { get; set; }
|
||||
public string? EmailAddress { get; set; }
|
||||
public string? Website { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
|
||||
public class Customer : BaseEntity
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public string? Number { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? Street { get; set; }
|
||||
public string? City { get; set; }
|
||||
public string? State { get; set; }
|
||||
public string? ZipCode { get; set; }
|
||||
public string? Country { get; set; }
|
||||
public string? PhoneNumber { get; set; }
|
||||
public string? FaxNumber { get; set; }
|
||||
public string? EmailAddress { get; set; }
|
||||
public string? Website { get; set; }
|
||||
public string? WhatsApp { get; set; }
|
||||
public string? LinkedIn { get; set; }
|
||||
public string? Facebook { get; set; }
|
||||
public string? Instagram { get; set; }
|
||||
public string? TwitterX { get; set; }
|
||||
public string? TikTok { get; set; }
|
||||
public string? CustomerGroupId { get; set; }
|
||||
public CustomerGroup? CustomerGroup { get; set; }
|
||||
public string? CustomerCategoryId { get; set; }
|
||||
public CustomerCategory? CustomerCategory { get; set; }
|
||||
public ICollection<CustomerContact> CustomerContactList { get; set; } = new List<CustomerContact>();
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class CustomerCategory : BaseEntity
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public string? Description { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class CustomerContact : BaseEntity
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public string? Number { get; set; }
|
||||
public string? JobTitle { get; set; }
|
||||
public string? PhoneNumber { get; set; }
|
||||
public string? EmailAddress { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? CustomerId { get; set; }
|
||||
public Customer? Customer { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class CustomerGroup : BaseEntity
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public string? Description { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using Domain.Common;
|
||||
using Domain.Enums;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class DeliveryOrder : BaseEntity
|
||||
{
|
||||
public string? Number { get; set; }
|
||||
public DateTime? DeliveryDate { get; set; }
|
||||
public DeliveryOrderStatus? Status { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? SalesOrderId { get; set; }
|
||||
public SalesOrder? SalesOrder { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
public class FileDocument : BaseEntity
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? OriginalName { get; set; }
|
||||
public string? GeneratedName { get; set; }
|
||||
public string? Extension { get; set; }
|
||||
public long? FileSize { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
public class FileImage : BaseEntity
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? OriginalName { get; set; }
|
||||
public string? GeneratedName { get; set; }
|
||||
public string? Extension { get; set; }
|
||||
public long? FileSize { get; set; }
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
using Domain.Common;
|
||||
using Domain.Enums;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class GoodsReceive : BaseEntity
|
||||
{
|
||||
public string? Number { get; set; }
|
||||
public DateTime? ReceiveDate { get; set; }
|
||||
public GoodsReceiveStatus? Status { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? PurchaseOrderId { get; set; }
|
||||
public PurchaseOrder? PurchaseOrder { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using Domain.Common;
|
||||
using Domain.Enums;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
|
||||
public class InventoryTransaction : BaseEntity
|
||||
{
|
||||
public string? ModuleId { get; set; }
|
||||
public string? ModuleName { get; set; }
|
||||
public string? ModuleCode { get; set; }
|
||||
public string? ModuleNumber { get; set; }
|
||||
public DateTime? MovementDate { get; set; }
|
||||
public InventoryTransactionStatus? Status { get; set; }
|
||||
public string? Number { get; set; }
|
||||
public string? WarehouseId { get; set; }
|
||||
public Warehouse? Warehouse { get; set; }
|
||||
public string? ProductId { get; set; }
|
||||
public Product? Product { get; set; }
|
||||
public double? Movement { get; set; }
|
||||
public InventoryTransType? TransType { get; set; }
|
||||
public double? Stock { get; set; }
|
||||
public string? WarehouseFromId { get; set; }
|
||||
public Warehouse? WarehouseFrom { get; set; }
|
||||
public string? WarehouseToId { get; set; }
|
||||
public Warehouse? WarehouseTo { get; set; }
|
||||
public double? QtySCSys { get; set; }
|
||||
public double? QtySCCount { get; set; }
|
||||
public double? QtySCDelta { get; set; }
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using Domain.Common;
|
||||
using Domain.Enums;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class NegativeAdjustment : BaseEntity
|
||||
{
|
||||
public string? Number { get; set; }
|
||||
public DateTime? AdjustmentDate { get; set; }
|
||||
public AdjustmentStatus? Status { get; set; }
|
||||
public string? Description { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class NumberSequence : BaseEntity
|
||||
{
|
||||
public string? EntityName { get; set; }
|
||||
public string? Prefix { get; set; }
|
||||
public string? Suffix { get; set; }
|
||||
public int? LastUsedCount { get; set; }
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
using Domain.Common;
|
||||
using Domain.Enums;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class PositiveAdjustment : BaseEntity
|
||||
{
|
||||
public string? Number { get; set; }
|
||||
public DateTime? AdjustmentDate { get; set; }
|
||||
public AdjustmentStatus? Status { get; set; }
|
||||
public string? Description { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class Product : BaseEntity
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public string? Number { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public double? UnitPrice { get; set; }
|
||||
public bool? Physical { get; set; } = true;
|
||||
public string? UnitMeasureId { get; set; }
|
||||
public UnitMeasure? UnitMeasure { get; set; }
|
||||
public string? ProductGroupId { get; set; }
|
||||
public ProductGroup? ProductGroup { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class ProductGroup : BaseEntity
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public string? Description { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using Domain.Common;
|
||||
using Domain.Enums;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class PurchaseOrder : BaseEntity
|
||||
{
|
||||
public string? Number { get; set; }
|
||||
public DateTime? OrderDate { get; set; }
|
||||
public PurchaseOrderStatus? OrderStatus { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? VendorId { get; set; }
|
||||
public Vendor? Vendor { get; set; }
|
||||
public string? TaxId { get; set; }
|
||||
public Tax? Tax { get; set; }
|
||||
public double? BeforeTaxAmount { get; set; }
|
||||
public double? TaxAmount { get; set; }
|
||||
public double? AfterTaxAmount { get; set; }
|
||||
public ICollection<PurchaseOrderItem> PurchaseOrderItemList { get; set; } = new List<PurchaseOrderItem>();
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class PurchaseOrderItem : BaseEntity
|
||||
{
|
||||
public string? PurchaseOrderId { get; set; }
|
||||
public PurchaseOrder? PurchaseOrder { get; set; }
|
||||
public string? ProductId { get; set; }
|
||||
public Product? Product { get; set; }
|
||||
public string? Summary { get; set; }
|
||||
public double? UnitPrice { get; set; } = 0;
|
||||
public double? Quantity { get; set; } = 1;
|
||||
public double? Total { get; set; } = 0;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using Domain.Common;
|
||||
using Domain.Enums;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class PurchaseReturn : BaseEntity
|
||||
{
|
||||
public string? Number { get; set; }
|
||||
public DateTime? ReturnDate { get; set; }
|
||||
public PurchaseReturnStatus? Status { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? GoodsReceiveId { get; set; }
|
||||
public GoodsReceive? GoodsReceive { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using Domain.Common;
|
||||
using Domain.Enums;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class SalesOrder : BaseEntity
|
||||
{
|
||||
public string? Number { get; set; }
|
||||
public DateTime? OrderDate { get; set; }
|
||||
public SalesOrderStatus? OrderStatus { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? CustomerId { get; set; }
|
||||
public Customer? Customer { get; set; }
|
||||
public string? TaxId { get; set; }
|
||||
public Tax? Tax { get; set; }
|
||||
public double? BeforeTaxAmount { get; set; }
|
||||
public double? TaxAmount { get; set; }
|
||||
public double? AfterTaxAmount { get; set; }
|
||||
public ICollection<SalesOrderItem> SalesOrderItemList { get; set; } = new List<SalesOrderItem>();
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class SalesOrderItem : BaseEntity
|
||||
{
|
||||
public string? SalesOrderId { get; set; }
|
||||
public SalesOrder? SalesOrder { get; set; }
|
||||
public string? ProductId { get; set; }
|
||||
public Product? Product { get; set; }
|
||||
public string? Summary { get; set; }
|
||||
public double? UnitPrice { get; set; } = 0;
|
||||
public double? Quantity { get; set; } = 1;
|
||||
public double? Total { get; set; } = 0;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using Domain.Common;
|
||||
using Domain.Enums;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class SalesReturn : BaseEntity
|
||||
{
|
||||
public string? Number { get; set; }
|
||||
public DateTime? ReturnDate { get; set; }
|
||||
public SalesReturnStatus? Status { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? DeliveryOrderId { get; set; }
|
||||
public DeliveryOrder? DeliveryOrder { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using Domain.Common;
|
||||
using Domain.Enums;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class Scrapping : BaseEntity
|
||||
{
|
||||
public string? Number { get; set; }
|
||||
public DateTime? ScrappingDate { get; set; }
|
||||
public ScrappingStatus? Status { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? WarehouseId { get; set; }
|
||||
public Warehouse? Warehouse { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using Domain.Common;
|
||||
using Domain.Enums;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class StockCount : BaseEntity
|
||||
{
|
||||
public string? Number { get; set; }
|
||||
public DateTime? CountDate { get; set; }
|
||||
public StockCountStatus? Status { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? WarehouseId { get; set; }
|
||||
public Warehouse? Warehouse { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class Tax : BaseEntity
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public double? Percentage { get; set; }
|
||||
public string? Description { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class Todo : BaseEntity
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public ICollection<TodoItem> TodoItemList { get; set; } = new List<TodoItem>();
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class TodoItem : BaseEntity
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? TodoId { get; set; }
|
||||
public Todo? Todo { get; set; }
|
||||
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class Token : BaseEntity
|
||||
{
|
||||
public string? UserId { get; set; }
|
||||
public string? RefreshToken { get; set; }
|
||||
public DateTimeOffset ExpiryDate { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using Domain.Common;
|
||||
using Domain.Enums;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class TransferIn : BaseEntity
|
||||
{
|
||||
public string? Number { get; set; }
|
||||
public DateTime? TransferReceiveDate { get; set; }
|
||||
public TransferStatus? Status { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? TransferOutId { get; set; }
|
||||
public TransferOut? TransferOut { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using Domain.Common;
|
||||
using Domain.Enums;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class TransferOut : BaseEntity
|
||||
{
|
||||
public string? Number { get; set; }
|
||||
public DateTime? TransferReleaseDate { get; set; }
|
||||
public TransferStatus? Status { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? WarehouseFromId { get; set; }
|
||||
public Warehouse? WarehouseFrom { get; set; }
|
||||
public string? WarehouseToId { get; set; }
|
||||
public Warehouse? WarehouseTo { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class UnitMeasure : BaseEntity
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public string? Description { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
|
||||
public class Vendor : BaseEntity
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public string? Number { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? Street { get; set; }
|
||||
public string? City { get; set; }
|
||||
public string? State { get; set; }
|
||||
public string? ZipCode { get; set; }
|
||||
public string? Country { get; set; }
|
||||
public string? PhoneNumber { get; set; }
|
||||
public string? FaxNumber { get; set; }
|
||||
public string? EmailAddress { get; set; }
|
||||
public string? Website { get; set; }
|
||||
public string? WhatsApp { get; set; }
|
||||
public string? LinkedIn { get; set; }
|
||||
public string? Facebook { get; set; }
|
||||
public string? Instagram { get; set; }
|
||||
public string? TwitterX { get; set; }
|
||||
public string? TikTok { get; set; }
|
||||
public string? VendorGroupId { get; set; }
|
||||
public VendorGroup? VendorGroup { get; set; }
|
||||
public string? VendorCategoryId { get; set; }
|
||||
public VendorCategory? VendorCategory { get; set; }
|
||||
public ICollection<VendorContact> VendorContactList { get; set; } = new List<VendorContact>();
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class VendorCategory : BaseEntity
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public string? Description { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class VendorContact : BaseEntity
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public string? Number { get; set; }
|
||||
public string? JobTitle { get; set; }
|
||||
public string? PhoneNumber { get; set; }
|
||||
public string? EmailAddress { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? VendorId { get; set; }
|
||||
public Vendor? Vendor { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class VendorGroup : BaseEntity
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public string? Description { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class Warehouse : BaseEntity
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public bool? SystemWarehouse { get; set; } = false;
|
||||
}
|
||||
Reference in New Issue
Block a user