feat: 套餐增加推荐标识与标签
This commit is contained in:
@@ -694,6 +694,14 @@ public sealed class TakeoutAppDbContext(
|
||||
.HasDefaultValue(true)
|
||||
.HasSentinel(true)
|
||||
.HasComment("是否允许新租户购买/选择(仅影响新购)。");
|
||||
|
||||
// 4. (空行后) 展示配置:推荐标识与标签(用于套餐展示页/对比页)
|
||||
builder.Property(x => x.IsRecommended)
|
||||
.HasDefaultValue(false)
|
||||
.HasComment("是否推荐展示(运营推荐标识)。");
|
||||
builder.Property(x => x.Tags)
|
||||
.HasColumnType("text[]")
|
||||
.HasComment("套餐标签(用于展示与对比页)。");
|
||||
builder.Property(x => x.SortOrder).HasDefaultValue(0).HasComment("展示排序,数值越小越靠前。");
|
||||
builder.HasIndex(x => new { x.IsActive, x.SortOrder });
|
||||
builder.HasIndex(x => new { x.PublishStatus, x.IsActive, x.IsPublicVisible, x.IsAllowNewTenantPurchase, x.SortOrder });
|
||||
|
||||
Reference in New Issue
Block a user