feat: 完成营销中心优惠券后端模块
All checks were successful
Build and Deploy TenantApi + SkuWorker / build-and-deploy (push) Successful in 1m54s

This commit is contained in:
2026-02-28 11:14:55 +08:00
parent 04e76cd519
commit dda3f96d28
26 changed files with 11107 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TakeoutSaaS.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class AddCouponTemplatePerUserLimit : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "PerUserLimit",
table: "coupon_templates",
type: "integer",
nullable: true,
comment: "每位用户可领取上限。");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "PerUserLimit",
table: "coupon_templates");
}
}
}

View File

@@ -548,6 +548,10 @@ namespace TakeoutSaaS.Infrastructure.Migrations
.HasColumnType("character varying(128)")
.HasComment("模板名称。");
b.Property<int?>("PerUserLimit")
.HasColumnType("integer")
.HasComment("每位用户可领取上限。");
b.Property<string>("ProductScopeJson")
.HasColumnType("text")
.HasComment("适用品类或商品范围JSON。");