refactor: add MaxLength to folder fields

This commit is contained in:
Oliver Booth 2024-02-23 17:51:22 +00:00
parent 9074cf5210
commit bd1e9dac1f
Signed by: oliverbooth
GPG Key ID: E60B570D1B7557B5
1 changed files with 2 additions and 2 deletions

View File

@ -16,8 +16,8 @@ internal sealed class TutorialFolderConfiguration : IEntityTypeConfiguration<Tut
builder.Property(e => e.Id).IsRequired();
builder.Property(e => e.Parent);
builder.Property(e => e.Slug).IsRequired();
builder.Property(e => e.Title).IsRequired();
builder.Property(e => e.Slug).HasMaxLength(50).IsRequired();
builder.Property(e => e.Title).HasMaxLength(255).IsRequired();
builder.Property(e => e.PreviewImageUrl).HasConversion<UriToStringConverter>();
}
}