30 lines
634 B
C#
30 lines
634 B
C#
|
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; }
|
||
|
}
|
||
|
}
|