Files
izyim-api/database/migrations/2018_04_24_034401_create_companies_table.php
T

45 lines
1.2 KiB
PHP

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateCompaniesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('companies', function (Blueprint $table) {
$table->increments('id');
$table->string('company_profile');//->default('default.jpg'); //need to check about storage type
$table->string('reg_cert');
$table->string('company-name');
$table->string('registration-no');
$table->string('tax-no');
$table->integer('tel-no');
$table->integer('fax');
$table->string('address');
$table->string('city');
$table->string('postcode');
$table->string('state');
$table->string('country');
$table->string('contact-person');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('companies');
}
}