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

namespace Sqler.SqlVersion.Entity
{
    public class SqlVersion_Code
    {

        /// <summary>
        /// 版本号
        /// 
        /// 
        /// [[AutoTemp: {
        ///     "permit": {"delete":false},
        /// 
        ///     "listConfig": {
        ///         "rowButtons": [
        ///             {
        ///                 "title": "升级至此版本",
        ///                 "jsHandler": "(sender,id,row)=>{ window.open('/sqler/SqlVersion/upgrade?version='+id+'&amp;template='+document.url_GetCurArg('template')); }"
        ///             }
        ///         ]
        ///     }
        /// } ]]
        /// 
        /// 
        /// [[AutoTemp_Field: { "list_config": {"width":80}   } ]]
        /// 
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int version { get; set; }


        /// <summary>
        /// [[AutoTemp_Field: { "list_config": {"width":80}   } ]]
        /// </summary>
        public String author { get; set; }

        /// <summary>
        /// sql script
        /// [[AutoTemp_Field:{  "ig_attr": {"ig_class":"TextArea", "ig_param":{"height":200}} } ]]
        /// </summary>
        public String code { get; set; }

        /// <summary>
        /// [[AutoTemp_Field:{  "ig_attr": {"ig_class":"TextArea", "ig_param":{"height":50}} } ]]
        /// </summary>
        public String comment { get; set; }


        /// <summary>
        /// operate time
        /// [[AutoTemp_Field: {   "editable":false  } ]]
        /// </summary>
        public DateTime time { get; set; } = DateTime.Now;


        /// <summary>
        /// &lt;span title='表结构、表字段、函数、存储过程、视图、触发器、表数据'&gt;类型&lt;/span&gt;
        /// </summary>
        public String attr_type { get; set; }
        /// <summary>
        /// &lt;span title='语句所做操作。（增加、删除、修改、重命名）'&gt;操作&lt;/span&gt;
        /// </summary>
        public String attr_Opt { get; set; }

        /// <summary>
        /// &lt;span title='例如：T_TreeData'&gt;处理对象&lt;/span&gt;
        /// </summary>
        public String attr_obj { get; set; }
        /// <summary>
        /// &lt;span title='例如： T_TreeData'&gt;处理对象2&lt;/span&gt;
        /// </summary>
        public String attr_obj2 { get; set; }

        /// <summary>
        /// &lt;span title='"true": true。others： false'&gt;is system script&lt;/span&gt;
        /// </summary>
        public String attr_isSys { get; set; }

        /// <summary>
        /// 额外说明
        /// </summary>
        public String attr_ext { get; set; }
    }

  


}
