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