mahjong_group/server/CoreCms.Net.Model/Entities/SQ/SQRoomUnavailableTimes.cs
2026-01-01 14:35:52 +08:00

118 lines
3.2 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/***********************************************************************
* Project: CoreCms
* ProjectName: 核心内容管理系统
* Web: https://www.corecms.net
* Author: 大灰灰
* Email: jianweie@163.com
* CreateTime: 2025/9/2 13:52:01
* Description: 暂无
***********************************************************************/
using SqlSugar;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace CoreCms.Net.Model.Entities
{
/// <summary>
/// 房间不可预约时间段
/// </summary>
public partial class SQRoomUnavailableTimes
{
/// <summary>
/// 构造函数
/// </summary>
public SQRoomUnavailableTimes()
{
}
/// <summary>
/// 不可预约记录ID
/// </summary>
[Display(Name = "不可预约记录ID")]
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
[Required(ErrorMessage = "请输入{0}")]
public System.Int32 id { get; set; }
/// <summary>
/// 房间ID
/// </summary>
[Display(Name = "房间ID")]
[Required(ErrorMessage = "请输入{0}")]
public System.Int32 room_id { get; set; }
/// <summary>
/// 不可预约开始时间
/// </summary>
[Display(Name = "不可预约开始时间")]
[Required(ErrorMessage = "请输入{0}")]
public System.DateTime start_time { get; set; }
/// <summary>
/// 不可预约结束时间
/// </summary>
[Display(Name = "不可预约结束时间")]
[Required(ErrorMessage = "请输入{0}")]
public System.DateTime end_time { get; set; }
/// <summary>
/// 不可预约原因,比如维修、包场等
/// </summary>
[Display(Name = "不可预约原因,比如维修、包场等")]
[StringLength(maximumLength:255,ErrorMessage = "{0}不能超过{1}字")]
public System.String reason { get; set; }
/// <summary>
/// 时段类型0=凌晨1=上午2=下午3=晚上(如果指定则表示整个时段不可用)
/// </summary>
[Display(Name = "时段类型")]
public System.Int32? time_slot_type { get; set; }
/// <summary>
/// 不可用类型1-禁用/维护, 2-后台预约, 3-线下预约
/// </summary>
[Display(Name = "不可用类型")]
public System.Int32 type { get; set; } = 1;
/// <summary>
/// 创建人ID管理员
/// </summary>
[Display(Name = "创建人ID")]
public System.Int32? created_by { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[Display(Name = "创建时间")]
public System.DateTime created_at { get; set; }
}
}