18 lines
710 B
C#
18 lines
710 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Manager.Data.Models.ApplicationContext;
|
|
|
|
public class SettingsModel
|
|
{
|
|
[MaxLength(DataConstants.DbContext.DefaultDbStringSize)]
|
|
public required string Key { get; set; }
|
|
[MaxLength(DataConstants.DbContext.DefaultDbStringSize)]
|
|
public required string Name { get; set; }
|
|
[MaxLength(DataConstants.DbContext.DefaultDbDescriptionStringSize)]
|
|
public required string Description { get; set; }
|
|
public Guid? GroupId { get; set; }
|
|
[MaxLength(DataConstants.DbContext.DefaultDbStringSize)]
|
|
public string ValueType { get; set; } = nameof(String);
|
|
public object? Value { get; set; }
|
|
public object? DefaultValue { get; set; }
|
|
} |