using AutobusApi.Domain.Common; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace AutobusApi.Infrastructure.Data.Configurations; public class EntityBaseConfiguration : IEntityTypeConfiguration where TEntity : EntityBase { public virtual void Configure(EntityTypeBuilder builder) { builder .HasKey(e => e.Id); builder .Property(e => e.Id) .HasColumnName("id") .HasColumnType("int") .IsRequired(); builder .Property(e => e.IsDeleted) .HasColumnName("is_deleted") .HasColumnType("boolean") .IsRequired(); } }