28 lines
713 B
C#
28 lines
713 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace DamageAssesment.Api.Employees.Db
|
|
{
|
|
[Table("Employees")]
|
|
public class Employee
|
|
{
|
|
[Key]
|
|
public int Id { get; set; }
|
|
[StringLength(50)]
|
|
public string EmployeeCode { get; set; }
|
|
|
|
[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; }
|
|
public string? PreferredLanguage { get; set; } = "en";
|
|
}
|
|
}
|