using System;
using System.Collections.Generic;

// 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.WebApi.AuthServiceDatabase_Models
{
    public partial class BusinessUnits
    {
        public BusinessUnits()
        {
            IdentityUserBusiUnitM2m = new HashSet<IdentityUserBusiUnitM2m>();
            InverseParentBusinessUnit = new HashSet<BusinessUnits>();
            SiteDevices = new HashSet<SiteDevices>();
        }

        public Guid Id { get; set; }
        public DateTime? CreatedDateTime { get; set; }
        public int UnitType { get; set; }
        public string Name { get; set; }
        public string Address { get; set; }
        public string Description { get; set; }
        public Guid? ParentBusinessUnitId { get; set; }
        public Guid? PosItemGroupSystemId { get; set; }
        public string PhoneNumber { get; set; }
        public string Longitude { get; set; }
        public string Latitude { get; set; }

        public virtual BusinessUnits ParentBusinessUnit { get; set; }
        public virtual ICollection<IdentityUserBusiUnitM2m> IdentityUserBusiUnitM2m { get; set; }
        public virtual ICollection<BusinessUnits> InverseParentBusinessUnit { get; set; }
        public virtual ICollection<SiteDevices> SiteDevices { get; set; }
    }
}
