このリポジトリは2023-09-09にアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュ、イシューの作成、プルリクエストはできません。
kikikan/backend/database/migrations/2021_08_13_054528_create_me...

38 行
887 B
PHP
Raw 通常表示 履歴

2021-08-13 15:50:47 +09:00
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateMeetingsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('meetings', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('father_id');
$table->foreign('father_id')->references('id')->on('fathers');
2021-08-13 15:50:47 +09:00
$table->string('title');
$table->string('text');
2021-08-13 22:27:07 +09:00
$table->string('pdf')->nullable();
$table->integer('is_favorite')->default(0);
$table->timestamps();
2021-08-13 15:50:47 +09:00
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('meetings');
}
}