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.
61 lines
2.9 KiB
61 lines
2.9 KiB
using FreeSql.DataAnnotations;
|
|
|
|
namespace Znyc.CloudCar.Model.Entities
|
|
{
|
|
/// <summary>
|
|
/// 用户表
|
|
/// </summary>
|
|
[Table(Name = "user")]
|
|
public class UserEntity : EntityBase
|
|
{
|
|
/// <summary>
|
|
/// OpenId
|
|
/// </summary>
|
|
[Column(StringLength = 32)]
|
|
#pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的 属性“OpenId”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
|
|
public string OpenId { get; set; }
|
|
#pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的 属性“OpenId”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
|
|
|
|
/// <summary>
|
|
/// UnionId
|
|
/// </summary>
|
|
[Column(StringLength = 32)]
|
|
#pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的 属性“UnionId”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
|
|
public string UnionId { get; set; }
|
|
#pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的 属性“UnionId”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
|
|
|
|
/// <summary>
|
|
/// 用户昵称
|
|
/// </summary>
|
|
[Column(StringLength = 12)]
|
|
#pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的 属性“UserName”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
|
|
public string UserName { get; set; }
|
|
#pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的 属性“UserName”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
|
|
|
|
/// <summary>
|
|
/// 用户头像
|
|
/// </summary>
|
|
[Column(StringLength = 155)]
|
|
#pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的 属性“AvatarUrl”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
|
|
public string AvatarUrl { get; set; }
|
|
#pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的 属性“AvatarUrl”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
|
|
|
|
/// <summary>
|
|
/// 手机号
|
|
/// </summary>
|
|
[Column(StringLength = 11)]
|
|
#pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的 属性“Phone”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
|
|
public string Phone { get; set; }
|
|
#pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的 属性“Phone”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
|
|
|
|
/// <summary>
|
|
/// 状态
|
|
/// </summary>
|
|
public int State { get; set; }
|
|
|
|
/// <summary>
|
|
/// 是否实名认证
|
|
/// </summary>
|
|
public bool IsRealAuthentication { get; set; }
|
|
}
|
|
}
|