45 lines
1.4 KiB
C#
45 lines
1.4 KiB
C#
using Marco.Pms.Model.Employees;
|
|
using Marco.Pms.Model.Projects;
|
|
using Marco.Pms.Model.Utilities;
|
|
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Marco.Pms.Model.Inventory
|
|
{
|
|
public class Requisition : TenantRelation
|
|
{
|
|
public Guid Id { get; set; }
|
|
public Guid ItemId { get; set; }
|
|
|
|
[ValidateNever]
|
|
[ForeignKey("ItemId")]
|
|
public Item? Item { get; set; }
|
|
public Guid ProjectId { get; set; }
|
|
|
|
[ValidateNever]
|
|
[ForeignKey("ProjectId")]
|
|
public Project? Project { get; set; }
|
|
public Guid BatchId { get; set; }
|
|
public int NumberOfItems { get; set; }
|
|
public Guid RequisitionStatusId { get; set; }
|
|
|
|
[ValidateNever]
|
|
[ForeignKey("RequisitionStatusId")]
|
|
public RequisitionStatus? RequisitionStatus { get; set; }
|
|
public string RequisitionUId { get; set; } = "Requisition-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; }
|
|
}
|
|
}
|