
using Forwarder.Domain;

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

namespace Forwarder.Data.Configurations;
/// <summary>
/// Конфигурация сообщений.
/// </summary>
public class AssetMapConfiguration : IEntityTypeConfiguration<AssetMap>
{
	/// <inheritdoc />
	public void Configure(EntityTypeBuilder<AssetMap> builder)
	{
		_ = builder
			.HasIndex(x => x.Abonent).IsUnique();
	}
}