ER図をもとに、
までを行う。
① Migrationにテーブル構造を書く
② 外部キー制約を書く
③ Modelにリレーションを書く
④ migrate実行
📁 database/migrations/
Schema::create('members', function (Blueprint $table) {
$table->id(); // 主キー
$table->string('name', 50);
$table->string('nickname', 100)->nullable();
$table->integer('generation');
$table->date('birthday');
$table->string('image_url', 255)->nullable();
$table->text('description')->nullable();
$table->timestamps();
});