Files
exchange-2.0/database/migrations/2020_10_22_071102_create_companies_table.php
T
CheeSiong 83a9cee82d - Add Business Type In Company
- Seeder CLF Company
- DB Migration 4
2020-11-24 14:34:41 +08:00

37 lines
793 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCompaniesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('companies', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('reference');
$table->integer('type');
$table->integer('business_type')->default(1);
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('companies');
}
}