fixed category path index

This commit is contained in:
Edward Yang 2022-12-14 12:29:34 +08:00
parent f5e20ce2da
commit 051e1d9790
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ class CreateTables extends Migration
Schema::create('category_paths', function (Blueprint $table) {
$table->comment('产品分类上下级关系');
$table->id()->comment('ID');
$table->unsignedBigInteger('category_id')->comment('分类 ID')->index('customer_id');
$table->unsignedBigInteger('category_id')->comment('分类 ID')->index('category_id');
$table->unsignedBigInteger('path_id')->comment('分类路径 ID')->index('path_id');
$table->integer('level')->comment('层级');
$table->timestamps();