using ErsatzTV.Core.Domain;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace ErsatzTV.Infrastructure.Data.Configurations;

public class SubtitleConfiguration : IEntityTypeConfiguration<Subtitle>
{
    public void Configure(EntityTypeBuilder<Subtitle> builder)
    {
        builder.ToTable("Subtitle");

        builder.Property(s => s.IsExtracted)
            .HasDefaultValue(false);

        builder.Property(s => s.SDH)
            .HasDefaultValue(false);
    }
}
