using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace Integrations.Data.Configurations;
internal sealed class ModuleConfiguration : IEntityTypeConfiguration<Module>
{
	public void Configure(EntityTypeBuilder<Module> builder)
	{
		builder.Property(x => x.Name)
			.IsRequired()
			.HasMaxLength(100);

		builder.Property(x => x.Description)
			.IsRequired()
			.HasMaxLength(1000);
	}
}
