made migrations files
This commit is contained in:
@@ -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();
|
||||
});
|
||||
Reference in New Issue
Block a user