using PSTW_CentralSystem.Models;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace PSTW_CentralSystem.Areas.Inventory.Models
{
    [Table("request")]
    public class RequestModel
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int requestID { get; set; }
        public int ProductId { get; set; }
        [ForeignKey("ProductId")]
        public virtual ProductModel? Product { get; set; }
        public int? StationId { get; set; }
        [ForeignKey("StationId")]
        public virtual StationModel? Station { get; set; }
        public int UserId { get; set; }
        [ForeignKey("UserId")]
        public virtual UserModel? User { get; set; }
        public string? ProductCategory {  get; set; }
        public string? remarkUser { get; set; }
        public string? remarkMasterInv { get; set; }
        public string? status { get; set; }
        public DateTime requestDate { get; set; }
        public DateTime? approvalDate { get; set; }
        public int? RequestQuantity { get; set; }
        public string? Document {  get; set; }
        public int? fromStoreItem { get; set; }
        [ForeignKey("fromStoreItem")]
        public virtual StoreModel? Store { get; set; }
        public int? assignStoreItem { get; set; }
        [ForeignKey("assignStoreItem")]
        public virtual StoreModel? Stores { get; set; }

    }
}
