Added settings option model. Recreated migrations

This commit is contained in:
2025-12-25 22:02:12 +01:00
parent bfc7d9993a
commit be3cdb8235
8 changed files with 217 additions and 115 deletions

View File

@@ -1,11 +1,16 @@
namespace Moonlight.Api.Database.Entities;
using System.ComponentModel.DataAnnotations;
namespace Moonlight.Api.Database.Entities;
public class User
{
public int Id { get; set; }
public string Username { get; set; }
public string Email { get; set; }
[MaxLength(50)]
public required string Username { get; set; }
[MaxLength(254)]
public required string Email { get; set; }
public DateTimeOffset InvalidateTimestamp { get; set; }
}