goods
parent
eaaafbb10e
commit
dd735a134a
14
README.md
14
README.md
|
|
@ -66,3 +66,17 @@ Dcat-admin 商品管理
|
||||||
```
|
```
|
||||||
|
|
||||||
### 商品品牌: goods_brand
|
### 商品品牌: goods_brand
|
||||||
|
|
||||||
|
| column | type | nullable | default | comment |
|
||||||
|
| - | - | - | - | - |
|
||||||
|
| id | bigint | not null | - | 主键 |
|
||||||
|
| name | varchar(191) | not null | - | 名称 |
|
||||||
|
| image | varchar(191) | not null | - | 图标 |
|
||||||
|
|
||||||
|
### 商品: goods
|
||||||
|
|
||||||
|
| column | type | nullable | default | comment |
|
||||||
|
| - | - | - | - | - |
|
||||||
|
| id | bigint | not null | - | 主键 |
|
||||||
|
| category_id | bigint | not null | - | 分类 |
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -61,16 +61,10 @@ class CreateGoodsTable extends Migration
|
||||||
$table->unsignedInteger('sold_count')->default(0)->comment('销量');
|
$table->unsignedInteger('sold_count')->default(0)->comment('销量');
|
||||||
$table->decimal('price', 12, 2)->comment('售价');
|
$table->decimal('price', 12, 2)->comment('售价');
|
||||||
$table->decimal('vip_price', 12, 2)->comment('会员价');
|
$table->decimal('vip_price', 12, 2)->comment('会员价');
|
||||||
$table->decimal('score_max_amount', 12, 2)->default(0)->comment('积分抵扣最大值');
|
|
||||||
$table->json('attr')->nullable()->comment('属性[{name, values: [{name, value}]}]');
|
$table->json('attr')->nullable()->comment('属性[{name, values: [{name, value}]}]');
|
||||||
$table->json('spec')->nullable()->comment('规格[{name, values: [{name, value}]}]');
|
$table->json('spec')->nullable()->comment('规格[{name, values: [{name, value}]}]');
|
||||||
$table->json('part')->nullable()->comment('配件[{name, values: [{name, value}]}]');
|
$table->json('part')->nullable()->comment('配件[{name, values: [{name, value}]}]');
|
||||||
|
|
||||||
$table->unsignedInteger('check_status')->default(0)->comment('审核状态(0: 未提交, 1: 审核中, 2: 审核通过, 3: 审核不通过)');
|
|
||||||
$table->string('check_remarks')->nullable()->comment('审核备注');
|
|
||||||
$table->timestamp('check_at')->nullable()->comment('审核通过时间');
|
|
||||||
$table->unsignedBigInteger('check_user_id')->nullable()->comment('审核人');
|
|
||||||
|
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
|
|
||||||
$table->comment('商品');
|
$table->comment('商品');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue