mi-assessment/server/MiAssessment/src/MiAssessment.Admin.Business/Entities/AssessmentRecordConclusion.cs
2026-02-25 18:20:23 +08:00

79 lines
1.8 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace MiAssessment.Admin.Business.Entities;
/// <summary>
/// 测评记录结论表
/// </summary>
[Table("assessment_record_conclusions")]
public class AssessmentRecordConclusion
{
/// <summary>
/// 主键ID
/// </summary>
[Key]
public long Id { get; set; }
/// <summary>
/// 测评记录ID
/// </summary>
public long RecordId { get; set; }
/// <summary>
/// 分类ID
/// </summary>
public long CategoryId { get; set; }
/// <summary>
/// 结论类型1最强 2较强 3较弱 4最弱
/// </summary>
public int ConclusionType { get; set; }
/// <summary>
/// 星级1-5记录级别的星级可由管理员覆盖
/// </summary>
public int StarLevel { get; set; }
/// <summary>
/// 结论标题
/// </summary>
[MaxLength(100)]
public string? Title { get; set; }
/// <summary>
/// 结论内容(富文本)
/// </summary>
[Required]
[Column(TypeName = "nvarchar(max)")]
public string Content { get; set; } = null!;
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreateTime { get; set; }
/// <summary>
/// 更新时间
/// </summary>
public DateTime UpdateTime { get; set; }
/// <summary>
/// 软删除标记
/// </summary>
public bool IsDeleted { get; set; }
/// <summary>
/// 关联的测评记录
/// </summary>
[ForeignKey(nameof(RecordId))]
public virtual AssessmentRecord? Record { get; set; }
/// <summary>
/// 关联的报告分类
/// </summary>
[ForeignKey(nameof(CategoryId))]
public virtual ReportCategory? Category { get; set; }
}