mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim-api.git
synced 2026-08-19 04:24:01 +00:00
added migration, model, and controller
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateDeliveryInfosTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('delivery_infos', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('branch');
|
||||
$table->string('deli_info');
|
||||
$table->string('address');
|
||||
$table->string('city');
|
||||
$table->integer('postcode');
|
||||
$table->string('state');
|
||||
$table->string('country');
|
||||
$table->string('contact_person');
|
||||
$table->integer('contact_person_no');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('delivery_infos');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user