using SqlSugar;
using System;

namespace YBDevice.Entity
{
    /// <summary>
    /// 小程序订阅消息模板列表
    /// </summary>
    [SugarTable("YB_MiniProgramSubscribeMessageTpl", TableDescription = "小程序订阅消息模板列表", IsDisabledUpdateAll = false, IsDisabledDelete = true)]
    public class YB_MiniProgramSubscribeMessageTpl
    {
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public Guid Id { get; set; }
        /// <summary>
        /// 小程序appid
        /// </summary>
        [SugarColumn(ColumnDescription = "小程序appid", ColumnDataType = "varchar(50)")]
        public string AppId { get; set; }

        /// <summary>
        /// 添加至帐号下的模板 id，发送小程序订阅消息时所需
        /// </summary>
        [SugarColumn(ColumnDescription = "添加至帐号下的模板 id，发送小程序订阅消息时所需", ColumnDataType = "varchar(100)")]
        public string PriTmplId { get; set; }

        /// <summary>
        /// 模板标题
        /// </summary>
        [SugarColumn(ColumnDescription = "模板标题", ColumnDataType = "nvarchar(50)")] 
        public string Title { get; set; }
        /// <summary>
        /// 模板内容
        /// </summary>
        [SugarColumn(ColumnDescription = "模版内容", ColumnDataType = "nvarchar(100)")]
        public string Content { get; set; }
        /// <summary>
        /// 模板关键字列表,多个以|分隔
        /// </summary>
        [SugarColumn(ColumnDescription = "模板关键字列表,多个以|分隔", ColumnDataType = "varchar(100)")] 
        public string KeyWords { get; set; }
        /// <summary>
        /// 模板关键字对应的值,多个以|分隔
        /// </summary>
        [SugarColumn(ColumnDescription = "模板关键字对应的值,多个以|分隔", ColumnDataType = "nvarchar(200)")]
        public string Example { get; set; }
        /// <summary>
        /// 模板类型,2-一次性订阅,3-长期订阅
        /// </summary>
        [SugarColumn(ColumnDescription = "模板类型,2-一次性订阅,3-长期订阅")]
        public int Type { get; set; }
        /// <summary>
        /// 是否选取,true-是,false-否
        /// </summary>
        [SugarColumn(ColumnDescription = "是否选取,true-是,false-否")]
        public bool IsSelected { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnDescription = "创建时间")]
        public DateTime CreateTime { get; set; }
    }
}
