Files
meezi/src/Meezi.Core/Entities/Employee.cs
T

23 lines
838 B
C#
Raw Normal View History

2026-05-27 21:33:48 +03:30
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; } = [];
}