35 lines
778 B
PHP
35 lines
778 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
return new class extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('damages', function (Blueprint $table) {
|
|
$table->increments('id');
|
|
$table->string('title', 200)->nullable();
|
|
$table->string('unit', 50)->nullable();
|
|
$table->unsignedBigInteger('base_price')->nullable();
|
|
$table->tinyInteger('status')->nullable();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('damages');
|
|
}
|
|
};
|