
//--------------------------------------------------------------------
//     此代码由T4模板自动生成  byzhouhang 20210918
//	   生成时间 2022-06-07 14:09:29 
//     对此文件的更改可能会导致不正确的行为，并且如果重新生成代码，这些更改将会丢失。
using System;
using IRaCIS.Core.Domain.Share;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Collections.Generic;

namespace IRaCIS.Core.Domain.Models
{
    ///<summary>
    ///是否需要拆表
    ///</summary>
    [Table("SubjectTaskCategory")]
    public class SubjectTaskCategory : Entity, IAuditAdd
    {
        public Guid TrialId { get; set; }
       
        public string TaskName { get; set; } = string.Empty;
        public string TaskBlindName { get; set; } = string.Empty;


        //任务来源检查批次Id  方便回更检查批次读片状态
        public Guid? SourceSubjectVisitId { get; set; }

        [JsonIgnore]
        [ForeignKey("SourceSubjectVisitId")]
        public SubjectVisit SubjectVisit { get; set; }


        public Guid? SouceReadModuleId { get; set; }
        [JsonIgnore]
        [ForeignKey("SouceReadModuleId")]
        public ReadModule ReadModule { get; set; }

        public ReadingCategory ReadingCategory { get; set; }

        public Guid SubjectId { get; set; }

        public Subject Subject { get; set; }

        public Guid CreateUserId { get; set; }
        public DateTime CreateTime { get; set; }



    }

}
