From 63380408591d09a0a38d7d912f21a612af077656 Mon Sep 17 00:00:00 2001 From: "DESKTOP-G961P6V\\Zhh" <839860190@qq.com> Date: Thu, 13 Jun 2024 22:47:08 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E5=8D=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Shentun.WebPeis.Domain/Models/QuestionAnswer.cs | 13 +++++++++++++ .../Configures/QuestionAnswerConfigure.cs | 12 ++++++++++++ 2 files changed, 25 insertions(+) diff --git a/src/Shentun.WebPeis.Domain/Models/QuestionAnswer.cs b/src/Shentun.WebPeis.Domain/Models/QuestionAnswer.cs index dc0fdf9..1abf494 100644 --- a/src/Shentun.WebPeis.Domain/Models/QuestionAnswer.cs +++ b/src/Shentun.WebPeis.Domain/Models/QuestionAnswer.cs @@ -39,6 +39,19 @@ public partial class QuestionAnswer : AuditedEntity, IHasConcurrencyStamp /// public char? AnswerResultType { get; set; } + /// + /// 概述 + /// + + public string Overview { get; set; } + /// + /// 可能原因 + /// + public string Reason { get; set; } + /// + /// 健康指导 + /// + public string HealthGuidance { get; set; } /// /// 父答案ID diff --git a/src/Shentun.WebPeis.EntityFrameworkCore/Configures/QuestionAnswerConfigure.cs b/src/Shentun.WebPeis.EntityFrameworkCore/Configures/QuestionAnswerConfigure.cs index f223abe..e72f18d 100644 --- a/src/Shentun.WebPeis.EntityFrameworkCore/Configures/QuestionAnswerConfigure.cs +++ b/src/Shentun.WebPeis.EntityFrameworkCore/Configures/QuestionAnswerConfigure.cs @@ -64,6 +64,18 @@ namespace Shentun.WebPeis.Configures .HasMaxLength(1) .HasColumnName("is_none"); + entity.Property(e => e.Overview) + .HasMaxLength(300) + .HasColumnName("overview"); + + entity.Property(e => e.Reason) + .HasMaxLength(300) + .HasColumnName("reason"); + + entity.Property(e => e.HealthGuidance) + .HasMaxLength(300) + .HasColumnName("health_guidance"); + } } }