using SqlSugar;

namespace YBDevice.Entity
{
    /// <summary>
    /// 小程序提交审核记录
    /// </summary>
    [SugarTable("YB_MiniProgramHistory", TableDescription = "小程序提交审核记录", IsDisabledUpdateAll = false, IsDisabledDelete = true)]
    public class YB_MiniProgramHistory
    {
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public System.Int32 Id { get; set; }

        /// <summary>
        /// 公众号appid
        /// </summary>
        [SugarColumn(ColumnDescription = "公众号appid", ColumnDataType = "varchar(50)")]
        public System.String appid { get; set; }

        /// <summary>
        /// 代码版本号，开发者可自定义（长度不要超过 64 个字符）
        /// </summary>
        [SugarColumn(ColumnDescription = "代码版本号，开发者可自定义（长度不要超过 64 个字符）", ColumnDataType = "varchar(100)")]
        public System.String UserVersion { get; set; }

        /// <summary>
        /// 代码描述，开发者可自定义
        /// </summary>
        [SugarColumn(ColumnDescription = "代码描述，开发者可自定义", ColumnDataType = "nvarchar(100)")]
        public System.String UserDesc { get; set; }

        /// <summary>
        /// 审核状态,-1-代码已上传,0-审核成功,1-审核被拒绝,2-审核中,3-已撤回,4-审核延后,5-已发布
        /// </summary>
        [SugarColumn(ColumnDescription = "审核状态,-1-代码已上传,0-审核成功,1-审核被拒绝,2-审核中,3-已撤回,4-审核延后")]
        public System.Int32 Status { get; set; }

        /// <summary>
        /// 当审核被拒绝时，返回的拒绝原因
        /// </summary>
        [SugarColumn(ColumnDescription = "当审核被拒绝时，返回的拒绝原因", ColumnDataType = "nvarchar(max)")]
        public System.String StatusRemark { get; set; }

        /// <summary>
        /// 最新的审核 ID
        /// </summary>
        [SugarColumn(ColumnDescription = "最新的审核 ID", ColumnDataType = "varchar(50)")]
        public System.String auditid { get; set; }

        /// <summary>
        /// 当审核被拒绝时，会返回审核失败的小程序截图示例。用 | 分隔的 media_id 的列表，可通过获取永久素材接口拉取截图内容
        /// </summary>
        [SugarColumn(ColumnDescription = "当审核被拒绝时，会返回审核失败的小程序截图示例。用 | 分隔的 media_id 的列表，可通过获取永久素材接口拉取截图内容", ColumnDataType = "varchar(max)")]
        public System.String ScreenShot { get; set; }

        /// <summary>
        /// 最近修改时间
        /// </summary>
        [SugarColumn(ColumnDescription = "最近修改时间", IsNullable =true)]
        public System.DateTime? LastTime { get; set; }

        /// <summary>
        /// 上传时间
        /// </summary>
        [SugarColumn(ColumnDescription = "上传时间")]
        public System.DateTime CreateTime { get; set; }
    }
}
