mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
Prepare for switch to controllers & remove hmac hashing, switch to bcrypt instead.
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user