30 lines
634 B
C#
Raw Normal View History

2024-04-16 16:17:48 -05:00
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace DAL.Models.Audits
{
[Table("audit_grants")]
[Index("id", Name = "audit_grants_grants_id_fk")]
[Keyless]
public class AuditGrant
{
[Column("id")]
public ulong id { get; set; }
[Column("name")]
[MaxLength(128)]
public string name { get; set; } = null!;
[Column("permissionId")]
public ulong permissionId { get; set; }
[Column("updated")]
[DataType("updated")]
public DateTime updated { get; set; }
[Column("updater")]
public ulong updater { get; set; }
}
}