fix: tenants 联系电话唯一索引

This commit is contained in:
2025-12-12 22:06:24 +08:00
parent aa81dddc16
commit 624a7bc04d
4 changed files with 6722 additions and 6 deletions

View File

@@ -458,6 +458,7 @@ public sealed class TakeoutAppDbContext(
builder.Property(x => x.LogoUrl).HasMaxLength(256);
builder.Property(x => x.Remarks).HasMaxLength(512);
builder.HasIndex(x => x.Code).IsUnique();
builder.HasIndex(x => x.ContactPhone).IsUnique();
}
private static void ConfigureTenantVerificationProfile(EntityTypeBuilder<TenantVerificationProfile> builder)