// 大名科技(天津)有限公司版权所有 电话:18020030720 QQ:515096995
//
// 此源代码遵循位于源代码树根目录中的 LICENSE 文件的许可证
namespace Admin.NET.Core;
///
/// 系统通知公告表
///
[SugarTable(null, "系统通知公告表")]
[SysTable]
[SugarIndex("index_{table}_T", nameof(Type), OrderByType.Asc)]
public class SysNotice : EntityBase
{
///
/// 标题
///
[SugarColumn(ColumnDescription = "标题", Length = 32)]
[Required, MaxLength(32)]
[SensitiveDetection('*')]
public virtual string Title { get; set; }
///
/// 内容
///
[SugarColumn(ColumnDescription = "内容", ColumnDataType = StaticConfig.CodeFirst_BigString)]
[Required]
[SensitiveDetection('*')]
public virtual string Content { get; set; }
///
/// 类型(1通知 2公告)
///
[SugarColumn(ColumnDescription = "类型(1通知 2公告)")]
public NoticeTypeEnum Type { get; set; }
///
/// 发布人Id
///
[SugarColumn(ColumnDescription = "发布人Id")]
public long PublicUserId { get; set; }
///
/// 发布人姓名
///
[SugarColumn(ColumnDescription = "发布人姓名", Length = 32)]
[MaxLength(32)]
public string? PublicUserName { get; set; }
///
/// 发布机构Id
///
[SugarColumn(ColumnDescription = "发布机构Id")]
public long PublicOrgId { get; set; }
///
/// 发布机构名称
///
[SugarColumn(ColumnDescription = "发布机构名称", Length = 64)]
[MaxLength(64)]
public string? PublicOrgName { get; set; }
///
/// 发布时间
///
[SugarColumn(ColumnDescription = "发布时间")]
public DateTime? PublicTime { get; set; }
///
/// 撤回时间
///
[SugarColumn(ColumnDescription = "撤回时间")]
public DateTime? CancelTime { get; set; }
///
/// 状态(0草稿 1发布 2撤回 3删除)
///
[SugarColumn(ColumnDescription = "状态(0草稿 1发布 2撤回 3删除)")]
public NoticeStatusEnum Status { get; set; }
}