using Appointment.Entity.ValidateAttribute;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;
namespace Appointment.Entity
{
///
/// 客房预订明细表实体
///
[Serializable]
[SugarTable("appt_room")]
public class ApptRoom
{
///
/// 自增主键
///
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public int? Id { get; set; }
///
/// guid
///
///
/// 同一个订单的的(暂订单、确认单)GUID相同
///
public string Guid { get; set; }
///
/// 所属预订主单
///
[SugarColumn(ColumnName = "appt_id")]
public int? ApptId { get; set; }
///
/// 抵达时间
///
[SugarColumn(ColumnName = "room_in")]
public DateTime RoomIn { get; set; }
///
/// 离开时间
///
[SugarColumn(ColumnName = "room_out")]
public DateTime RoomOut { get; set; }
///
/// 房型(手输或根据类型选择自动填入),手输不占用资源
///
[StringLength(30, MinLength = 2, ErrorMessage = "房型必须为2~30个字符")]
[SugarColumn(ColumnName = "room_group")]
public string RoomGroup { get; set; }
///
/// 选择房间类型(手输类型时为空,不占用资源)
///
[SugarColumn(ColumnName = "room_code")]
public string RoomCode { get; set; }
///
/// 房间数量
///
///
/// 不占用资源的可以为0
///
[SugarColumn(ColumnName = "room_num")]
public int RoomNum { get; set; }
///
/// 房间单价
///
[SugarColumn(ColumnName = "room_price")]
public decimal RoomPrice { get; set; }
///
/// 总早餐数:0-无早餐,
///
[SugarColumn(ColumnName = "breakfast_num")]
public int BreakfastNum { get; set; }
///
/// 长途电话:0-关,1-开,
///
[SugarColumn(ColumnName = "long_distance")]
public int LongDistance { get; set; }
///
/// 客房吧:0-关,1-开,
///
[SugarColumn(ColumnName = "min_shop")]
public int MinShop { get; set; }
///
/// 客房备注
///
[SugarColumn(ColumnName = "remark")]
public string RoomRemark { get; set; }
}
}