DamageAssessment_Backend/DamageAssesmentApi/DamageAssesment.Api.Employees/Db/Employee.cs

28 lines
713 B
C#
Raw Permalink Normal View History

2023-08-15 22:52:30 -05:00
using System.ComponentModel.DataAnnotations;
2023-10-12 15:01:24 -05:00
using System.ComponentModel.DataAnnotations.Schema;
2023-08-15 22:52:30 -05:00
namespace DamageAssesment.Api.Employees.Db
{
2023-10-12 15:01:24 -05:00
[Table("Employees")]
2023-08-15 22:52:30 -05:00
public class Employee
{
[Key]
public int Id { get; set; }
[StringLength(50)]
public string EmployeeCode { get; set; }
2023-08-15 22:52:30 -05:00
[StringLength(50)]
public string Name { get; set; }
public DateTime BirthDate { get; set; }
[StringLength(50)]
public string OfficePhoneNumber { get; set; }
[StringLength(50)]
public string Email { get; set; }
public bool IsActive { get; set; }
2023-08-15 22:52:30 -05:00
public string? PreferredLanguage { get; set; } = "en";
}
}