31 lines
1.1 KiB
C#

using Marco.Pms.Model.Employees;
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
using System.ComponentModel.DataAnnotations.Schema;
namespace Marco.Pms.Model.Inventory
{
public class Supplier
{
public Guid Id { get; set; }
public string Name { get; set; } = default!;
public string? Email { get; set; }
public string SupplierGroup { get; set; } = default!;
public string BankName { get; set; } = default!;
public string AccountNumber { get; set; } = default!;
public string IFSC { get; set; } = default!;
public string SupplierUId { get; set; } = "Supplier-00001";
public bool IsActive { get; set; } = true;
public DateTime CreatedAt { get; set; }
public Guid CreatedById { get; set; }
[ValidateNever]
[ForeignKey("CreatedById")]
public Employee? CreatedBy { get; set; }
public DateTime? UpdatedAt { get; set; }
public Guid? UpdatedById { get; set; }
[ValidateNever]
[ForeignKey("UpdatedById")]
public Employee? UpdatedBy { get; set; }
}
}