using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace AccountTracking.Api.Models;

[Table("import_logs")]
public class ImportLog
{
    [Key]
    [Column("id")]
    public int Id { get; set; }

    [Column("imported_at")]
    public DateTime ImportedAt { get; set; } = DateTime.UtcNow;

    [Column("filename")]
    [MaxLength(255)]
    public string Filename { get; set; } = "";

    [Column("records_imported")]
    public int RecordsImported { get; set; }

    [Column("records_skipped")]
    public int RecordsSkipped { get; set; }
}
