feat: 完成营销中心优惠券后端模块
All checks were successful
Build and Deploy TenantApi + SkuWorker / build-and-deploy (push) Successful in 1m54s
All checks were successful
Build and Deploy TenantApi + SkuWorker / build-and-deploy (push) Successful in 1m54s
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)。");
|
||||
|
||||
Reference in New Issue
Block a user