using Microsoft.AspNetCore.Identity;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MTWorkHR.Infrastructure.Entities;
using MTWorkHR.Core.Entities.Base;
using MTWorkHR.Core.Entities;

namespace MTWorkHR.Infrastructure.Configurations
{
    public class UserTaskStatusConfiguration : IEntityTypeConfiguration<UserTaskStatus>
    {
        
        public void Configure(EntityTypeBuilder<UserTaskStatus> builder)
        {
            
            builder.HasData(
                new UserTaskStatus
                {
                    Id = 1,
                    NameEn = "To Do",
                    NameAr = "جديدة"
                },
                new UserTaskStatus
                {
                Id = 2,
                    NameEn = "In progress",
                    NameAr = "قيد العمل"
                },
                new UserTaskStatus
                {
                    Id = 3,
                    NameEn = "Need Review",
                    NameAr = "تحتاج مراجعة"
                }
                ,
                new UserTaskStatus
                {
                    Id = 4,
                    NameEn = "Done", //(after closed from employee / manager)
                    NameAr = "تمت"
                }
                //,
                //new UserTaskStatus
                //{
                //    Id = 5,
                //    NameEn = "Delayed",
                //    NameAr = "مؤجلة"
                //}
               ) ;
        }
    }
}