using Dlhis.Entity.Visitor.Enums;
using Kurisu.SqlSugar;
using SqlSugar;
using SqlSugar.DbConvert;
namespace Dlhis.Entity.Visitor.Entity;
///
/// 预约明细
///
[SugarTable(TableName = "VisitorAppointmentDetail", TableDescription = "访客预约")]
public class VisitorAppointmentDetailEntity : SugarBaseEntity
{
[SugarColumn(IsNullable = false, ColumnDescription = "父id")]
public long AppointmentId { get; set; }
///
/// 流水号
///
[SugarColumn(IsNullable = false, ColumnDescription = "流水号")]
public string FlowId { get; set; }
///
/// 访客名称
///
[SugarColumn(IsNullable = false, ColumnDescription = "访客名称")]
public string Name { get; set; }
///
/// 手机号
///
[SugarColumn(IsNullable = false, ColumnDescription = "手机号")]
public string Phone { get; set; }
///
/// 是否外部人员
///
[SugarColumn(IsNullable = false, ColumnDataType = "bit")]
public bool IsExternal { get; set; }
///
/// 身份证
///
///
/// 使用身份证字段作为申请人唯一标识
///
[SugarColumn(IsNullable = false, ColumnDescription = "身份证")]
public string IdNo { get; set; }
///
/// 预计到达
///
[SugarColumn(IsNullable = false, ColumnDescription = "预计到达")]
public DateTime Start { get; set; }
///
/// 预计离开
///
[SugarColumn(IsNullable = false, ColumnDescription = "预计离开")]
public DateTime End { get; set; }
///
/// 状态
///
[SugarColumn(IsNullable = false, ColumnDescription = "状态", ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert))]
public AppointmentDetailEnumType Status { get; set; }
///
/// 备注
///
[SugarColumn(IsNullable = true, ColumnDescription = "备注")]
public string Remark { get; set; }
}