41 lines
1.2 KiB
C#
41 lines
1.2 KiB
C#
using SqlSugar;
|
|
using WGShare.Domain.Enums;
|
|
using Yitter.IdGenerator;
|
|
|
|
namespace WGShare.Domain.Entities
|
|
{
|
|
/// <summary>
|
|
/// 权限表
|
|
///</summary>
|
|
[SugarTable("permission")]
|
|
public class Permission
|
|
{
|
|
/// <summary>
|
|
/// 菜单/按钮Id
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "id", IsPrimaryKey = true)]
|
|
public string Id { get; set; } = YitIdHelper.NextId().ToString();
|
|
/// <summary>
|
|
/// 创建时间
|
|
/// 默认值: CURRENT_TIMESTAMP
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "create_time", IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true)]
|
|
public DateTime CreateTime { get; set; }
|
|
/// <summary>
|
|
/// 修改时间
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "modify_time", IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true)]
|
|
public DateTime ModifyTime { get; set; }
|
|
/// <summary>
|
|
/// 权限名称
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "perm_name")]
|
|
public string PermName { get; set; }
|
|
/// <summary>
|
|
/// 权限值
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "perm_value")]
|
|
public int PermValue { get; set; }
|
|
}
|
|
}
|