using PSTW_CentralSystem.Models;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace PSTW_CentralSystem.Areas.OTcalculate.Models
{
    public class HrUserSettingModel
    {
        [Key]
        public int HrUserSettingId { get; set; }

        public int UserId { get; set; }

        [ForeignKey("UserId")]
        public UserModel? User { get; set; } 

        public int? FlexiHourId { get; set; }

        [ForeignKey("FlexiHourId")]
        public FlexiHourModel? FlexiHour { get; set; }
        public DateTime? FlexiHourUpdate { get; set; }

        public DateTime? StateUpdate { get; set; }

        public int? StateId { get; set; }

        [ForeignKey("StateId")]
        public StateModel? State { get; set; }

        public int? ApprovalFlowId { get; set; }

        [ForeignKey("ApprovalFlowId")]
        public ApprovalFlowModel? Approvalflow { get; set; }
        public DateTime? ApprovalUpdate { get; set; }
    }
}
