Made login

This commit is contained in:
neerholt
2021-03-04 13:13:07 +01:00
parent c3479e8e7b
commit 9a38284c8b
6 changed files with 61 additions and 8 deletions
+3 -3
View File
@@ -10,10 +10,10 @@ Capsule::schema()->create("groups", function (Blueprint $table){
$table->id();
$table->string("groupName");
$table->integer("groupAmount");
$table->foreignId("fkGameJam")->constrained("game_jams");
$table->foreignId("game_jam_id")->constrained("game_jams");
$table->integer("votes")->nullable();
$table->foreignId("fkPassword")->constrained("password");
$table->foreignId("fkGameData")->nullable()->constrained("game_data");
$table->foreignId("password_id")->constrained("passwords");
$table->foreignId("game_data_id")->nullable()->constrained("game_data");
$table->timestamps();
});
+1 -1
View File
@@ -9,7 +9,7 @@ use Illuminate\Support\Facades\Schema;
Capsule::schema()->create("key_words", function (Blueprint $table){
$table->id();
$table->string('keyWord');
$table->foreignId("fkGroup")->constrained("groups");
$table->foreignId("group_id")->constrained("groups");
$table->timestamps();
});
+1 -1
View File
@@ -6,7 +6,7 @@ use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
//Create password table with the rows as id, password, rememberToken and timestamps
Capsule::schema()->create("password", function (Blueprint $table){
Capsule::schema()->create("passwords", function (Blueprint $table){
$table->id();
$table->string('password');
$table->rememberToken();