Made tabel timestamp

This commit is contained in:
neerholt
2021-03-03 14:04:46 +01:00
parent 8363126dad
commit 2e6671bf7b
7 changed files with 16 additions and 11 deletions
+5 -4
View File
@@ -4,12 +4,13 @@ use Illuminate\Database\Capsule\Manager as Capsule;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
Capsule::schema()->create("Group", function (Blueprint $table){
Capsule::schema()->create("groups", function (Blueprint $table){
$table->id();
$table->string("groupName");
$table->integer("groupAmount");
$table->foreignId("fkGameJam")->constrained("GameData");
$table->foreignId("fkGameJam")->constrained("game_jams");
$table->integer("votes")->nullable();
$table->foreignId("fkPassword")->constrained("Password");
$table->foreignId("fkGameData")->nullable()->constrained("GameData");
$table->foreignId("fkPassword")->constrained("password");
$table->foreignId("fkGameData")->nullable()->constrained("game_data");
$table->timestamps();
});