稽查实体给默认值
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-09-19 17:01:03 +08:00
parent b98df9dae8
commit b5d117f6fa
3 changed files with 42 additions and 62 deletions
@@ -7,64 +7,43 @@ using System;
using IRaCIS.Core.Domain.Share;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models
using Microsoft.EntityFrameworkCore;
namespace IRaCIS.Core.Domain.Models;
[Comment("医生 - 项目标准签名文档")]
[Table("DoctorCriterionFile")]
public class DoctorCriterionFile : BaseAddAuditEntity
{
///<summary>
///DoctorCriterionFile
///</summary>
[Table("DoctorCriterionFile")]
public class DoctorCriterionFile :BaseAddAuditEntity
{
#region
[JsonIgnore]
[ForeignKey("DoctorId")]
public Doctor Doctor { get; set; }
#endregion
/// <summary>
/// 文件名称
/// </summary>
public string FileName { get; set; } = string.Empty;
#region
[JsonIgnore]
[ForeignKey("DoctorId")]
public Doctor Doctor { get; set; }
#endregion
/// <summary>
/// 文件路径
/// </summary>
public string FilePath { get; set; } = string.Empty;
public string CriterionName { get; set; } = null!;
/// <summary>
/// 标准类型
/// </summary>
public CriterionType CriterionType { get; set; }
/// <summary>
/// 医生Id
/// </summary>
public Guid DoctorId { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Remark { get; set; } = string.Empty;
[Comment("标准类型")]
public CriterionType CriterionType { get; set; }
/// <summary>
/// 文件类型
/// </summary>
public CriterionFileType FileType { get; set; }
public Guid DoctorId { get; set; }
[StringLength(400)]
public string FileName { get; set; } = null!;
[StringLength(4000)]
public string FilePath { get; set; } = null!;
public CriterionFileType FileType { get; set; }
public bool IsEnable { get; set; }
public string Remark { get; set; } = null!;
public Guid? TrialId { get; set; }
public Guid? TrialReadingCriterionId { get; set; }
}
/// <summary>
/// 是否启用
/// </summary>
public bool IsEnable { get; set; } = true;
public string CriterionName { get; set; } = string.Empty;
public Guid? TrialReadingCriterionId { get; set; }
public Guid? TrialId { get; set; }
}
}