Download Models/UserToolAccess.cs from automindy/Toolhub: direct link, hf CLI and curl.
- Browser
- Download file 1.12 kB
-
https://huggingface.co/spaces/automindy/Toolhub/resolve/main/Models/UserToolAccess.cs
- Command line
-
hf download hf://spaces/automindy/Toolhub/Models/UserToolAccess.cs
-
curl -L -o UserToolAccess.cs https://huggingface.co/spaces/automindy/Toolhub/resolve/main/Models/UserToolAccess.cs
1.12 kB
| using FreeSql.DataAnnotations; | |
| namespace ToolHub.Models; | |
| [] | |
| public class UserToolAccess | |
| { | |
| [] | |
| public int Id { get; set; } | |
| public int? UserId { get; set; } // 可为空,支持匿名用户 | |
| public int ToolId { get; set; } | |
| [] | |
| public string? SessionId { get; set; } // 会话ID,用于匿名用户跟踪 | |
| [] | |
| public string? IpAddress { get; set; } // IP地址 | |
| [] | |
| public string? UserAgent { get; set; } // 用户代理 | |
| [] | |
| public string? Referer { get; set; } // 来源页面 | |
| [] | |
| public string AccessType { get; set; } = "view"; // view, favorite, share, download | |
| public int Duration { get; set; } = 0; // 停留时间(秒) | |
| public DateTime CreatedAt { get; set; } = DateTime.Now; | |
| // 导航属性 | |
| [] | |
| public User? User { get; set; } | |
| [] | |
| public Tool Tool { get; set; } = null!; | |
| } | |