You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
2.1 KiB
79 lines
2.1 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Volo.Abp.Domain.Entities;
|
|
using Volo.Abp.Domain.Entities.Auditing;
|
|
|
|
namespace Shentun.Peis.Models
|
|
{
|
|
/// <summary>
|
|
/// 房间设置
|
|
/// </summary>
|
|
[Table("room")]
|
|
[Index(nameof(DisplayName), Name = "ix_room", IsUnique = true)]
|
|
public class Room : AuditedEntity<Guid>, IHasConcurrencyStamp
|
|
{
|
|
public Room()
|
|
{
|
|
Asbitems = new HashSet<Asbitem>();
|
|
}
|
|
|
|
[Column("display_name")]
|
|
[StringLength(20)]
|
|
public string DisplayName { get; set; } = null!;
|
|
/// <summary>
|
|
/// 项目类别编号
|
|
/// </summary>
|
|
[Column("item_type_id")]
|
|
public Guid ItemTypeId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 体检中心ID
|
|
/// </summary>
|
|
[Column("medical_center_id")]
|
|
public Guid MedicalCenterId { get; set; }
|
|
|
|
[Column("for_sex_id")]
|
|
[MaxLength(1)]
|
|
public char ForSexId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 0-普通,1-抽血室
|
|
/// </summary>
|
|
[Column("room_type_flag")]
|
|
[MaxLength(1)]
|
|
public char RoomTypeFlag { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 候诊时间
|
|
/// </summary>
|
|
[Column("queue_time")]
|
|
[Precision(3, 1)]
|
|
public decimal QueueTime { get; set; }
|
|
|
|
[Column("is_active")]
|
|
[MaxLength(1)]
|
|
public char IsActive { get; set; }
|
|
[Column("simple_code")]
|
|
[StringLength(20)]
|
|
public string SimpleCode { get; set; } = null!;
|
|
[Column("display_order")]
|
|
public int DisplayOrder { get; set; }
|
|
|
|
[Column("concurrency_stamp")]
|
|
public string ConcurrencyStamp { get; set; }
|
|
|
|
[ForeignKey(nameof(ItemTypeId))]
|
|
[InverseProperty("Rooms")]
|
|
public virtual ItemType ItemType { get; set; } = null!;
|
|
|
|
[ForeignKey("RoomId")]
|
|
[InverseProperty(nameof(Asbitem.Rooms))]
|
|
public virtual ICollection<Asbitem> Asbitems { get; set; }
|
|
|
|
|
|
}
|
|
}
|