[CHANGE] Updated string maxsize on entities. Setup lib dbcontext
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Manager.Data.Models.LibraryContext;
|
||||
|
||||
public class CaptionEntity
|
||||
{
|
||||
[MaxLength(DataConstants.DbContext.DefaultDbStringSize)]
|
||||
public required string MediaId { get; set; }
|
||||
[MaxLength(DataConstants.DbContext.DefaultDbStringSize)]
|
||||
public required string Name { get; set; }
|
||||
public required string CaptionPath { get; set; }
|
||||
[MaxLength(DataConstants.DbContext.DefaultDbStringSize)]
|
||||
public string? LanguageCode { get; set; }
|
||||
}
|
Reference in New Issue
Block a user