27 lines
584 B
C#
27 lines
584 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace DAL.Models.Audits
|
|
{
|
|
[Table("audit_permissions")]
|
|
[Index("id", Name = "audit_permissions_permissions_id_fk")]
|
|
[Keyless]
|
|
public class AuditPermission
|
|
{
|
|
[Column("id")]
|
|
public ulong id { get; set; }
|
|
|
|
[Column("name")]
|
|
[MaxLength(64)]
|
|
public string name { get; set; } = null!;
|
|
|
|
[Column("updated")]
|
|
[DataType("datetime")]
|
|
public DateTime updated { get; set; }
|
|
|
|
[Column("updater")]
|
|
public ulong updater { get; set; }
|
|
}
|
|
}
|