feat(db): 删除产品表actionfree_gift
This commit is contained in:
@@ -67,7 +67,6 @@ class ProductCategory(enum.Enum):
|
||||
class ProductAction(enum.Enum):
|
||||
VIP_RENEWAL = 'vip_renewal'
|
||||
RECHARGE_POINTS = 'recharge_points'
|
||||
FREE_GIFT = 'free_gift'
|
||||
|
||||
|
||||
class OrderStatusType(enum.Enum):
|
||||
|
||||
@@ -223,7 +223,7 @@ class Product(BaseModel, DateModel):
|
||||
price: Mapped[int] = mapped_column(Integer, comment='价格,不带小数点 单位为分')
|
||||
action: Mapped[base_schema.ProductAction] = mapped_column(
|
||||
Enum(base_schema.ProductAction, inherit_schema=True),
|
||||
comment='付款后的动作,会员续期:vip_renewal 积分:recharge_points 赠送产品:free_gift'
|
||||
comment='付款后的动作,会员续期:vip_renewal 积分:recharge_points'
|
||||
)
|
||||
number: Mapped[int] = mapped_column(Integer, comment='执行动作的增量值')
|
||||
gift_id: Mapped[int] = mapped_column(Integer, nullable=True, comment='礼物产品id')
|
||||
|
||||
Reference in New Issue
Block a user