Lecturer.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. using SqlSugar;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.Linq;
  6. using System.Threading.Tasks;
  7. namespace HiTeachCE.Models
  8. {
  9. [SugarTable("Lecturer")]
  10. public class Lecturer:Entity
  11. {
  12. [SugarColumn(IsNullable = false, IsPrimaryKey = true)]
  13. public string id { get; set; }
  14. public string unionid { get; set; }
  15. [Required(ErrorMessage = "用户名必须填写")]
  16. public string username { get; set; }
  17. public string password { get; set; }
  18. [Required(ErrorMessage = "账号必须填写")]
  19. public string account { get; set; }
  20. [Required(ErrorMessage = "手机号必须填写")]
  21. public string cellphone { get; set; }
  22. public string areaCode { get; set; }
  23. public long registerTime { get; set; }
  24. public int status { get; set; }
  25. //是否设置了账号
  26. public int setaccount { get; set; } = 0;
  27. public string email { get; set; }
  28. public string avatar { get; set; }
  29. public string gender { get; set; }
  30. }
  31. }