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.03.02
    /// 描 述：db_codetable(数据库表信息)表的实体
    /// </summary>
    [SugarTable("db_codetable")]
    public class DbCodeTable
    {
        #region 实体成员
        /// <summary>
        /// 唯一标识码(GUID)
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public string Id { get; set; }
        /// <summary>
        /// 类名
        /// </summary>
        public string ClassName { get; set; }
        /// <summary>
        /// 表名
        /// </summary>
        public string TableName { get; set; }
        /// <summary>
        /// 数据库连接外键【lr_base_databaselink】
        /// </summary>
        public string DbId { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// 是否锁表【1是，0否】
        /// </summary>
        public int? IsLock { get; set; }
        /// <summary>
        /// 是否删除【1是，0否】
        /// </summary>
        public int? DeleteMark { get; set; }
        /// <summary>
        /// 模型与数据库间的同步关系 1 同步 0 未同步
        /// </summary>
        public int? State { get; set; }

        #endregion


        #region 多租户
        /// <summary>
        /// 租户ID
        /// </summary>
        public string TenantId { get; set; }
        #endregion
    }
}
