You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.1 KiB

6 months ago
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('configs', function (Blueprint $table) {
$table->comment('配置信息');
$table->increments('id');
$table->integer('admin_id')->nullable();
$table->integer('department_id')->nullable();
$table->string('name')->nullable()->comment('名字');
$table->string('key')->nullable()->comment('标识');
$table->mediumText('value')->nullable()->comment('值');
$table->mediumText('other')->nullable()->comment('其他');
$table->dateTime('created_at')->nullable();
$table->dateTime('updated_at')->nullable();
$table->dateTime('deleted_at')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('configs');
}
};