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