using CPRNIMS.Infrastructure.Entities.Purchasing; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CPRNIMS.Infrastructure.Entities.Inventory { [Table("RIS")] public class RIS { [Key] public long RISId { get; set; } [Required, MaxLength(50)] public string RISNo { get; set; } = string.Empty; public int InventoryId { get; set; } public long PRDetailId { get; set; } public byte DisciplineId { get; set; } public decimal QtyIssued { get; set; } [MaxLength(500)] public string? Remarks { get; set; } public short Status { get; set; } = 0; [Required, MaxLength(450)] public string CreatedBy { get; set; } = string.Empty; public DateTime CreatedDate { get; set; } = DateTime.Now; public string? ApprovedBy { get; set; } public DateTime? ApprovedDate { get; set; } public string? CanceledBy { get; set; } public DateTime? CanceledDate { get; set; } public string? Reason { get; set; } public int ProjectCodeId { get; set; } public ProjectCodes ProjectCodes { get; set; } = null!; public Inventory Inventory { get; set; } = null!; public PRDetails PRDetail { get; set; } = null!; public Discipline Discipline { get; set; } = null!; public ICollection MaterialReturns { get; set; } = []; } }