同步数据模型和数据库对应关系1
continuous-integration/drone/push Build is passing

This commit is contained in:
hang
2024-09-19 21:56:36 +08:00
parent d789c48004
commit 19f4385055
71 changed files with 3016 additions and 3469 deletions
@@ -3,62 +3,44 @@ 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("ReadingGlobalTaskInfo")]
public class ReadingGlobalTaskInfo : BaseAddAuditEntity
{
///<summary>
/// 阅片全局任务信息
///</summary>
[Table("ReadingGlobalTaskInfo")]
public class ReadingGlobalTaskInfo : BaseAddAuditEntity
{
#region
[JsonIgnore]
[ForeignKey("TaskId")]
public VisitTask VisitTask { get; set; }
#region
[JsonIgnore]
[ForeignKey("TaskId")]
public VisitTask VisitTask { get; set; }
[JsonIgnore]
[ForeignKey("GlobalTaskId")]
public VisitTask GlobalVisitTask { get; set; }
[JsonIgnore]
[ForeignKey("GlobalTaskId")]
public VisitTask GlobalVisitTask { get; set; }
[JsonIgnore]
[ForeignKey("QuestionId")]
public ReadingQuestionTrial TrialReadingQuestion { get; set; }
#endregion
[JsonIgnore]
[ForeignKey("QuestionId")]
public ReadingQuestionTrial TrialReadingQuestion { get; set; }
#endregion
/// <summary>
/// 全局任务Id
/// </summary>
public Guid GlobalTaskId { get; set; }
/// <summary>
/// 原任务ID
/// </summary>
public Guid TaskId { get; set; }
/// <summary>
/// 问题ID
/// </summary>
public Guid? QuestionId { get; set; }
[StringLength(4000)]
public string Answer { get; set; } = null!;
[Comment("全局答案类型")]
public GlobalAnswerType GlobalAnswerType { get; set; }
[Comment("全局任务Id")]
public Guid GlobalTaskId { get; set; }
/// <summary>
/// 问题答案
/// </summary>
public Guid? QuestionId { get; set; }
public string Answer { get; set; } = string.Empty;
public Guid SubjectId { get; set; }
[Comment("原任务ID")]
public Guid TaskId { get; set; }
public Guid TrialId { get; set; }
}
public Guid TrialId { get; set; }
/// <summary>
/// 全局答案类型
/// </summary>
public GlobalAnswerType GlobalAnswerType { get; set; }
public Guid SubjectId { get; set; }
}
}