using SqlSugar; using System; namespace YBDevice.Entity { /// /// 用户订阅消息 /// [SugarTable("YB_UserSubscribeMessage", TableDescription = "用户订阅消息", IsDisabledUpdateAll = false, IsDisabledDelete = true)] public class YB_UserSubscribeMessage { /// /// 主键 /// [SugarColumn(IsPrimaryKey = true)] public Guid Id { get; set; } /// /// 是否总是订阅,true-是,false-否 /// [SugarColumn(ColumnDescription = "是否总是订阅,true-是,false-否")] public bool IsAlWays { get; set; } /// /// 订阅的消息类型,1-周提醒,2-月提醒,3-半年提醒,4-一年提醒 /// [SugarColumn(ColumnDescription = "订阅的消息类型,1-周提醒,2-月提醒,3-半年提醒,4-一年提醒", IndexGroupNameList = new string[] { "index_type" })] public int Type { get; set; } /// /// 用户openid /// [SugarColumn(ColumnDescription = "用户openid", IndexGroupNameList = new string[] { "index_openid" })] public string OpenId { get; set; } /// /// 小程序appid /// [SugarColumn(ColumnDescription = "小程序appid")] public string AppId { get; set; } /// /// 模板ID /// [SugarColumn(ColumnDescription = "模板ID")] public string TplId { get; set; } /// /// 用户ID /// [SugarColumn(ColumnDescription = "用户ID")] public int UserId { get; set; } /// /// 创建时间 /// [SugarColumn(ColumnDescription = "创建时间",ColumnDataType ="date", IndexGroupNameList = new string[] { "index_createtime" })] public DateTime CreateTime { get; set; } } }