1234567891011121314151617181920212223242526272829303132 |
- using SqlSugar;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.Linq;
- using System.Threading.Tasks;
- namespace HiTeachCE.Models
- {
- [SugarTable("Lecturer")]
- public class Lecturer:Entity
- {
- [SugarColumn(IsNullable = false, IsPrimaryKey = true)]
- public string id { get; set; }
- public string unionid { get; set; }
- [Required(ErrorMessage = "用户名必须填写")]
- public string username { get; set; }
- public string password { get; set; }
- [Required(ErrorMessage = "账号必须填写")]
- public string account { get; set; }
- [Required(ErrorMessage = "手机号必须填写")]
- public string cellphone { get; set; }
- public string areaCode { get; set; }
- public long registerTime { get; set; }
- public int status { get; set; }
- //是否设置了账号
- public int setaccount { get; set; } = 0;
- public string email { get; set; }
- public string avatar { get; set; }
- public string gender { get; set; }
- }
- }
|