using System.ComponentModel.DataAnnotations.Schema;

namespace FSI.Prj.Mgt.Models
{
    public class Organization
    {
        public int Id { get; set; }
        
        public string Name { get; set; }

        public string ShortName { get; set; }

        public string Description { get; set; }

        public int? ParentId { get; set; }
        [ForeignKey("ParentId")]
        public virtual Organization Parent { get; set; }
        public virtual ICollection<Organization> Childs { get; set; }
    }
}
