using HN.Domain; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace HN.Infrastructure.EntityTypes { public sealed class VoteEntityType : IEntityTypeConfiguration { public void Configure(EntityTypeBuilder builder) { builder.ToTable("link_votes"); builder.HasKey("LinkId"); builder.Property(o => o.Type).IsRequired(); builder.Property(o => o.CreatedAt).IsRequired(); } } }