//--------------------------------------------------------------------
// 此代码由T4模板自动生成 byzhouhang 20210918
// 生成时间 2021-11-11 11:19:10
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models
{
///
///TrialQCQuestionConfigure
///
[Table("TrialQCQuestion")]
public class TrialQCQuestion : Entity, IAuditUpdate, IAuditAdd
{
[JsonIgnore]
public Trial Trial { get; set; }
///
/// TrialId
///
[Required]
public Guid TrialId { get; set; }
///
/// QuestionName
///
[Required]
public string QuestionName { get; set; } = string.Empty;
///
/// IsRequired
///
[Required]
public bool IsRequired { get; set; }
///
/// IsEnable
///
[Required]
public bool IsEnable { get; set; }
///
/// 下拉框、文本、单选、多选
///
[Required]
public string Type { get; set; } = string.Empty;
public Guid? ParentId { get; set; }
[JsonIgnore]
[ForeignKey("ParentId")]
public TrialQCQuestion ParentQCQuestion { get; set; }
///
/// TypeValue
///
[Required]
public string TypeValue { get; set; }
///
/// ChildInvalidValue
///
[Required]
public string ParentTriggerValue { get; set; }
///
/// ShowOrder
///
[Required]
public int ShowOrder { get; set; }
///
/// CreateUserId
///
[Required]
public Guid CreateUserId { get; set; }
///
/// CreateTime
///
[Required]
public DateTime CreateTime { get; set; }
///
/// UpdateTime
///
[Required]
public DateTime UpdateTime { get; set; }
///
/// UpdateUserId
///
[Required]
public Guid UpdateUserId { get; set; }
///
/// 是否确认
///
public bool? IsConfirm { get; set; }
[JsonIgnore]
public List TrialQCQuestionAnswerList { get; set; }
}
}