//--------------------------------------------------------------------
//     此代码由T4模板自动生成  byzhouhang 20210918
//	   生成时间 2022-06-07 13:13:13 
//     对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
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>
    ///TaskAllocationRule
    ///</summary>
    [Table("TaskAllocationRule")]
    public class TaskAllocationRule : Entity, IAuditUpdate, IAuditAdd
    {
        [JsonIgnore]
        public Trial Trial { get; set; }
        public Guid TrialId { get; set; }
        public Guid CreateUserId { get; set; }
        public DateTime CreateTime { get; set; }
        public DateTime UpdateTime { get; set; }
        public Guid UpdateUserId { get; set; }
        public int PlanSubjectCount { get; set; }


        public bool IsEnable { get; set; }

        public string Note { get; set; } = string.Empty;



        public Guid DoctorUserId { get; set; }

        [ForeignKey("DoctorUserId")]
        [JsonIgnore]
        public User DoctorUser { get; set; }






        public Guid EnrollId { get; set; }
        [JsonIgnore]
        public Enroll Enroll { get; set; }

        //是否是裁判医生  裁判医生单独加入
        public bool IsJudgeDoctor { get; set; }

        public int PlanReadingRatio { get; set; }





    }

}