using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Abp.Domain.Entities.Auditing;
using WeOnlineApp.Authorization.Users;
using WeOnlineApp.Configuration;
namespace WeOnlineApp.Question
{
///
/// 问题
///
[Table("Train_QuestionAnswerInfos")]
public class QuestionAnswerInfo : AuditedEntity
{
public const int ContentLength = 1000;
public string AnswerNo { get; set; }
[ForeignKey("AnswerNo")]
public QuestionAnswerInfo Parent { get; set; }
[MaxLength(IwbConsts.PrimaryKey)]
public string QuestionNo { get; set; }
[ForeignKey("QuestionNo")]
public QuestionInfo QuestionInfo { get; set; }
///
/// 答案状态
///
public int AnswerState { get; set; }
///
/// 回答内容
///
[MaxLength(ContentLength)]
public string ContentInfo { get; set; }
///
/// 备注
///
[MaxLength(RemarkLength)]
public string Remark { get; set; }
public const int RemarkLength = 500;
}
}