同步数据模型和数据库对应关系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
+68 -45
View File
@@ -1,70 +1,93 @@
using IRaCIS.Core.Domain.Share;
using IRaCIS.Core.Domain.Share;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models
namespace IRaCIS.Core.Domain.Models;
[Comment("医生 - 入组项目中间记录表")]
[Table("Enroll")]
public partial class Enroll : BaseFullAuditEntity
{
[Table("Enroll")]
public partial class Enroll : BaseFullAuditEntity
{
#region
[JsonIgnore]
[ForeignKey("TrialId")]
public virtual Trial Trial { get; set; }
[JsonIgnore]
public virtual Doctor Doctor { get; set; }
[JsonIgnore]
public User DoctorUser { get; set; }
#region
[JsonIgnore]
[ForeignKey("TrialId")]
public virtual Trial Trial { get; set; }
[JsonIgnore]
public virtual Doctor Doctor { get; set; }
[JsonIgnore]
public User DoctorUser { get; set; }
[JsonIgnore]
public List<EnrollReadingCategory> EnrollReadingCategoryList { get; set; }
[JsonIgnore]
public List<EnrollReadingCategory> EnrollReadingCategoryList { get; set; }
[JsonIgnore]
public List<EnrollReadingCriterion> EnrollReadingCriteriaList { get; set; }
#endregion
[JsonIgnore]
public List<EnrollReadingCriterion> EnrollReadingCriteriaList { get; set; }
#endregion
public Guid DoctorId { get; set; }
public Guid TrialId { get; set; }
public Guid AttachmentId { get; set; } = Guid.Empty;
public EnrollStatus EnrollStatus { get; set; }
[Comment(" 裁定")]
public int? Adjudication { get; set; }
public decimal? AdjustmentMultiple { get; set; }
public DateTime? EnrollTime { get; set; }
public DateTime? OutEnrollTime { get; set; }
[Comment(" 裁定24小时")]
public int? Adjudication24H { get; set; }
public string Memo { get; set; } = string.Empty;
[Comment(" 裁定48小时")]
public int? Adjudication48H { get; set; }
public int ReviewerReadingType { get; set; } = 0;
public int? Training { get; set; }
[Comment(" 价格")]
[DecimalPrecision(18, 2)]
public decimal? AdjustmentMultiple { get; set; }
public int? RefresherTraining { get; set; }
public Guid? AttachmentId { get; set; }
public int? Timepoint { get; set; }
public Guid DoctorId { get; set; }
public int? Timepoint48H { get; set; }
public int DoctorTrialState { get; set; }
public int? Timepoint24H { get; set; }
[Comment(" 生成账号 加入到项目中后 赋值")]
public Guid? DoctorUserId { get; set; }
public int? Adjudication { get; set; }
[Comment(" 空跑")]
public int? Downtime { get; set; }
public int? Adjudication48H { get; set; }
[Comment(" 入组状态")]
public EnrollStatus EnrollStatus { get; set; }
public int? Adjudication24H { get; set; }
[Comment(" 入组时间")]
public DateTime? EnrollTime { get; set; }
public int? Global { get; set; }
[Comment(" 总体")]
public int? Global { get; set; }
public int? Downtime { get; set; }
[StringLength(500)]
public string Memo { get; set; } = null!;
[Comment(" 出组时间")]
public DateTime? OutEnrollTime { get; set; }
[Comment(" 重新培训")]
public int? RefresherTraining { get; set; }
[Comment(" 0代表裁判和TP都可以 1代表Tp 2 代表裁判")]
public int ReviewerReadingType { get; set; }
[Comment(" 时间点")]
public int? Timepoint { get; set; }
[Comment(" 时间点24小时")]
public int? Timepoint24H { get; set; }
[Comment(" 时间点48小时")]
public int? Timepoint48H { get; set; }
[Comment(" 培训")]
public int? Training { get; set; }
public Guid TrialId { get; set; }
/// <summary>
/// 生成账号 加入到项目中后 赋值
/// </summary>
public Guid? DoctorUserId { get; set; }
}
}
+27 -20
View File
@@ -1,30 +1,37 @@
using IRaCIS.Core.Domain.Share;
using Microsoft.EntityFrameworkCore;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models
namespace IRaCIS.Core.Domain.Models;
[Comment("医生 - 入组项目流程记录表")]
[Table("EnrollDetail")]
public partial class EnrollDetail : BaseAddAuditEntity
{
[Table("EnrollDetail")]
public partial class EnrollDetail : BaseAddAuditEntity
{
#region µ¼º½ÊôÐÔ
[JsonIgnore]
public virtual TrialStatusDetail TrialDetail { get; set; }
[JsonIgnore]
public Doctor Doctor { get; set; }
#endregion
#region
[JsonIgnore]
public virtual TrialStatusDetail TrialDetail { get; set; }
[JsonIgnore]
public Doctor Doctor { get; set; }
#endregion
public Guid DoctorId { get; set; }
public Guid TrialId { get; set; }
public EnrollStatus EnrollStatus { get; set; }
public Guid? EnrollId { get; set; }
public string Memo { get; set; } = string.Empty;
public int OptUserType { get; set; }
public Guid DoctorId { get; set; }
public Guid? EnrollId { get; set; }
public EnrollStatus EnrollStatus { get; set; }
[StringLength(1024)]
public string Memo { get; set; } = null!;
public int OptUserType { get; set; }
public Guid TrialDetailId { get; set; }
public Guid TrialId { get; set; }
public Guid TrialDetailId { get; set; }
}
}
@@ -7,30 +7,27 @@ 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("EnrollReadingCategory")]
public class EnrollReadingCategory : BaseAddAuditEntity
{
///<summary>
///EnrollReadingCategory
///</summary>
[Table("EnrollReadingCategory")]
public class EnrollReadingCategory : BaseAddAuditEntity
{
#region
#region
[JsonIgnore]
[ForeignKey("EnrollId")]
public Enroll Enroll { get; set; }
#endregion
public Guid EnrollId { get; set; }
[JsonIgnore]
[ForeignKey("EnrollId")]
public Enroll Enroll { get; set; }
#endregion
public Guid EnrollId { get; set; }
public ReadingCategory ReadingCategory { get; set; }
public ReadingCategory ReadingCategory { get; set; }
public Guid TrialReadingCriterionId { get; set; }
public Guid TrialReadingCriterionId { get; set; }
}
}