feat(db): extended amount of settings informations stored on the database feat(frontend): added support for updating the refreshToken after a refresh request. feat(backend): added a defaultSettings.json file that defines how the settings are initialized.
20 lines
439 B
C#
20 lines
439 B
C#
using Butter.Settings;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Lactose.Models;
|
|
|
|
public class Setting {
|
|
[Key][MaxLength(50)]
|
|
public required string Name { get; set; }
|
|
|
|
[MaxLength(1024)]
|
|
public string? Value { get; set; }
|
|
|
|
[MaxLength(2048)]
|
|
public string? Description { get; set; }
|
|
|
|
public required EType Type { get; set; }
|
|
|
|
public required DisplayType DisplayType { get; set; }
|
|
}
|