using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace IRaCIS.Core.Domain.Models
{
    [Table("VisitStage")]
    public class VisitStage : Entity, IAuditUpdate, IAuditAdd,ISoftDelete
    {
        [JsonIgnore]
        public Trial Trial { get; set; }
        public Guid TrialId { get; set; }

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



        [Column(TypeName = "decimal(18,1)")]
        public decimal VisitNum { get; set; }
        public string VisitName { get; set; } = string.Empty;
        public int VisitDay { get; set; }
        public string Description { get; set; } = string.Empty;

        public bool IsConfirmed { get; set; }=false;

        public bool NeedGlobal { get; set; } = false;

        public bool IsBaseLine { get; set; } = false;


        public int VisitWindowLeft { get; set; }
        public int VisitWindowRight { get; set; }


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

        public bool IsHaveFirstConfirmed { get; set; }

        public  bool IsDeleted { get; set; }
        public DateTime? DeletedTime { get; set; }

        public Guid? DeleteUserId { get; set; }

    }
}
