forked from gongxuegit/tiku-backend.net
feat: add operations catalog readonly endpoints
This commit is contained in:
@@ -22,8 +22,9 @@ internal sealed class ProductConfiguration : IEntityTypeConfiguration<Product>
|
||||
builder.Property(entity => entity.Cover).HasMaxLength(2048);
|
||||
builder.Property(entity => entity.PreviewIframe).HasMaxLength(2048);
|
||||
builder.Property(entity => entity.DetailImages).IsJson("[]");
|
||||
builder.Property(entity => entity.IsActive).HasDefaultValue(true);
|
||||
builder.HasIndex(entity => new { entity.TenantId, entity.LegacyId }).IsUnique();
|
||||
builder.HasIndex(entity => new { entity.TenantId, entity.RegionId, entity.Type, entity.SortOrder });
|
||||
builder.HasIndex(entity => new { entity.TenantId, entity.RegionId, entity.Type, entity.IsActive, entity.SortOrder });
|
||||
builder.HasOne<Region>().WithMany()
|
||||
.HasForeignKey(entity => new { entity.TenantId, entity.RegionId })
|
||||
.HasPrincipalKey(entity => new { entity.TenantId, entity.Id })
|
||||
|
||||
Reference in New Issue
Block a user