From 2ae57ba9b3eb943670ff8155da10dcbd98c06a18 Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq.com> Date: Fri, 13 Mar 2026 14:50:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=EF=BC=8C=E5=94=AF=E4=B8=80=E7=B4=A2=E5=BC=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../migrations/2026_01_27_084640_create_admin_table.php | 8 +++++--- .../2026_02_10_173627_create_admin_floor_table.php | 2 +- .../2026_03_02_110943_create_admin_list_vip_table.php | 2 +- ...03_05_144951_create_parking_space_attributes_table.php | 2 +- ...26_03_09_171738_create_parking_license_plate_table.php | 2 +- 5 files changed, 9 insertions(+), 7 deletions(-) diff --git a/database/migrations/2026_01_27_084640_create_admin_table.php b/database/migrations/2026_01_27_084640_create_admin_table.php index 75be442..5fff03d 100644 --- a/database/migrations/2026_01_27_084640_create_admin_table.php +++ b/database/migrations/2026_01_27_084640_create_admin_table.php @@ -29,7 +29,7 @@ return new class extends Migration Schema::create('admin_roles', function (Blueprint $table) { $table->increments('id')->comment('角色id'); - $table->string('name', 50)->unique()->comment('角色名称'); + $table->string('name', 50)->comment('角色名称'); $table->string('remark', 50)->comment('角色说明'); $table->integer('level')->nullable()->comment('角色级别'); $table->tinyInteger('status')->default(1)->comment('状态 0禁用 1启用'); @@ -40,8 +40,8 @@ return new class extends Migration Schema::create('admin_permissions', function (Blueprint $table) { $table->increments('id')->comment('权限ID'); - $table->string('name', 50)->unique()->comment('权限名称'); - $table->string('slug', 50)->unique(); + $table->string('name', 50)->comment('权限名称'); + $table->string('slug', 50); $table->string('http_method')->nullable(); $table->text('http_path')->nullable(); $table->softDeletes(); @@ -102,6 +102,8 @@ return new class extends Migration $table->unsignedBigInteger('model_id')->nullable()->comment('模型ID'); $table->string('ip')->nullable()->comment('操作IP'); $table->text('description')->nullable()->comment('操作描述'); + $table->string('main_directory', 50)->nullable()->comment('主目录'); + $table->string('sub_directory', 50)->nullable()->comment('副目录'); $table->json('old_values')->nullable()->comment('旧值'); $table->json('new_values')->nullable()->comment('新值'); $table->timestamps(); diff --git a/database/migrations/2026_02_10_173627_create_admin_floor_table.php b/database/migrations/2026_02_10_173627_create_admin_floor_table.php index 91725ac..e0ec66f 100644 --- a/database/migrations/2026_02_10_173627_create_admin_floor_table.php +++ b/database/migrations/2026_02_10_173627_create_admin_floor_table.php @@ -13,7 +13,7 @@ return new class extends Migration { Schema::create('admin_floor', function (Blueprint $table) { $table->id(); - $table->string('name')->unique()->comment('楼层名称'); + $table->string('name')->comment('楼层名称'); $table->string('image_url')->comment('图片路径'); $table->timestamps(); $table->softDeletes(); diff --git a/database/migrations/2026_03_02_110943_create_admin_list_vip_table.php b/database/migrations/2026_03_02_110943_create_admin_list_vip_table.php index 5dc3781..363f1fe 100644 --- a/database/migrations/2026_03_02_110943_create_admin_list_vip_table.php +++ b/database/migrations/2026_03_02_110943_create_admin_list_vip_table.php @@ -13,7 +13,7 @@ return new class extends Migration { Schema::create('admin_list_vip', function (Blueprint $table) { $table->id(); - $table->string('license', 20)->unique()->comment('车牌号码'); + $table->string('license', 20)->comment('车牌号码'); $table->integer('user_id')->comment('管理员id'); $table->timestamps(); $table->softDeletes(); diff --git a/database/migrations/2026_03_05_144951_create_parking_space_attributes_table.php b/database/migrations/2026_03_05_144951_create_parking_space_attributes_table.php index 1d9d784..7e7159f 100644 --- a/database/migrations/2026_03_05_144951_create_parking_space_attributes_table.php +++ b/database/migrations/2026_03_05_144951_create_parking_space_attributes_table.php @@ -13,7 +13,7 @@ return new class extends Migration { Schema::create('parking_space_attributes', function (Blueprint $table) { $table->id(); - $table->string('attributes', 50)->unique()->comment('车位属性'); + $table->string('attributes', 50)->comment('车位属性'); $table->string('import_diagram', 255)->comment('汇入图示'); $table->timestamps(); $table->softDeletes(); diff --git a/database/migrations/2026_03_09_171738_create_parking_license_plate_table.php b/database/migrations/2026_03_09_171738_create_parking_license_plate_table.php index 2af8a2d..3b38e57 100644 --- a/database/migrations/2026_03_09_171738_create_parking_license_plate_table.php +++ b/database/migrations/2026_03_09_171738_create_parking_license_plate_table.php @@ -13,7 +13,7 @@ return new class extends Migration { Schema::create('parking_license_plate', function (Blueprint $table) { $table->id(); - $table->string('number', 20)->unique()->comment('车牌号码'); + $table->string('number', 20)->comment('车牌号码'); $table->integer('space_type_id')->comment('车位类型id'); $table->timestamps(); $table->softDeletes();