using Microsoft.EntityFrameworkCore; using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Znyc.Admin.Commons.Entitys; namespace Znyc.Admin.Security.Entitys { /// /// 用户表,数据实体对象 /// [Table("dc_user")] [Serializable] public class User : BaseEntity { /// /// OpenId /// [Comment("OpenId")] [Required, MaxLength(32)] public string OpenId { get; set; } /// /// 账号 /// public string Account { get; set; } /// /// 密码 /// public string PassWord { get; set; } /// /// 盐 /// public string Salt { get; set; } /// /// 用户名 /// [Comment("用户名")] [MaxLength(8)] public string UserName { get; set; } /// /// 头像 /// [Comment("头像")] public string AvatarUrl { get; set; } /// /// 电话 /// [Comment("电话")] [MaxLength(11)] public string Phone { get; set; } /// /// 状态 /// [Comment("状态")] [MaxLength(20)] public long Status { get; set; } } }