52 lines
1.3 KiB
C#
52 lines
1.3 KiB
C#
![]() |
using System.ComponentModel.DataAnnotations;
|
|||
|
using System.ComponentModel.DataAnnotations.Schema;
|
|||
|
using Microsoft.EntityFrameworkCore;
|
|||
|
|
|||
|
namespace YD_WeChatApplet.Api.Entitys
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// 用户身份表
|
|||
|
/// </summary>
|
|||
|
[Table("User_Auth")]
|
|||
|
public class User_Auth
|
|||
|
{
|
|||
|
[Key]
|
|||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|||
|
[Display(Description = "主键Id")]
|
|||
|
[Comment("Id")]
|
|||
|
public int Id { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
///角色
|
|||
|
/// </summary>
|
|||
|
[Display(Name = "角色Id")]
|
|||
|
[Comment("角色Id")]
|
|||
|
[Column(TypeName = "int")]
|
|||
|
public int Role_Id { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
///自身Id
|
|||
|
/// </summary>
|
|||
|
[Display(Name = "自身Id")]
|
|||
|
[Comment("自身Id")]
|
|||
|
[Column(TypeName = "int")]
|
|||
|
public int Self_Id { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
///绑定Id
|
|||
|
/// </summary>
|
|||
|
[Display(Name = "绑定Id")]
|
|||
|
[Comment("绑定Id")]
|
|||
|
[Column(TypeName = "int")]
|
|||
|
public int Bind_Id { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
///Token
|
|||
|
/// </summary>
|
|||
|
[Display(Name = "Token")]
|
|||
|
[Comment("Token")]
|
|||
|
[Column(TypeName = "nvarchar(max)")]
|
|||
|
public string Token { get; set; }
|
|||
|
}
|
|||
|
}
|