using NPOI.SS.Formula.Functions;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OpenAuth.Repository.Domain.DataMaintenance
{
    ///<summary>
    ///应用数据
    ///</summary>
    [SugarTable("dm_application")]
    public class ApplicationData
    {
        /// <summary>
        /// Desc:应用id
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(IsPrimaryKey = true)]
        public long Id { get; set; }

        /// <summary>
        /// Desc:应用名称
        /// Default:NULL::character varying
        /// Nullable:True
        /// </summary>           
        public string ApplicationName { get; set; }

        /// <summary>
        /// Desc:服务Id
        /// Default:NULL::character varying
        /// Nullable:True
        /// </summary>           
        public string ServerId { get; set; }

        /// <summary>
        /// Desc:服务名称
        /// Default:NULL::character varying
        /// Nullable:True
        /// </summary>           
        public string ServerName { get; set; }

        /// <summary>
        /// Desc:排序
        /// Default:NULL::character varying
        /// Nullable:True
        /// </summary>           
        public int Sort { get; set; }

        /// <summary>
        /// Desc:父级id
        /// Default:NULL::character varying
        /// Nullable:True
        /// </summary>           
        public long Pid { get; set; }

        /// <summary>
        /// Desc:创建人
        /// Default:NULL::character varying
        /// Nullable:True
        /// </summary>           
        public long CreateUserId { get; set; }

        /// <summary>
        /// Desc:创建时间
        /// Default:NULL::character varying
        /// Nullable:True
        /// </summary>           
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// Desc:是否是服务
        /// Default:NULL::character varying
        /// Nullable:True
        /// </summary>           
        public int IsServer { get; set; }
        /// <summary>
        /// Desc:表名
        /// Default:NULL::character varying
        /// Nullable:True
        /// </summary>           
        public string TableName { get; set; }
        /// <summary>
        /// Desc:点线面
        /// Default:NULL::character varying
        /// Nullable:True
        /// </summary>           
        public string ServerType { get; set; }

        /// <summary>
        /// Desc:子节点
        /// Default:NULL::character varying
        /// Nullable:True
        /// </summary>        
        [SugarColumn(IsIgnore = true)]
        public List<ApplicationData> Child { get; set; }
    }
}
