using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace Models
{
    /// <summary>
    /// 房间 基本信息
    /// </summary>
    [Table("TBL_ROOM_BASIC_INFO")]
    public class TBL_ROOM_BASIC_INFO
    {
        /// <summary>
        /// 自增id
        /// </summary>
        [Key, Column(TypeName = "int"), Comment("房间id,自增长"), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int ROOM_ID { get; set; }

        /// <summary>
        /// 酒店编号
        /// </summary>
        [Required, Column(TypeName = "int"), Comment("酒店编号")]
        public int HOTEL_ID { get; set; }

        /// <summary>
        /// 房型id
        /// </summary>
        [Required, Column(TypeName = "int"), Comment("房型ID")]
        public int ROOM_TYPE_ID { get; set; }

        /// <summary>
        /// 房间号
        /// </summary>
        [Required, Column(TypeName = "nvarchar(20)"), Comment("房间号")]
        public string ROOM_NUMBER { get; set; }

        /// <summary>
        /// 房间描述
        /// </summary>
        [Column(TypeName = "nvarchar(200)"), Comment("房间描述")]
        public string DESCRPTION { get; set; }

        /// <summary>
        /// RCU_ID TBL_RCU_BASIC_INFO表MAC
        /// </summary>
        [Column(TypeName = "nvarchar(50)"), Comment("RCU_BASIC_INFO表MAC 主外键关系")]

        public string MAC { get; set; }

        /// <summary>
        /// 记录更新时间
        /// </summary>
        [Column(TypeName = "datetime"), Comment("记录更新时间"), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public DateTime? UPDATE_TIMEMARK { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [Column(TypeName = "nvarchar(520)"), Comment("备注")] 
        public string REMARK { get; set; }


        /// <summary>
        /// 房型id 巫工
        /// </summary>
        [Required, Column(TypeName = "int"), Comment("房型ID 巫工")]
        public int ROOM_TYPE_OLD_ID { get; set; }



        /// <summary>
        /// 房间状态   巫工 房间状态 空房 16  出租中 2  退房中 8  待租 4
        /// </summary>
        [Required, Column(TypeName = "int"), Comment("房间状态 空房 16  出租中 2  退房中 8  待租 4")]
        public int RoomStatusID { get; set; }



        /// <summary>
        /// 酒店编号 巫工
        /// </summary>
        [Required, Column(TypeName = "int"), Comment("酒店编号 巫工")]
        public int HOTEL_OLD_ID { get; set; }


        /// <summary>
        ///  id  巫工
        /// </summary>
        [Column(TypeName = "int"), Comment("房间id   巫工")]
        public int ROOM_OLD_ID { get; set; }


        /// <summary>
        /// 授权到期时间
        /// </summary>

        [Column(TypeName = "datetime"), Comment("授权到期时间")]

        public DateTime? AUTH_DATETIME { get; set; }

    }
}
