Файл: database/migrations/2018_06_21_084146_create_tournament_player_table.php
Строк: 44
<?php
use IlluminateSupportFacadesSchema;
use IlluminateDatabaseSchemaBlueprint;
use IlluminateDatabaseMigrationsMigration;
class CreateTournamentPlayerTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('tournament_players', function (Blueprint $table) {
$table->increments('id');
$table->integer('battle');
$table->integer('user');
$table->integer('team');
$table->integer('opponent')->default(0);
$table->integer('health');
$table->integer('points')->default(0);
$table->integer('respawn_time');
$table->integer('attack_cooldown');
$table->integer('damage')->default(0);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('tournament_players');
}
}