love_php/database/migrations/2018_06_27_173418_create_characters.php
2026-04-02 09:20:51 +08:00

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');
}
}