using SqlSugar; using System.ComponentModel; using System.ComponentModel.DataAnnotations; namespace Myshipping.Core.Entity; /// /// 系统应用表 /// [SugarTable("sys_app", TableDescription = "系统应用表")] [Description("系统应用表")] public class SysApp : DEntityBase { /// /// 名称 /// [Required, MaxLength(20)] [SugarColumn(ColumnDescription = "名称")] public string Name { get; set; } /// /// 编码 /// [Required, MaxLength(50)] [SugarColumn(ColumnDescription = "编码")] public string Code { get; set; } /// /// 是否默认激活(Y-是,N-否),只能有一个系统默认激活 /// 用户登录后默认展示此系统菜单 /// [MaxLength(5)] [SugarColumn(ColumnDescription = "是否默认激活")] public string Active { get; set; } /// /// 状态(字典 0正常 1停用 2删除) /// [SugarColumn(ColumnDescription = "状态")] public CommonStatus Status { get; set; } = CommonStatus.ENABLE; /// /// 排序 /// [SugarColumn(ColumnDescription = "排序")] public int Sort { get; set; } }