using Microsoft.EntityFrameworkCore;
using Models.Models;

namespace Models
{
    /// <summary>
    /// 酒店db
    /// </summary>
    public class HotelServiceContext : DbContext
    {
        /// <summary>
        /// 酒店db
        /// </summary>
        /// <param name="options"></param>
        public HotelServiceContext(DbContextOptions<HotelServiceContext> options)   
            : base(options)
        {

            this.Database.SetCommandTimeout(600000); //时间单位是毫秒

        }

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            // 默认值
            modelBuilder.Entity<TBL_RCU_BASIC_INFO>().Property(b => b.REGISTER_STATUS)
        .HasDefaultValue(0);

        }

        /// <summary>
        /// 酒店季节表
        /// </summary>
        public DbSet<TBL_HOTEL_SEASON> TBL_HOTEL_SEASONS { get; set; }

        /// <summary>
        /// 季节表
        /// </summary>
        public DbSet<TBL_SEASON> TBL_SEASONS { get; set; }

        /// <summary>
        /// 配置数据表1  
        /// </summary>
        public DbSet<TBL_CSERIES_PROJECTLISTS> TBL_CSERIES_PROJECTLISTSS { get; set; }

        /// <summary>
        /// 配置数据表2  
        /// </summary>
        public DbSet<TBL_CSERIES_HOSTTYPENUMBERLISTS> TBL_CSERIES_HOSTTYPENUMBERLISTSS { get; set; }

        /// <summary>
        /// 配置数据表3
        /// </summary>
        public DbSet<TBL_CSERIES_PROJECTROOMLISTS> TBL_CSERIES_PROJECTROOMLISTSS { get; set; }


        /// <summary>
        /// 配置数据表4
        /// </summary>
        public DbSet<TBL_CSERIES_ROOMTYPELISTS> TBL_CSERIES_ROOMTYPELISTSS { get; set; }

        /// <summary>
        /// 配置数据表5 
        /// </summary>
        public DbSet<TBL_CSERIES_BASICDATA> TBL_CSERIES_BASICDATAS { get; set; }


        /// <summary>
        /// 配置数据表6
        /// </summary>
        public DbSet<TBL_CSERIES_CONFIGDATA> TBL_CSERIES_CONFIGDATA { get; set; }

        /// <summary>
        /// 配置数据表7
        /// </summary>
        public DbSet<TBL_CSERIES_DEVCONFIGLISTS> TBL_CSERIES_DEVCONFIGLISTS { get; set; }


        /// <summary>
        /// 配置数据表8
        /// </summary>
        public DbSet<TBL_CSERIES_DEVLISTS> CSERIES_DEVLISTSS { get; set; }


        /// <summary>
        /// 酒店信息表导航属性
        /// </summary>
        public DbSet<TBL_HOTEL_BASIC_INFO> TBL_HOTEL_BASIC_INFOS { get; set; }
        /// <summary>
        /// 主机信息表导航属性
        /// </summary>
        public DbSet<TBL_RCU_BASIC_INFO> TBL_RCU_BASIC_INFOS { get; set; }
        /// <summary>
        /// 主机连接信息表导航属性
        /// </summary>
        public DbSet<TBL_RCU_CONN_INFO> TBL_RCU_CONN_INFOS { get; set; }
        /// <summary>
        /// 酒店组表导航属性
        /// </summary>
        public DbSet<TBL_HOTEL_GROUP_INFO> TBL_HOTEL_GROUP_INFOS { get; set; }

        /// <summary>
        /// 酒店状态信息表
        /// </summary>
        public DbSet<TBL_HOTEL_STATUS_INFO> TBL_HOTEL_STATUS_INFOS { get; set; }


        /// <summary>
        /// 酒店状态信息日志表
        /// </summary>
        public DbSet<TBL_HOTEL_STATUS_LOG> TBL_HOTEL_STATUS_LOGS { get; set; }

        /// <summary>
        /// RCU 错误日志
        /// </summary>
        public DbSet<TBL_HW_ERR_LOG> TBL_HW_ERR_LOGS { get; set; }



        /// <summary>
        /// rcu连接日志
        /// </summary>
        public DbSet<TBL_RCU_CONN_LOG> TBL_RCU_CONN_LOGS { get; set; }

        /// <summary>
        /// 房间 基本信息
        /// </summary>
        public DbSet<TBL_ROOM_BASIC_INFO> TBL_ROOM_BASIC_INFOS { get; set; }


