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