因みにプレイステーションでtorneアプリをダウンロードしてnasuneの設定をしないといけない.あとプレイステーションでTVを見るにはtorneアプリに課金しなくてはならないらしいけど、自分はPCで見るので課金はせずにsMedio TV Suite for Windowsというものに以前課金していたのでそれで上手く見えている.
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('game_results', function (Blueprint $table) {
//
$table->id();
$table->foreignId('game_group_id')->constrained('game_groups');
$table->foreignId('player_id')->constrained('players');
$table->enum('result',[1,0,0.5])->default(0)->comment('result');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('game_results', function (Blueprint $table) {
//
$table->dropIfExists('game_results');
});
}
};