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 LeaveTypeConfiguration : IEntityTypeConfiguration<LeaveType>
    {
        
        public void Configure(EntityTypeBuilder<LeaveType> builder)
        {
            
            builder.HasData(
                new LeaveType
                {
                    Id = 1,
                    NameEn = "Annual Leave",
                    NameAr = "أجازة سنوية",
                    DefaultDays = 30
                },
                 new LeaveType
                 {
                     Id = 2,
                     NameEn = "Sick Leave",
                     NameAr = "أجازة مرضية",
                     DefaultDays = 90
                 },
                new LeaveType
                {
                    Id = 3,
                    NameEn = "Marriage Leave",
                    NameAr = "أجازة زواج",
                    DefaultDays = 5
                },
                new LeaveType
                {
                    Id = 4,
                    NameEn = "Maternity leave", //(after closed from employee / manager)
                    NameAr = "أجازة وضع",
                    DefaultDays = 20

                },
                new LeaveType
                {
                    Id = 5,
                    NameEn = "Emergency leave",
                    NameAr = "أجازة طارئة",
                    DefaultDays = 10
                },
                new LeaveType
                {
                    Id = 6,
                    NameEn = "Death of a relative",
                    NameAr = "وفاة",
                    DefaultDays = 3
                }
                
               ) ;
        }
    }
}