using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

// Code scaffolded by EF Core assumes nullable reference types (NRTs) are not used or disabled.
// If you have enabled NRTs for your project, then un-comment the following line:
// #nullable disable

namespace MS.Entities.Models
{
    //public partial class PosItems
    //{
    //    public PosItems()
    //    {
    //        //PosItemAndGroupM2m = new HashSet<PosItemAndGroupM2m>();
    //        PosPopularItems = new HashSet<PosPopularItems>();
    //        PosTrxLineItems = new HashSet<PosTrxLineItems>();
    //    }
    //    [Key]
    //    public Guid Id { get; set; }
    //    public string ItemId { get; set; }
    //    public string BarCode { get; set; }
    //    public string ItemName { get; set; }
    //    public decimal Price { get; set; }
    //    public DateTime DateToActivate { get; set; }
    //    public DateTime DateToDeactivate { get; set; }
    //    public DateTime CreatedDateTime { get; set; }
    //    public bool IsFuelItem { get; set; }
    //    public Guid? TargetBusinessUnitId { get; set; }
    //    public int Status { get; set; }
    //    public DateTime? DeletedDateTime { get; set; }
    //    public bool IsDeleted { get; set; }
    //    public DateTime ModifiedDateTime { get; set; }
    //    public string Note { get; set; }
    //    public int RewardPoints { get; set; }
    //    public DateTime RpDateToActivate { get; set; }
    //    public DateTime RpDateToDeactivate { get; set; }

    //    //public virtual ICollection<PosItemAndGroupM2m> PosItemAndGroupM2m { get; set; }
    //    public virtual ICollection<PosPopularItems> PosPopularItems { get; set; }
    //    [ForeignKey("PosTrxLineItems")]
    //    public virtual ICollection<PosTrxLineItems> PosTrxLineItems { get; set; }
    //}
    public partial class PosItems
    {
        public PosItems()
        {
            //PosItemAndGroupM2m = new HashSet<PosItemAndGroupM2m>();
            PosPopularItems = new HashSet<PosPopularItems>();
            PosTrxLineItems = new HashSet<PosTrxLineItems>();
        }

        [Key]
        public Guid Id { get; set; }
        public string ItemId { get; set; }
        public string BarCode { get; set; }
        public string ItemName { get; set; }
        public decimal Price { get; set; }
        public DateTime DateToActivate { get; set; }
        public DateTime DateToDeactivate { get; set; }
        public DateTime CreatedDateTime { get; set; }
        public bool IsFuelItem { get; set; }
        public Guid? TargetBusinessUnitId { get; set; }
        public int Status { get; set; }
        public DateTime? DeletedDateTime { get; set; }
        public bool IsDeleted { get; set; }
        public DateTime ModifiedDateTime { get; set; }
        public string Note { get; set; }
        public int RewardPoints { get; set; }
        public DateTime RpDateToActivate { get; set; }
        public DateTime RpDateToDeactivate { get; set; }

        //public virtual ICollection<PosItemAndGroupM2m> PosItemAndGroupM2m { get; set; }
        public virtual ICollection<PosPopularItems> PosPopularItems { get; set; }
        public virtual ICollection<PosTrxLineItems> PosTrxLineItems { get; set; }
    }
}
