using System;
using System.Collections.Generic;
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.AccountingService_Models
{
    public partial class MembershipLevelInfo
    {
        public MembershipLevelInfo()
        {
            InverseNextLevel = new HashSet<MembershipLevelInfo>();
            InverseUpperLevel = new HashSet<MembershipLevelInfo>();
            MembershipGroup = new HashSet<MembershipGroup>();
            UserInfoLastMembershipLevelNavigation = new HashSet<UserInfo>();
            UserInfoMembershipLevelNavigation = new HashSet<UserInfo>();
        }

        public Guid Id { get; set; }
        public string MembershipLevelId { get; set; }
        public string LevelName { get; set; }
        public int? LevelUpCondition { get; set; }
        public int? LevelRetainCondition { get; set; }
        public Guid? UpperLevelId { get; set; }
        public Guid? NextLevelId { get; set; }
        public Guid? BuInfoCreatedId { get; set; }
        public Guid? BuInfoId { get; set; }
        public DateTime? LastModified { get; set; }

        [NotMapped]
        public virtual BusinessUnitInfo BuInfo { get; set; }
        [NotMapped]
        public virtual BusinessUnitInfo BuInfoCreated { get; set; }
        [NotMapped]
        public virtual MembershipLevelInfo NextLevel { get; set; }
        [NotMapped]
        public virtual MembershipLevelInfo UpperLevel { get; set; }
        [NotMapped]
        public virtual ICollection<MembershipLevelInfo> InverseNextLevel { get; set; }
        [NotMapped]
        public virtual ICollection<MembershipLevelInfo> InverseUpperLevel { get; set; }
        [NotMapped]
        public virtual ICollection<MembershipGroup> MembershipGroup { get; set; }
        [NotMapped]
        public virtual ICollection<UserInfo> UserInfoLastMembershipLevelNavigation { get; set; }
        [NotMapped]
        public virtual ICollection<UserInfo> UserInfoMembershipLevelNavigation { get; set; }
    }
}
