31 lines
999 B
C#
31 lines
999 B
C#
using Marco.Pms.Model.Master;
|
|
using Marco.Pms.Model.Utilities;
|
|
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Marco.Pms.Model.Inventory
|
|
{
|
|
public class ProductSupplierMapping : TenantRelation
|
|
{
|
|
public Guid Id { get; set; }
|
|
public Guid ProductDetailId { get; set; }
|
|
|
|
[ValidateNever]
|
|
[ForeignKey("ProductDetailId")]
|
|
public ProductDetail? ProductDetail { get; set; }
|
|
public Guid SupplierId { get; set; }
|
|
|
|
[ValidateNever]
|
|
[ForeignKey("SupplierId")]
|
|
public Supplier? Supplier { get; set; }
|
|
public double BasePrice { get; set; }
|
|
public int PurchaseLeadTime { get; set; }
|
|
public Guid CurrencyId { get; set; }
|
|
|
|
[ValidateNever]
|
|
[ForeignKey("CurrencyId")]
|
|
public CurrencyMaster? Currency { get; set; }
|
|
public DateTime ExpireAt { get; set; }
|
|
public bool IsActive { get; set; } = true;
|
|
}
|
|
} |