using System;
using System.Collections.Generic;

#nullable disable

namespace BO.AppServer.Data.Entity
{
    public partial class Workspace
    {
        public Workspace()
        {
            BillingInfos = new HashSet<BillingInfo>();
            Invoices = new HashSet<Invoice>();
            Structures = new HashSet<Structure>();
            Tags = new HashSet<Tag>();
            WorkspaceBillings = new HashSet<WorkspaceBilling>();
        }

        // public long Id { get; set; }
        public string Name { get; set; }
        public long? BillingInfoId { get; set; }
        public long BillingPlanId { get; set; }
        public Guid Apikey { get; set; }
        public string Apipassword { get; set; }
        public DateTime Created { get; set; }
        public DateTime? Modified { get; set; }
        public long CreatedByUserId { get; set; }
        public long? ModifiedByUserId { get; set; }
        public bool IsGold { get; set; }

        public virtual BillingInfo BillingInfo { get; set; }
        public virtual User CreatedByUser { get; set; }
        public virtual User ModifiedByUser { get; set; }
        public virtual ICollection<BillingInfo> BillingInfos { get; set; }
        public virtual ICollection<Invoice> Invoices { get; set; }
        public virtual ICollection<Structure> Structures { get; set; }
        public virtual ICollection<Tag> Tags { get; set; }
        public virtual ICollection<WorkspaceBilling> WorkspaceBillings { get; set; }
    }
}
