using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using e_suite.Database.Audit.Attributes;
using e_suite.Database.Audit.Models;

namespace e_suite.Database.Audit.Tables.Audit;

[NoAudit]
[Table("AuditDetails", Schema = "Audit")]
public class AuditDetail : IId
{
    [Key]
    public long Id { get; set; }
    [Required]
    public long UserId { get; set; }
    [Required]
    public string UserDisplayName { get; set; } = string.Empty;
    [Required, MaxLength(50)]
    public string Type { get; set; } = string.Empty;
    [Required]
    public DateTimeOffset DateTime { get; set; }
    [Required]
    public string Fields { get; set; } = string.Empty;
    [Required]
    public string Comment { get; set; } = string.Empty;
}