37 lines
955 B
PHP
37 lines
955 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
class CreateCharacters extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('characters', function (Blueprint $table) {
|
|
$table->increments('id');
|
|
$table->string('type', 50)->nullable()->comment('类型');
|
|
$table->string('sub_type', 50)->nullable()->comment('子类型');
|
|
$table->text('character')->nullable()->comment('性格分析');
|
|
$table->text('profession')->nullable()->comment('适合职业');
|
|
$table->timestamps();
|
|
$table->timestamp('deleted_at')->nullable();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('characters');
|
|
}
|
|
}
|