23 lines
838 B
C#
23 lines
838 B
C#
|
|
using Meezi.Core.Enums;
|
||
|
|
|
||
|
|
namespace Meezi.Core.Entities;
|
||
|
|
|
||
|
|
public class Employee : TenantEntity
|
||
|
|
{
|
||
|
|
public string? BranchId { get; set; }
|
||
|
|
public string Name { get; set; } = string.Empty;
|
||
|
|
public string Phone { get; set; } = string.Empty;
|
||
|
|
public string? NationalId { get; set; }
|
||
|
|
public EmployeeRole Role { get; set; }
|
||
|
|
public decimal BaseSalary { get; set; }
|
||
|
|
public string? PinCode { get; set; }
|
||
|
|
|
||
|
|
public Cafe Cafe { get; set; } = null!;
|
||
|
|
public Branch? Branch { get; set; }
|
||
|
|
public ICollection<Order> Orders { get; set; } = [];
|
||
|
|
public ICollection<EmployeeSalary> Salaries { get; set; } = [];
|
||
|
|
public ICollection<Attendance> Attendances { get; set; } = [];
|
||
|
|
public ICollection<EmployeeSchedule> Schedules { get; set; } = [];
|
||
|
|
public ICollection<LeaveRequest> LeaveRequests { get; set; } = [];
|
||
|
|
}
|