mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim-api.git
synced 2026-08-19 04:24:01 +00:00
42 lines
965 B
PHP
42 lines
965 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
class CreateWarehousesTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('warehouses', function (Blueprint $table) {
|
|
$table->increments('id');
|
|
$table->string('address');
|
|
$table->string('city');
|
|
$table->integer('zip');
|
|
$table->string('state');
|
|
$table->string('contact_person');
|
|
$table->integer('contact_person_no');
|
|
$table->string('branch');
|
|
$table->string('country');
|
|
$table->string('company_id');
|
|
$table->timestamps();
|
|
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('warehouses');
|
|
}
|
|
}
|