Implemented theme crud and basic theme loading
This commit is contained in:
21
Moonlight.Api/Database/Entities/Theme.cs
Normal file
21
Moonlight.Api/Database/Entities/Theme.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Moonlight.Api.Database.Entities;
|
||||
|
||||
public class Theme
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
[MaxLength(30)]
|
||||
public required string Name { get; set; }
|
||||
|
||||
[MaxLength(30)]
|
||||
public required string Version { get; set; }
|
||||
|
||||
[MaxLength(30)]
|
||||
public required string Author { get; set; }
|
||||
public bool IsEnabled { get; set; }
|
||||
|
||||
[MaxLength(20_000)]
|
||||
public required string CssContent { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user