Download Models/User.cs from automindy/Toolhub: direct link, hf CLI and curl.
- Browser
- Download file 991 Bytes
-
https://huggingface.co/spaces/automindy/Toolhub/resolve/main/Models/User.cs
- Command line
-
hf download hf://spaces/automindy/Toolhub/Models/User.cs
-
curl -L -o User.cs https://huggingface.co/spaces/automindy/Toolhub/resolve/main/Models/User.cs
991 Bytes
| using FreeSql.DataAnnotations; | |
| namespace ToolHub.Models; | |
| [] | |
| public class User | |
| { | |
| [] | |
| public int Id { get; set; } | |
| [] | |
| public string UserName { get; set; } = string.Empty; | |
| [] | |
| public string Email { get; set; } = string.Empty; | |
| [] | |
| public string PasswordHash { get; set; } = string.Empty; | |
| [] | |
| public string? NickName { get; set; } | |
| [] | |
| public string? Avatar { get; set; } | |
| public DateTime CreatedAt { get; set; } = DateTime.Now; | |
| public DateTime? UpdatedAt { get; set; } | |
| public bool IsActive { get; set; } = true; | |
| [] | |
| public string Role { get; set; } = "User"; // User, Admin | |
| // 导航属性 | |
| [] | |
| public List<UserFavorite> UserFavorites { get; set; } = new(); | |
| } | |