This commit is contained in:
2026-04-18 22:36:21 +04:30
parent 49591985ac
commit c64c3dd9be
20 changed files with 157 additions and 24 deletions
@@ -32,5 +32,13 @@ internal class MemberConfiguration : IEntityTypeConfiguration<Member>
.HasMaxLength(MemberAvatar.Limit)
.HasColumnName("Avatar");
});
builder.OwnsOne(x => x.NationalCode, sa =>
{
sa.Property(x => x.Value)
.IsRequired(false)
.HasMaxLength(MemberNationalCode.Limit)
.HasColumnName("NationalCode");
});
}
}
@@ -31,6 +31,17 @@ public class ShopConfiguration : IEntityTypeConfiguration<Domain.Shops.Entities.
.HasMaxLength(ShopLogo.Limit)
.HasColumnName("Logo");
});
builder.OwnsOne(x => x.BusinessLicense, sa =>
{
sa.Property(x => x.Image)
.HasMaxLength(ShopBusinessLicense.ImageLimit)
.HasColumnName("ShopBusinessLicenseImage");
sa.Property(x => x.Code)
.HasMaxLength(ShopBusinessLicense.CodeLimit)
.HasColumnName("ShopBusinessLicenseCode");
});
builder.OwnsOne(x => x.Location, sa =>
{
sa.Property(x => x.PostalCode).HasColumnName(nameof(ShopLocation.PostalCode));