Rangliste almost done

This commit is contained in:
Torsten 2017-06-26 17:21:30 +02:00
parent 12651fc2e8
commit 43fd8c8cbf
579 changed files with 172489 additions and 127 deletions

File diff suppressed because one or more lines are too long

View file

@ -15,9 +15,10 @@ class CreateUsersTable extends Migration
{
Schema::create('users', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('email')->unique();
$table->string('password');
$table->string('name',32);
$table->string('fullname', 100);
$table->string('email',150)->unique();
$table->string('password',100);
$table->timestamp('deleted')->nullable();
$table->boolean('admin')->default(false);

View file

@ -14,8 +14,8 @@ class CreatePasswordResetsTable extends Migration
public function up()
{
Schema::create('password_resets', function (Blueprint $table) {
$table->string('email')->index();
$table->string('token');
$table->string('email',150)->index();
$table->string('token',100);
$table->timestamp('created_at')->nullable();
});
}

View file

@ -16,6 +16,7 @@ class CreateSettingsTable extends Migration
Schema::create('settings', function (Blueprint $table) {
$table->increments('id');
$table->timestamps();
$table->integer('current_season_id');
});
}

View file

@ -16,8 +16,8 @@ class CreateGamesTable extends Migration
Schema::create('games', function (Blueprint $table) {
$table->increments('id');
$table->integer('round_id');
$table->string('team1');
$table->string('team2');
$table->string('team1',100);
$table->string('team2',100);
$table->integer('score1')->default(-1);
$table->integer('score2')->default(-1);
$table->dateTime('kickoff');

View file

@ -15,7 +15,7 @@ class CreateRoundsTable extends Migration
{
Schema::create('rounds', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('name',64);
$table->integer('season_id');
$table->timestamps();
});

View file

@ -15,7 +15,7 @@ class CreateSeasonsTable extends Migration
{
Schema::create('seasons', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('name',100);
$table->boolean('active')->default(true);
$table->timestamps();