using SolutionErp.Domain.Common;
using SolutionErp.Domain.Contracts;   // reuse ApprovalDecision enum

namespace SolutionErp.Domain.PurchaseEvaluations;

// Lịch sử phê duyệt — giống ContractApproval pattern.
public class PurchaseEvaluationApproval : BaseEntity
{
    public Guid PurchaseEvaluationId { get; set; }
    public PurchaseEvaluationPhase FromPhase { get; set; }
    public PurchaseEvaluationPhase ToPhase { get; set; }
    public Guid? ApproverUserId { get; set; }              // null = system SLA auto
    public ApprovalDecision Decision { get; set; }
    public string? Comment { get; set; }
    public DateTime ApprovedAt { get; set; }

    public PurchaseEvaluation? PurchaseEvaluation { get; set; }
}
