made migrations files

This commit is contained in:
neerholt
2021-03-03 11:01:32 +01:00
parent c780295bf7
commit 26161102f5
8 changed files with 73 additions and 6 deletions
+9 -5
View File
@@ -4,9 +4,13 @@ use Illuminate\Database\Capsule\Manager as Capsule;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
Capsule::schema()->create("Group", function ($tabel){
$tabel->id();
$tabel->string("groupName");
$tabel->int("groupAmount");
$tabel->int("votes");
Capsule::schema()->create("Group", function (Blueprint $table){
$table->id();
$table->string("groupName");
$table->integer("groupAmount");
$table->foreignId("fkGameJam")->constrained("GameData");
$table->integer("votes")->nullable();
$table->foreignId("fkPassword")->constrained("Password");
$table->foreignId("fkGameData")->nullable()->constrained("GameData");
$table->timestamp();
});