using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Sqler.SqlVersion.DataSource
{

    [Table("sqler_version")]
    public class sqler_version
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int id { get; set; }

        /// <summary>
        /// 模块
        /// [[AutoTemp: { "permit": {"delete":false}   } ]]
        /// </summary>
        [System.ComponentModel.DataAnnotations.Schema.Column(TypeName = "nvarchar(1000)")]
        public string module { get; set; }

        /// <summary>
        /// 版本
        /// </summary>
        public int? version { get; set; }

        /// <summary>
        /// 是否成功
        /// </summary>
        public int success { get; set; }

        /// <summary>
        /// 语句执行结果
        /// [[AutoTemp_Field:{   "ig_attr": {"ig_class":"TextArea", "ig_param":{"height":250} } } ]]
        /// </summary>
        [System.ComponentModel.DataAnnotations.Schema.Column(TypeName = "ntext")]
        public string result { get; set; }


        /// <summary>
        /// sql语句
        /// [[AutoTemp_Field:{   "ig_attr": {"ig_class":"TextArea", "ig_param":{"height":50} } } ]]
        /// </summary>
        [System.ComponentModel.DataAnnotations.Schema.Column(TypeName = "ntext")]
        public string code { get; set; }



        public DateTime? exec_time { get; set; }

        [System.ComponentModel.DataAnnotations.Schema.Column(TypeName = "nvarchar(2000)")]
        public string remarks { get; set; }

    }
}
