mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-05 18:48:41 +00:00
feat: account deletion; auto incremental uids; display name renaming UI + account deletion UI; enhanced username validation
This commit is contained in:
@@ -3,10 +3,11 @@ using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace SharpbinV3.Server.Data.Entities
|
||||
{
|
||||
[Index(nameof(UID))]
|
||||
[Index(nameof(UUID), IsUnique = true)]
|
||||
public sealed class User
|
||||
{
|
||||
public int UID { get; set; }
|
||||
public int? UID { get; set; }
|
||||
[Key]
|
||||
public required Guid UUID { get; set; } = Guid.CreateVersion7(); // uuid v7 includes timestamp
|
||||
public required string Username { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user