﻿namespace Beekeeper.Data.Models
{
    using System.Collections.Generic;
    using Common.Models;
    using Enums;

    public class Super : BaseModel<int>, IEntityWithCreator
    {
        private ICollection<Honeycomb> honeycombs;

        public Super()
        {
            this.honeycombs = new HashSet<Honeycomb>();
        }

        public int Number { get; set; }

        public int HiveId { get; set; }

        public virtual Hive Hive { get; set; }

        public SuperType Type { get; set; }

        public string UserId { get; set; }

        public virtual ApplicationUser User { get; set; }

        public virtual ICollection<Honeycomb> Honeycombs
        {
            get { return this.honeycombs; }
            set { this.honeycombs = value; }
        }
    }
}
