Added settings option model. Recreated migrations
This commit is contained in:
14
Moonlight.Api/Database/Entities/SettingsOption.cs
Normal file
14
Moonlight.Api/Database/Entities/SettingsOption.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Moonlight.Api.Database.Entities;
|
||||
|
||||
public class SettingsOption
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
[MaxLength(256)]
|
||||
public required string Key { get; set; }
|
||||
|
||||
[MaxLength(4096)]
|
||||
public required string Value { get; set; }
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
Reference in New Issue
Block a user