hrms-api-backend/BMA.EHR.Domain/Models/HR/ProfileEducation.cs
2024-03-04 09:24:19 +07:00

53 lines
2.4 KiB
C#

using System.ComponentModel.DataAnnotations;
using BMA.EHR.Domain.Models.Base;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileEducation : EntityBase
{
// [Key]
// public int Id { get; set; }
// [Required]
// public int Order { get; set; }
[MaxLength(1000), Comment("สถานศึกษา")]
public string? Institute { get; set; }
[MaxLength(200), Comment("วุฒิการศึกษา")]
public string? Degree { get; set; }
[MaxLength(200), Comment("สาขาวิชา/ทาง")]
public string? Field { get; set; }
[MaxLength(20), Comment("เกรดเฉลี่ย")]
public string? Gpa { get; set; }
[MaxLength(1000), Comment("ประเทศ")]
public string? Country { get; set; }
[MaxLength(1000), Comment("ระยะเวลา")]
public string? Duration { get; set; }
[MaxLength(1000), Comment("ข้อมูลการติดต่อ")]
public string? Other { get; set; }
[MaxLength(1000), Comment("ทุน")]
public string? FundName { get; set; }
[Comment("ระยะเวลาหลักสูตร")]
public int DurationYear { get; set; }
[Comment("วันที่สำเร็จการศึกษา")]
public DateTime? FinishDate { get; set; }
[Comment("ตั้งแต่")]
public DateTime? StartDate { get; set; }
[Comment("ถึง")]
public DateTime? EndDate { get; set; }
[Comment("ระดับศึกษา")]
public string? EducationLevel { get; set; }
[Comment("Id ระดับศึกษา")]
public Guid? EducationLevelId { get; set; }
[Comment("เป็นวุฒิการศึกษาในตำแหน่ง")]
public string? PositionPath { get; set; }
[Comment("Id เป็นวุฒิการศึกษาในตำแหน่ง")]
public Guid? PositionPathId { get; set; }
public bool IsActive { get; set; } = true;
public virtual List<ProfileEducationHistory> ProfileEducationHistorys { get; set; } = new List<ProfileEducationHistory>();
public virtual Profile? Profile { get; set; }
[Comment("หมายเหตุ")]
public string? Note { get; set; }
}
}