//-----------------------------------------------------------------------
// <copyright file=" ex_script.cs">
// * FileName: .cs 
// </copyright>
//-----------------------------------------------------------------------
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Performance.EntityModels
{
    /// <summary>
    /// 
    /// </summary>
    [Table("ex_script")]
    public class ex_script
    {
        /// <summary>
        /// 
        /// </summary>
        [Key]
        public int Id { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 执行sql
        /// </summary>
        public string ExecScript { get; set; }

        /// <summary>
        /// ExTypeId
        /// </summary>
        public int? TypeId { get; set; }

        /// <summary>
        /// 配置Id
        /// </summary>
        public int ConfigId { get; set; }

        /// <summary>
        /// 是否可用 1 可用 2 不可用
        /// </summary>
        public int IsEnable { get; set; }

        /// <summary>
        /// 是否执行通过 0 未执行 1 通过 2 失败
        /// </summary>
        public int IsExecSuccess { get; set; }

        /// <summary>
        /// 执行错误信息
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 语句执行完成所需时间
        /// </summary>
        public decimal TimeConsuming { get; set; } = 0;

        /// <summary>
        /// 是否使用原始科室 1 是 2 否
        /// </summary>
        public int? IsOrgDepartment { get; set; }
    }
}
