using Marco.Pms.Model.Employees;
using Marco.Pms.Model.Utilities;
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
using System.ComponentModel.DataAnnotations.Schema;

namespace Marco.Pms.Model.Expenses
{
    public class ExpenseLog : TenantRelation
    {
        public Guid Id { get; set; }
        public Guid ExpenseId { get; set; }

        [ValidateNever]
        [ForeignKey("ExpenseId")]
        public Expenses? Expense { get; set; }
        public Guid UpdatedById { get; set; }

        [ValidateNever]
        [ForeignKey("UpdatedById")]
        public Employee? UpdatedBy { get; set; }
        public DateTime? UpdateAt { get; set; }
        public string Action { get; set; } = string.Empty;
        public string? Comment { get; set; }
    }
}
