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

namespace GeoRitmMover.GeoRitm.Data.EntityConfigurations;
public class SourceUserEntityConfiguration : IEntityTypeConfiguration<SourceUser>
{
	public void Configure(EntityTypeBuilder<SourceUser> builder)
	{
		_ = builder.ToTable("users");

		_ = builder.HasKey(x => x.Id);
		_ = builder.Property(x => x.Id)
			.HasColumnName("id")
			.IsRequired();

		_ = builder.Property(x => x.Username)
			.HasColumnName("username")
			.IsRequired();

		_ = builder.Property(x => x.Password)
			.HasColumnName("password")
			.IsRequired();
	}
}
