Files
2022-07-24 14:48:54 +08:00

105 lines
2.8 KiB
C#
Raw Permalink 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.

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