商户后台

This commit is contained in:
liu
2026-06-17 12:41:49 +08:00
parent 845bea4b81
commit f63a7db58f
46 changed files with 2215 additions and 43 deletions
@@ -8,21 +8,6 @@ return new class extends Migration
{
public function up(): void
{
// 商户分类
if (! Schema::hasTable('merchant_categories')) {
Schema::create('merchant_categories', function (Blueprint $table) {
$table->id();
$table->string('name', 50)->comment('分类名称');
$table->string('slug', 50)->comment('标识');
$table->string('description', 255)->default('')->comment('描述');
$table->string('icon', 255)->default('')->comment('图标');
$table->integer('sort')->default(0)->comment('排序');
$table->tinyInteger('status')->default(1)->comment('状态:0=禁用,1=正常');
$table->timestamps();
$table->unique('slug');
$table->comment('商户分类');
});
}
// 商户/店铺
if (! Schema::hasTable('merchants')) {
@@ -74,6 +59,22 @@ return new class extends Migration
});
}
// 商户商品分类
if (! Schema::hasTable('platform_categories')) {
Schema::create('platform_categories', function (Blueprint $table) {
$table->id();
$table->string('name', 50)->comment('分类名称');
$table->string('slug', 50)->comment('标识');
$table->string('description', 255)->default('')->comment('描述');
$table->string('icon', 255)->default('')->comment('图标');
$table->integer('sort')->default(0)->comment('排序');
$table->tinyInteger('status')->default(1)->comment('状态:0=禁用,1=正常');
$table->timestamps();
$table->unique('slug');
$table->comment('商户分类');
});
}
// 商品
if (! Schema::hasTable('merchant_products')) {
Schema::create('merchant_products', function (Blueprint $table) {