        /// <summary>
        /// 房型表
        /// </summary>
        public DbSet<TBL_ROOM_TYPE_LIST> TBL_ROOM_TYPE_LISTS { get; set; }


        /// <summary>
        /// 房间设备信息表
        /// </summary>
        public DbSet<TBL_ROOM_DEV_INFO> TBL_ROOM_DEV_INFOS { get; set; }


        /// <summary>
        /// 房间变化日志
        /// </summary>
        public DbSet<TBL_ROOM_LOG> TBL_ROOM_LOGS { get; set; }


        /// <summary>
        /// 房态管理
        /// </summary>
        public DbSet<TBL_ROOM_STATUS_LIST> TBL_ROOM_STATUS_LISTS { get; set; }

        /// <summary>
        /// 房间实时配置信息
        /// </summary>
        public DbSet<TBL_ROOM_REAL_CONFIG> TBL_ROOM_REAL_CONFIGS { get; set; }



        /// <summary>
        /// 房间配置信息
        /// </summary>
        public DbSet<TBL_ROOM_SET_CONFIG> TBL_ROOM_SET_CONFIGS { get; set; }


        /// <summary>
        /// RCU 固件上传记录
        /// </summary>
        public DbSet<TBL_FIRMWARE_UPLOAD_LOGS> TBL_FIRMWARE_UPLOAD_LOGSES { get; set; }


        /// <summary>
        /// LUNCHER 固件上传记录
        /// </summary>
        public DbSet<TBL_LUNCHER_UPLOAD_LOGS> TBL_LUNCHER_UPLOAD_LOGSES { get; set; }


        /// <summary>
        /// LUNCHER  
        /// </summary>
        public DbSet<TBL_LUNCHER_LIST> TBL_LUNCHERS { get; set; }


        /// <summary>
        /// TBL_RCU_MODEL  
        /// </summary>
        public DbSet<TBL_RCU_MODEL_LIST> TBL_RCU_MODELS { get; set; }



        /// <summary>
        /// 房间设备实时信息
        /// </summary>
        public DbSet<TBL_ROOM_REAL_DEV_INFO> TBL_ROOM_REAL_DEV_INFOS { get; set; }


        /// <summary>
        /// 设备信息列表
        /// </summary>
        public DbSet<TBL_DEV_INFO> TBL_DEV_INFOS { get; set; }


        /// <summary>
        /// 设备信息列表更新日志
        /// </summary>
        public DbSet<TBL_DEV_INFO_CHG_LOG> TBL_DEV_INFO_CHG_LOGS { get; set; }


        /// <summary>
        /// 房间配置信息变化日志
        /// </summary>
        public DbSet<TBL_ROOM_CONFIG_LOG> TBL_ROOM_CONFIG_LOGS { get; set; }


        /// <summary>
        /// RCU 缓存表
        /// </summary>
        public DbSet<TBL_RCU_ERR_LIST> TBL_RCU_ERR_LISTS { get; set; }


        /// <summary>
        /// 数据同步表
        /// </summary>
        public DbSet<NEW_TABLE_UPDATE_TIME_MARK> NEW_TABLE_UPDATE_TIME_MARKS { get; set; }


        /// <summary>
        /// 模型文件数据
        /// </summary>
        public DbSet<TBL_MODEL_FILE_DATA> TBL_MODEL_FILE_DATAS { get; set; }


        /// <summary>
        /// 配置文件上传日志
        /// </summary>
        public DbSet<TBL_PROFILE_UPLOAD_LOGS> TBL_PROFILE_UPLOADLOGSES { get; set; }



        /// <summary>
        /// 事件记录表
        /// </summary>
        public DbSet<TBL_EVENTLOGGING> TBL_EVENTLOGGINGS { get; set; }




        /// <summary>
        /// app多语言数据
        /// </summary>
        public DbSet<TBL_MULTILINGUAL_DATA> TBL_MULTILINGUALDATAS { get; set; }



        /// <summary>
        /// app 
        /// </summary>
        public DbSet<TBL_MULTILINGUAL_APPS> TBL_MULTILINGUALAPPSS { get; set; }


        /// <summary>
        /// 多种语言 
        /// </summary>
        public DbSet<TBL_MULTILINGUAL> TBL_MULTILINGUALS { get; set; }



        /// <summary>
        /// 设备下发日志
        /// </summary>
       public DbSet<TBL_EQUIPMENTISSUELOG> TBL_EQUIPMENTISSUELOGs { get; set; }
 
    }
}