using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Bson;
namespace langguanApi.Model.Entity
{
///
/// 用户实体
///
public class UserEntity : BaseModel
{
///
/// 用户名
///
public string Username { get; set; }
///
/// 密码 md5加密
///
public string Password { get; set; }
///
/// 角色id
///
[BsonRepresentation(BsonType.ObjectId)]
public string roleId { get; set; }
///
/// 邮箱
///
public string Email { get; set; }
///
/// 学历
///
public string Education { get; set; }
///
/// 手机号
///
public string Tel { get; set; }
///
/// 性别 0表示男 1表示女
///
public byte Sex { get; set; }
///
/// 毕业院校
///
public string University { get; set; }
///
/// 出生日期
///
public DateTime? Brithday { get; set; }
///
/// 籍贯
///
public string Native { get; set; }
///
/// 居住地
///
public string Address { get; set; }
///
/// 入职日期
///
public DateTime? Hiredate { get; set; }
///
/// 是否管理员 0否 1是
///
public byte IsAdmin { get; set; }
///
/// 是否启用 0禁用 1启用
///
public byte IsEnable { get; set; }
}
}