mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
feat: paste cleanup service; sveltekit frontend; paste editing; paste metadata modifying
refactor: rename SharpbinV3 -> SharpbinV3.Server; run cleanup
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using SharpbinV3.Data.Entities;
|
||||
using SharpbinV3.Server.Data.Entities;
|
||||
|
||||
namespace SharpbinV3.Data
|
||||
namespace SharpbinV3.Server.Data
|
||||
{
|
||||
public sealed class AppDbContext(DbContextOptions<AppDbContext> options) : DbContext(options)
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace SharpbinV3.Data.Entities
|
||||
namespace SharpbinV3.Server.Data.Entities
|
||||
{
|
||||
[Index(nameof(PID), IsUnique = true)]
|
||||
[Index(nameof(UUID), IsUnique = true)]
|
||||
@@ -20,9 +20,9 @@ namespace SharpbinV3.Data.Entities
|
||||
|
||||
public required Guid AuthorUUID { get; set; } = Guid.Empty; // uuid of the user who created the paste, or Guid.Empty for anonymous pastes
|
||||
public User? User { get; set; }
|
||||
|
||||
|
||||
public long? EditedAt { get; set; }
|
||||
|
||||
|
||||
public required byte[] Content { get; set; }
|
||||
public int Size { get; set; } // stored size (may be compressed)
|
||||
public int TrueSize { get; set; } // uncompressed size
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace SharpbinV3.Data.Entities
|
||||
namespace SharpbinV3.Server.Data.Entities
|
||||
{
|
||||
public sealed class RefreshToken
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace SharpbinV3.Data.Entities
|
||||
namespace SharpbinV3.Server.Data.Entities
|
||||
{
|
||||
[Index(nameof(UID), IsUnique = true)]
|
||||
[Index(nameof(UUID), IsUnique = true)]
|
||||
|
||||
Reference in New Issue
Block a user