PhoneAnswerInfo.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using Abp.Domain.Entities.Auditing;
  2. using System.ComponentModel.DataAnnotations;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. using WeApp.Authorization.Users;
  5. using WeApp.Configuration;
  6. namespace WeApp.BasicInfo
  7. {
  8. [Table("Bs_PhoneQuestionAnswers")]
  9. public class PhoneAnswerInfo : FullAuditedEntity<int, User>
  10. {
  11. public const int NameMaxLength = 50;
  12. public const int TagMaxLength = 200;
  13. public const int ContentMaxLength = 200;
  14. public const int KeywordMaxLength = 100;
  15. /// <summary>
  16. /// 内容
  17. /// </summary>
  18. [MaxLength(ContentMaxLength)]
  19. public string Content { get; set; }
  20. /// <summary>
  21. /// 关键字
  22. /// </summary>
  23. [MaxLength(KeywordMaxLength)]
  24. public string Keywords { get; set; }
  25. /// <summary>
  26. /// 答案类型
  27. /// </summary>
  28. public int Type { get; set; }
  29. /// <summary>
  30. /// 培训营
  31. /// </summary>
  32. [MaxLength(IwbConsts.PrimaryKey)]
  33. public string QuestionNo { get; set; }
  34. [ForeignKey("QuestionNo")]
  35. public PhoneQuestionInfo QuestionInfo { get; set; }
  36. }
  37. }