产品套餐状态管理

This commit is contained in:
2026-04-07 13:22:37 +08:00
parent 62c624c88e
commit c684523cb8
8 changed files with 52 additions and 5 deletions

View File

@@ -757,6 +757,7 @@ create table product_sku (
code text not null unique,
name text not null,
price decimal not null,
status int not null default 1,
created_at timestamptz default current_timestamp,
updated_at timestamptz default current_timestamp,
deleted_at timestamptz
@@ -773,6 +774,7 @@ comment on column product_sku.discount_id is '折扣ID';
comment on column product_sku.code is 'SKU 代码:格式为 key=value,key=value,...其中key:value 是 SKU 的属性,多个属性用逗号分隔';
comment on column product_sku.name is 'SKU 可读名称';
comment on column product_sku.price is '定价';
comment on column product_sku.status is 'SKU状态0-禁用1-正常';
comment on column product_sku.created_at is '创建时间';
comment on column product_sku.updated_at is '更新时间';
comment on column product_sku.deleted_at is '删除时间';