using System.ComponentModel.DataAnnotations;

namespace TrueCV.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;

    public DateOnly? IncorporationDate { get; set; }

    public DateOnly? DissolutionDate { get; set; }

    public DateTime CachedAt { get; set; }
}
