using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace FSI.Prj.Mgt.Models
{
    public class Project
    {
        public int Id { get; set; }

        public int No{ get; set; }

        [ForeignKey(nameof(Plant))]
        public int PlantId { get; set; }
        public virtual Plant Plant { get; set; }

        public string Name { get; set; }

        public string Description { get; set; }

        public ProjectStatus Status { get; set; }

    }

    public enum ProjectStatus
    {
        [Display(Name = "in Bearbeitung")]
        started,

        [Display(Name = "beendet")]
        ended,

        [Display(Name = "zurückgestellt")]
        shelved,
    }
}
