Файл: database/migrations/2018_05_08_093825_create_waves_table.php
Строк: 34
<?php
use IlluminateSupportFacadesSchema;
use IlluminateDatabaseSchemaBlueprint;
use IlluminateDatabaseMigrationsMigration;
class CreateWavesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('waves', function (Blueprint $table) {
$table->increments('id');
$table->integer('user');
$table->string('status');
$table->integer('attack');
$table->integer('damage');
$table->integer('kills');
$table->integer('time');
$table->integer('lastMobHealth');
$table->integer('tower_health')->default(0);
$table->integer('attack_cooldown')->default(0);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('waves');
}
}