using System.ComponentModel.DataAnnotations;

namespace RealCV.Domain.Entities;

public class CompanyCache
{
    [Key]
    [MaxLength(32)]
    public string CompanyNumber { get; set; } = string.Empty;

    [Required]
    [MaxLength(512)]
    public string CompanyName { get; set; } = string.Empty;

    [Required]
    [MaxLength(64)]
    public string Status { get; set; } = string.Empty;

    [MaxLength(64)]
    public string? CompanyType { get; set; }

    public DateOnly? IncorporationDate { get; set; }

    public DateOnly? DissolutionDate { get; set; }

    [MaxLength(64)]
    public string? AccountsCategory { get; set; }

    [MaxLength(256)]
    public string? SicCodesJson { get; set; }

    public DateTime CachedAt { get; set; }
}
