using IRaCIS.Core.Domain.Share;
using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace IRaCIS.Core.Domain.Models
{
    [Table("EnrollDetail")]
    public partial class EnrollDetail : Entity, IAuditAdd
    {
        [JsonIgnore]
        public virtual TrialStatusDetail  TrialDetail { get; set; }

        public Guid DoctorId { get; set; }
        public Guid TrialId { get; set; }
        public EnrollStatus EnrollStatus { get; set; }
        public Guid? EnrollId { get; set; }
        public string Memo { get; set; } = string.Empty;
        public Guid CreateUserId { get; set; }
        public int OptUserType { get; set; }
        public DateTime CreateTime { get; set; }


        public Guid TrialDetailId { get; set; }

        [JsonIgnore]
        [ForeignKey("CreateUserId")]
        public User CreateUser { get; set; }
        [JsonIgnore]
        public Doctor Doctor { get; set; }  
    }
}
