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

namespace GeoRitmMover.GeoRitm.Data.EntityConfigurations;
public class SourceAuthMapEntityConfiguration : IEntityTypeConfiguration<SourceAuthMap>
{
	public void Configure(EntityTypeBuilder<SourceAuthMap> builder)
	{
		_ = builder.ToTable("auth_map")
			.HasNoKey();

		_ = builder.Property(x => x.UserId)
			.HasColumnName("user_id")
			.IsRequired();

		_ = builder.Property(x => x.InventoryId)
			.HasColumnName("inventory_id")
			.IsRequired();
	}
}
