RoleDbEntity.cs
505 Bytes
using SqlSugar;
namespace FoodLabeling.Application.Services.DbModels;
/// <summary>
/// Role 表映射(用于 SqlSugar 直查,避免走仓储 IDataPermission)
/// </summary>
[SugarTable("Role")]
public class RoleDbEntity
{
[SugarColumn(IsPrimaryKey = true)]
public Guid Id { get; set; }
public bool IsDeleted { get; set; }
[SugarColumn(ColumnName = "RoleCode")]
public string RoleCode { get; set; } = string.Empty;
public string RoleName { get; set; } = string.Empty;
}