using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using IRaCIS.Core.Domain.Share;
using Newtonsoft.Json;
namespace IRaCIS.Core.Domain.Models
{
///
///ReadingCriterionDictionary
///
[Table("ReadingCriterionDictionary")]
public class ReadingCriterionDictionary : Entity, IAuditAdd
{
///
/// CriterionId
///
public Guid CriterionId { get; set; }
///
/// DictionaryId
///
public Guid DictionaryId { get; set; }
///
/// CreateTime
///
public DateTime CreateTime { get; set; }
///
/// IsSystemCriterion
///
public bool IsSystemCriterion { get; set; } = false;
///
/// ParentCode
///
public string ParentCode { get; set; } = string.Empty;
///
/// CreateUserId
///
public Guid CreateUserId { get; set; }
///
/// IsBaseLineUse
///
public bool IsBaseLineUse { get; set; } = false;
///
/// IsBaseUse
///
public bool IsFollowVisitUse { get; set; } = false;
[JsonIgnore]
[ForeignKey("DictionaryId")]
public Dictionary Dictionary { get; set; }
[ForeignKey("CriterionId")]
[JsonIgnore]
public ReadingQuestionCriterionTrial TrialReadingCriterion { get; set; }
}
}