First version almost done
This commit is contained in:
parent
b5c1f40a45
commit
7a33f5f889
14 changed files with 274 additions and 28 deletions
|
|
@ -15,9 +15,11 @@ class CreateTippsTable extends Migration
|
|||
{
|
||||
Schema::create('tipps', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->integer('user_id');
|
||||
$table->integer('game_id');
|
||||
$table->boolean('joker');
|
||||
$table->integer('user_id')->hasOne('App\User');
|
||||
$table->integer('game_id')->hasOne('App\Game');
|
||||
$table->integer('score1');
|
||||
$table->integer('score2');
|
||||
$table->boolean('joker')->default(false);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue