Game-Jaming/Backend/Database/Group.php

15 lines
569 B
PHP
Raw Normal View History

2021-03-03 09:22:31 +00:00
<?php
2021-03-03 10:16:10 +00:00
require_once "../../bootstrap.php";
2021-03-03 09:22:31 +00:00
use Illuminate\Database\Capsule\Manager as Capsule;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
2021-03-03 10:01:32 +00:00
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");
2021-03-03 09:22:31 +00:00
});