using System;
using System.Collections.Generic;

#nullable disable

namespace BO.AppServer.Data.Entity
{
    public partial class Metadocument
    {
        public Metadocument()
        {
            Artifacts = new HashSet<Artifact>();
            StatusHistories = new HashSet<StatusHistory>();
        }

        // public long Id { get; set; }
        public long StructureId { get; set; }
        public long? AffinityRegistrationId { get; set; }
        public string Name { get; set; }
        public int Status { get; set; }
        public DateTime Created { get; set; }
        public DateTime? Modified { get; set; }
        public DateTime? LastDowloaded { get; set; }
        public long CreatedByUserId { get; set; }
        public long? ModifiedByUserId { get; set; }
        public long? LastDownloadedByUserId { get; set; }

        public virtual Registration AffinityRegistration { get; set; }
        public virtual User CreatedByUser { get; set; }
        public virtual User LastDownloadedByUser { get; set; }
        public virtual User ModifiedByUser { get; set; }
        public virtual Structure Structure { get; set; }
        public virtual ICollection<Artifact> Artifacts { get; set; }
        public virtual ICollection<StatusHistory> StatusHistories { get; set; }
    }
}
