
//--------------------------------------------------------------------
//     此代码由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
    {

        public Trial Trial { get; set; }

        public Guid TrialId { get; set; }

        /// <summary>
        /// CreateUserId
        /// </summary>
        [Required]
        public Guid CreateUserId { get; set; }

        /// <summary>
        /// CreateTime
        /// </summary>
        [Required]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// UpdateTime
        /// </summary>
        [Required]
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// UpdateUserId
        /// </summary>
        [Required]
        public Guid UpdateUserId { get; set; }


        /// <summary>
        /// 计划比率  
        /// </summary>
        [Required]
        public int PlanReadingRatio { get; set; }



        public Guid DoctorUserId { get; set; }

        [ForeignKey("DoctorUserId")]

        public User DoctorUser { get; set; }

        /// <summary>
        /// IsEnable
        /// </summary>
        [Required]
        public bool IsEnable { get; set; }


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


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




        public List<VisitTask> DoctorVisitTaskList { get; set; } = new List<VisitTask>();

        ///// <summary>
        ///// Arm 组
        ///// </summary>
        //[Required]
        //public int GroupEnum { get; set; }

        ///// <summary>
        ///// 分配类型
        ///// </summary>
        //[Required]
        //public int AllocationObjectEnum { get; set; }

    }

}
