Browse Source

删除数据库创建,唯一索引

master
wanghongjun 3 days ago
parent
commit
2ae57ba9b3
  1. 8
      database/migrations/2026_01_27_084640_create_admin_table.php
  2. 2
      database/migrations/2026_02_10_173627_create_admin_floor_table.php
  3. 2
      database/migrations/2026_03_02_110943_create_admin_list_vip_table.php
  4. 2
      database/migrations/2026_03_05_144951_create_parking_space_attributes_table.php
  5. 2
      database/migrations/2026_03_09_171738_create_parking_license_plate_table.php

8
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();

2
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();

2
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();

2
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();

2
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();

Loading…
Cancel
Save