
//--------------------------------------------------------------------
//     此代码由T4模板自动生成  byzhouhang 20210918
//	   生成时间 2023-04-24 09:32:01 
//     对此文件的更改可能会导致不正确的行为，并且如果重新生成代码，这些更改将会丢失。
using System;
using IRaCIS.Core.Domain.Share;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models
{
	 ///<summary>
	 ///ReadingTrialCriterionDictionary
	 ///</summary>
	 [Table("ReadingTrialCriterionDictionary")]	
	 public class ReadingTrialCriterionDictionary : Entity, IAuditAdd
	 {
	
		/// <summary>
        /// CriterionId
        /// </summary>
		[Required]
		public Guid CriterionId { get; set; }
	
		/// <summary>
        /// DictionaryId
        /// </summary>
		[Required]
		public Guid DictionaryId { get; set; }
	
		/// <summary>
        /// CreateTime
        /// </summary>
		[Required]
		public DateTime CreateTime { get; set; }
	
		/// <summary>
        /// CreateUserId
        /// </summary>
		[Required]
		public Guid CreateUserId { get; set; }

		/// <summary>
		/// ParentCode
		/// </summary>
		[Required]
		public string ParentCode { get; set; } = string.Empty;
	
		/// <summary>
        /// IsBaseLineUse
        /// </summary>
		[Required]
		public bool IsBaseLineUse { get; set; }
	
		/// <summary>
        /// IsFollowVisitUse
        /// </summary>
		[Required]
		public bool IsFollowVisitUse { get; set; }
	
		/// <summary>
        /// CrterionDictionaryGroup
        /// </summary>
		[Required]
		public CrterionDictionaryGroup CrterionDictionaryGroup { get; set; }

		[JsonIgnore]
		[ForeignKey("DictionaryId")]
		public Dictionary Dictionary { get; set; }

		[ForeignKey("CriterionId")]
		[JsonIgnore]
		public ReadingQuestionCriterionTrial TrialReadingCriterion { get; set; }

	}

	
}	 
