[CHANGE] Updated string maxsize on entities. Setup lib dbcontext
This commit is contained in:
@@ -1,11 +1,17 @@
|
||||
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; }
|
||||
|
Reference in New Issue
Block a user