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_LOG")]
    public class TBL_ROOM_LOG
    {
        /// <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 LOG_TYPE { get; set; }

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

        /// <summary>
        /// 备注
        /// </summary>
        [Column(TypeName = "nvarchar(520)"), Comment("备注")]
        public string REMARK { get; set; }
        /// <summary>
        /// 记录更新时间
        /// </summary>
        [Required, Column(TypeName = "datetime")]
        public DateTime UPDATE_TIMEMARK { get; set; }
    }
}
