Prepare for switch to controllers & remove hmac hashing, switch to bcrypt instead.

This commit is contained in:
whoswhip
2025-07-06 15:24:56 -04:00
parent 1881c8a90d
commit a338b8814a
9 changed files with 88 additions and 24 deletions
+13
View File
@@ -0,0 +1,13 @@
namespace SharpbinV2.Server.Models
{
public class PasswordReset
{
public string? UID { get; set; }
public string? UUID { get; set; }
public string? USERUUID { get; set; }
public string? URL { get; set; }
public string? Token { get; set; }
public long? Created { get; set; }
public long? Expirary { get; set; }
}
}
+18
View File
@@ -0,0 +1,18 @@
namespace SharpbinV2.Server.Models
{
public class Paste
{
public string? UUID { get; set; }
public string? ID { get; set; }
public int? Visibility { get; set; }
public string? Title { get; set; }
public string? AuthorUUID { get; set; }
public string? FilePath { get; set; }
public long? Created { get; set; }
public long? Edited { get; set; }
public int? Size { get; set; }
public int? TrueSize { get; set; }
public int? Views { get; set; }
public string? Syntax { get; set; }
}
}
@@ -0,0 +1,9 @@
namespace SharpbinV2.Server.Models
{
public class RequestDetails
{
public string? Ip { get; set; }
public string? UserAgent { get; set; }
public string? Token { get; set; }
}
}
+13
View File
@@ -0,0 +1,13 @@
namespace SharpbinV2.Server.Models
{
public class Session
{
public string? UUID { get; set; }
public string? UserUUID { get; set; }
public string? Token { get; set; }
public long? Created { get; set; }
public long? Expirary { get; set; }
public string? Ip { get; set; }
public string? UserAgent { get; set; }
}
}
+15
View File
@@ -0,0 +1,15 @@
namespace SharpbinV2.Server.Models
{
public class User
{
public int? UID { get; set; }
public string? UUID { get; set; }
public int? Type { get; set; }
public string? Email { get; set; }
public string? Username { get; set; }
public string? DisplayName { get; set; }
public string? Password { get; set; }
public long? Created { get; set; }
public long? LastLogin { get; set; }
}
}
+12
View File
@@ -0,0 +1,12 @@
namespace SharpbinV2.Server.Models
{
public class View
{
public string? UUID { get; set; }
public string? PasteUUID { get; set; }
public string? UserUUID { get; set; }
public string? IP { get; set; }
public string? UserAgent { get; set; }
public long? Created { get; set; }
}
}