diff --git a/README.md b/README.md index 859c1c2..f7e4713 100644 --- a/README.md +++ b/README.md @@ -66,3 +66,17 @@ Dcat-admin 商品管理 ``` ### 商品品牌: 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 | - | 分类 | + diff --git a/database/2022_08_11_184332_create_goods_table.php b/database/2022_08_11_184332_create_goods_table.php index ae8363c..13b9826 100644 --- a/database/2022_08_11_184332_create_goods_table.php +++ b/database/2022_08_11_184332_create_goods_table.php @@ -61,16 +61,10 @@ class CreateGoodsTable extends Migration $table->unsignedInteger('sold_count')->default(0)->comment('销量'); $table->decimal('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('spec')->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->comment('商品');