diff --git a/Backend/Database/GameData.php b/Backend/Database/GameData.php index 39ee50b..f06f49e 100644 --- a/Backend/Database/GameData.php +++ b/Backend/Database/GameData.php @@ -4,8 +4,9 @@ use Illuminate\Database\Capsule\Manager as Capsule; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -Capsule::schema()->create("GameData", function (Blueprint $table){ +Capsule::schema()->create("game_data", function (Blueprint $table){ $table->id(); $table->string("gameLink"); $table->boolean("isWebBased"); + $table->timestamps(); }); \ No newline at end of file diff --git a/Backend/Database/GameJam.php b/Backend/Database/GameJam.php index 643e449..e73b936 100644 --- a/Backend/Database/GameJam.php +++ b/Backend/Database/GameJam.php @@ -4,11 +4,12 @@ use Illuminate\Database\Capsule\Manager as Capsule; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -Capsule::schema()->create("GameJam", function (Blueprint $table){ +Capsule::schema()->create("game_jams", function (Blueprint $table){ $table->id(); $table->string("name"); $table->dateTime("startTime"); $table->dateTime("endTime"); $table->string("keyWord")->nullable(); $table->text("description")->nullable(); + $table->timestamps(); }); \ No newline at end of file diff --git a/Backend/Database/Group.php b/Backend/Database/Group.php index 4fac85d..64e6b30 100644 --- a/Backend/Database/Group.php +++ b/Backend/Database/Group.php @@ -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(); }); \ No newline at end of file diff --git a/Backend/Database/KeyWord.php b/Backend/Database/KeyWord.php index 20af962..47922de 100644 --- a/Backend/Database/KeyWord.php +++ b/Backend/Database/KeyWord.php @@ -4,8 +4,9 @@ use Illuminate\Database\Capsule\Manager as Capsule; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -Capsule::schema()->create("KeyWord", function (Blueprint $table){ +Capsule::schema()->create("key_words", function (Blueprint $table){ $table->id(); $table->string('keyWord'); - $table->foreignId("fkGroup")->constrained("Group"); + $table->foreignId("fkGroup")->constrained("groups"); + $table->timestamps(); }); \ No newline at end of file diff --git a/Backend/Database/Password.php b/Backend/Database/Password.php index 8d726bb..96bd49a 100644 --- a/Backend/Database/Password.php +++ b/Backend/Database/Password.php @@ -4,8 +4,9 @@ use Illuminate\Database\Capsule\Manager as Capsule; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -Capsule::schema()->create("Password", function (Blueprint $table){ +Capsule::schema()->create("password", function (Blueprint $table){ $table->id(); $table->string('password'); $table->rememberToken(); + $table->timestamps(); }); \ No newline at end of file diff --git a/Backend/Database/hasVoted.php b/Backend/Database/hasVoted.php index a08c170..ecaa4e3 100644 --- a/Backend/Database/hasVoted.php +++ b/Backend/Database/hasVoted.php @@ -4,6 +4,7 @@ use Illuminate\Database\Capsule\Manager as Capsule; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -Capsule::schema()->create("hasVoted", function (Blueprint $table){ +Capsule::schema()->create("has_voted", function (Blueprint $table){ $table->id(); + $table->timestamps(); }); \ No newline at end of file diff --git a/Backend/Main.php b/Backend/Main.php index 8a36279..f78891b 100644 --- a/Backend/Main.php +++ b/Backend/Main.php @@ -1,6 +1,5 @@