using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OpenAuth.Repository.Domain
{
    /// <summary>
    /// 日 期：2024.04.08
    /// 描 述：数据源
    /// </summary>
    [SugarTable("sys_datasource")]
    public class DataSource
    {
        #region 实体成员
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public string Id { get; set; }
        /// <summary>
        /// 编号
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 名字
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 数据库主键
        /// </summary>
        public string DbId { get; set; }
        /// <summary>
        /// sql语句
        /// </summary>
        public string Sql { get; set; }
        /// <summary>
        /// 备注
        /// </summary>		
        public string Description { get; set; }
        /// <summary>
        /// 创建人主键
        /// </summary>
        public string CreateUserId { get; set; }
        /// <summary>
        /// 创建人名字
        /// </summary>
        public string CreateUserName { get; set; }
        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTime? CreateDate { get; set; }
        /// <summary>
        /// 修改人主键
        /// </summary>
        public string ModifyUserId { get; set; }
        /// <summary>
        /// 修改人名字
        /// </summary>
        public string ModifyUserName { get; set; }
        /// <summary>
        /// 修改日期
        /// </summary>
        public DateTime? ModifyDate { get; set; }
        #endregion



        #region 多租户
        /// <summary>
        /// 租户ID
        /// </summary>
        public string TenantId { get; set; }
        /// <summary>
        /// 是否可编辑 0 表示不可编辑 其它值都可编辑
        /// </summary>
        public int? IsEdit { get; set; }
        #endregion
    }
}
