feat(product): 新增产品接口
This commit is contained in:
@@ -50,7 +50,7 @@ def upgrade() -> None:
|
||||
sa.Column('name', sa.String(length=20), nullable=False, comment='产品名'),
|
||||
sa.Column('category', sa.Enum('VIP', 'POINTS', name='productcategory', inherit_schema=True), nullable=False, comment='商品分类, vip-会员服务 points-积分服务'),
|
||||
sa.Column('price', sa.Integer(), nullable=False, comment='价格,不带小数点 单位为分'),
|
||||
sa.Column('action', sa.String(length=10), nullable=False, comment='付款后的动作,会员续期:vip_renewal 积分:recharge_points'),
|
||||
sa.Column('action', sa.String(length=30), nullable=False, comment='付款后的动作,会员续期:vip_renewal 积分:recharge_points'),
|
||||
sa.Column('number', sa.Integer(), nullable=False, comment='执行动作的增量值'),
|
||||
sa.Column('description', sa.Text(), nullable=True, comment='商品描述'),
|
||||
sa.Column('id', sa.Integer(), autoincrement=True, nullable=False, comment='自增id'),
|
||||
|
||||
Reference in New Issue
Block a user