You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.5 KiB
65 lines
1.5 KiB
using Microsoft.EntityFrameworkCore;
|
|
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Znyc.Admin.Commons.Entitys;
|
|
|
|
namespace Znyc.Admin.Security.Entitys
|
|
{
|
|
/// <summary>
|
|
/// 用户表,数据实体对象
|
|
/// </summary>
|
|
[Table("dc_user")]
|
|
[Serializable]
|
|
public class User : BaseEntity
|
|
{
|
|
/// <summary>
|
|
/// OpenId
|
|
/// </summary>
|
|
[Comment("OpenId")]
|
|
[Required, MaxLength(32)]
|
|
public string OpenId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 账号
|
|
/// </summary>
|
|
public string Account { get; set; }
|
|
|
|
/// <summary>
|
|
/// 密码
|
|
/// </summary>
|
|
public string PassWord { get; set; }
|
|
|
|
/// <summary>
|
|
/// 盐
|
|
/// </summary>
|
|
public string Salt { get; set; }
|
|
|
|
/// <summary>
|
|
/// 用户名
|
|
/// </summary>
|
|
[Comment("用户名")]
|
|
[MaxLength(8)]
|
|
public string UserName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 头像
|
|
/// </summary>
|
|
[Comment("头像")]
|
|
public string AvatarUrl { get; set; }
|
|
|
|
/// <summary>
|
|
/// 电话
|
|
/// </summary>
|
|
[Comment("电话")]
|
|
[MaxLength(11)]
|
|
public string Phone { get; set; }
|
|
|
|
/// <summary>
|
|
/// 状态
|
|
/// </summary>
|
|
[Comment("状态")]
|
|
[MaxLength(20)]
|
|
public long Status { get; set; }
|
|
}
|
|
}
|