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.

40 lines
1.2 KiB

6 months ago
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateParametersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('parameters', function (Blueprint $table) {
$table->increments('id');
$table->string('number', 100)->nullable()->default('')->comment('编号');
$table->string('name', 100)->nullable()->default('')->comment('名字');
$table->integer('pid')->nullable()->default(0)->comment('父id');
$table->tinyInteger('sort')->nullable()->default(1)->comment('排序号');
$table->boolean('status')->nullable()->default(true)->comment('是否启用 0否1是');
$table->string('remark', 200)->nullable()->default('')->comment('备注');
$table->integer('admin_id')->nullable()->comment('创建人');
$table->dateTime('created_at')->nullable();
$table->dateTime('updated_at')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('parameters');
}
}