using Microsoft.EntityFrameworkCore;
using PARR.Domain.Constants;
using PARR.Domain.Enums;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace PARR.Domain.Entities.TaskEntities
{
    [Table("Statuses", Schema = DatabaseSchemas.Task)]
    [Comment("Таблица статусов заданий")]
    public class TaskStatus
    {
        [Key]
        public TaskItemStatusEnum Code { get; set; }

        public required string Name { get; set; }

        public required string Description { get; set; }


        public ICollection<TaskItem> Tasks { get; set; } = new HashSet<TaskItem>();
    }
}
