2024-04-16 16:17:48 -05:00

32 lines
663 B
C#

using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace DAL.Models.Audits
{
[Table("audit_images")]
[Index("id", Name = "audit_images_images_id_fk")]
[Keyless]
public class AuditImage
{
[Key]
[Column("id")]
public ulong id { get; set; }
[Column("name")]
[MaxLength(64)]
public string name { get; set; } = null!;
[Column("filename")]
[MaxLength(128)]
public string filename { get; set; } = null!;
[Column("updated")]
[DataType("datetime")]
public DateTime updated { get; set; }
[Column("updater")]
public ulong updater { get; set; }
}
}