
//--------------------------------------------------------------------
//     此代码由T4模板自动生成  byzhouhang 20210918
//	   生成时间 2021-11-22 11:15:18 
//     对此文件的更改可能会导致不正确的行为，并且如果重新生成代码，这些更改将会丢失。
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models
{
	 ///<summary>
	 ///PreviousHistory
	 ///</summary>
	 [Table("PreviousHistory")]	
	 public class PreviousHistory : Entity, IAuditAddWithUserName
	{
		[JsonIgnore]
		public SubjectVisit SubjectVisit { get; set; }
		/// <summary>
		/// CreateUserId
		/// </summary>
		[Required]
		public Guid CreateUserId { get; set; }
	
		/// <summary>
        /// CreateTime
        /// </summary>
		[Required]
		public DateTime CreateTime { get; set; }
	
		/// <summary>
        /// CreateUser
        /// </summary>
		[Required]
		public string CreateUser { get; set; }
	
		/// <summary>
        /// StartTime
        /// </summary>
		public DateTime? StartTime { get; set; }
	
		/// <summary>
        /// EndTime
        /// </summary>
		public DateTime? EndTime { get; set; }
	
		/// <summary>
        /// IsPD
        /// </summary>
		public int? IsPD { get; set; }
	
		/// <summary>
        /// SubjectVisitId
        /// </summary>
		[Required]
		public Guid SubjectVisitId { get; set; }
	
		/// <summary>
        /// IsSubjectLevel
        /// </summary>
		[Required]
		public bool IsSubjectLevel { get; set; }
	
		/// <summary>
        /// Path
        /// </summary>
		[Required]
		public string Path { get; set; } = String.Empty;

		/// <summary>
		/// FileName
		/// </summary>
		[Required]
		public string FileName { get; set; } = String.Empty;
	
		/// <summary>
        /// Position
        /// </summary>
		[Required]
		public string Position { get; set; } = String.Empty;


		/// <summary>
		/// 临床数据类型Id
		/// </summary>
		[Required]
		public Guid ClinicalDataTrialSetId { get; set; }


		//[Required]
		//public Guid SubjectId { get; set; }
	}

	   //移动到DBContext文件中
}	 
