using FreeSql; using FreeSql.DataAnnotations; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; public class UserGroup : BaseEntity { /// /// 组名 /// public string GroupName { get; set; } public List User1s { get; set; } } public class Role : BaseEntity { public List User1s { get; set; } } public class RoleUser1 : BaseEntity { public string RoleId { get; set; } public Guid User1Id { get; set; } public Role Role { get; set; } public User1 User1 { get; set; } } public class User1 : BaseEntity { public int GroupId { get; set; } public UserGroup Group { get; set; } public virtual List Roles { get; set; } /// /// 登陆名 /// [MaxLength(32)] public string Username { get; set; } /// /// 昵称 /// [MaxLength(64)] public string Nickname { get; set; } /// /// 头像 /// [MaxLength(1024)] public string Avatar { get; set; } /// /// 描述 /// [MaxLength(2000)] public string Description { get; set; } } public class IdentityTable { [Column(IsIdentity = true, IsPrimary = true)] public int id { get; set; } public string name { get; set; } }