//--------------------------------------------------------------------
//     此代码由T4模板自动生成  byzhouhang 20210918
//	   生成时间 2022-08-22 09:26:04 
//     对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
using System;
using IRaCIS.Core.Domain.Share;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models
{
	 ///<summary>
	 ///ReadingTableQuestionAnswer
	 ///</summary>
	 [Table("ReadingTableQuestionAnswer")]	
	 public class ReadingTableQuestionAnswer : Entity, IAuditAdd, IAuditUpdate, ISoftDelete
	{
		/// <summary>
        /// 问题Id
        /// </summary>
	
		public Guid QuestionId { get; set; }

		/// <summary>
		/// 表格问题Id
		/// </summary>
		public Guid TableQuestionId { get; set; }

		/// <summary>
		/// 任务Id
		/// </summary>
		public Guid VisitTaskId { get; set; }
	
		/// <summary>
        /// 项目Id
        /// </summary>
		public Guid TrialId { get; set; }
	
		/// <summary>
        /// 行号
        /// </summary>
		public decimal RowIndex { get; set; }
	
		/// <summary>
        /// 答案
        /// </summary>
		public string Answer { get; set; }
	
		/// <summary>
        /// 创建时间
        /// </summary>
		public DateTime CreateTime { get; set; }
	
		/// <summary>
        /// 创建人
        /// </summary>
		public Guid CreateUserId { get; set; }


		/// <summary>
		/// RowId
		/// </summary>
		public Guid RowId { get; set; }


		public Guid UpdateUserId { get; set; } 
		public DateTime UpdateTime { get; set; }

		public bool IsDeleted { get; set; }

		public DateTime? DeletedTime { get; set; }

		public Guid? DeleteUserId { get; set; }


        [JsonIgnore]
        [ForeignKey("RowId")]

        public ReadingTableAnswerRowInfo Lesion { get; set; }


        [JsonIgnore]
		[ForeignKey("QuestionId")]

		public ReadingQuestionTrial ReadingQuestionTrial { get; set; }


		[JsonIgnore]
		[ForeignKey("TableQuestionId")]

		public ReadingTableQuestionTrial ReadingTableQuestionTrial { get; set; }



        [JsonIgnore]
        [ForeignKey("VisitTaskId")]
        public VisitTask VisitTask { get; set; }

    }

	 
}