|
- namespace SafeCampus.System;
-
- /// <summary>
- /// 站内信
- ///</summary>
- [SugarTable("sys_message", TableDescription = "站内信")]
- [Tenant(SqlSugarConst.DB_DEFAULT)]
- [IgnoreInitTable]
- public class SysMessage : BaseEntity
- {
- /// <summary>
- /// 分类
- ///</summary>
- [SugarColumn(ColumnName = "Category", ColumnDescription = "分类", Length = 200)]
- public virtual string Category { get; set; }
-
- /// <summary>
- /// 主题
- ///</summary>
- [SugarColumn(ColumnName = "Subject", ColumnDescription = "主题")]
- public virtual string Subject { get; set; }
-
- /// <summary>
- /// 正文
- ///</summary>
- [SugarColumn(ColumnName = "Content", ColumnDescription = "正文", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
- public virtual string Content { get; set; }
-
- /// <summary>
- /// 是否已读
- /// </summary>
- [SugarColumn(IsIgnore = true)]
- public bool Read { get; set; } = true;
- }
|