using SolutionErp.Domain.Common;

namespace SolutionErp.Domain.Hrm;

// Satellite — Quá trình công tác (NamGroup `CT_QUATRINHCONGTAC`).
// Cookie-cutter port. FK Cascade từ EmployeeProfile (xoá NV → xoá history).
public class EmployeeWorkHistory : AuditableEntity
{
    public Guid EmployeeProfileId { get; set; }

    public string CompanyName { get; set; } = string.Empty;
    public string? CompanyAddress { get; set; }
    public string? Industry { get; set; }              // Ngành nghề

    public DateOnly? FromDate { get; set; }
    public DateOnly? ToDate { get; set; }

    public string? JobTitle { get; set; }              // Chức danh
    public string? JobDescription { get; set; }        // Mô tả công việc
    public string? ResignReason { get; set; }          // Lý do nghỉ

    public EmployeeProfile? EmployeeProfile { get; set; }
}
