mdbpanel/database/migrations/2018_10_11_121819_create_cl...

46 lines
1.4 KiB
PHP

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateClientsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('clients', function (Blueprint $table) {
$table->uuid('id')->primary();
$table->string('client_name')->unique()->nullable();
$table->string('client_full_name')->nullable();
$table->string('contact_name')->nullable();
$table->string('email')->nullable();
$table->string('address_line1')->nullable();
$table->string('address_line2')->nullable();
$table->string('address_line3')->nullable();
$table->string('address_line4')->nullable();
$table->string('address_locality')->nullable();
$table->string('address_town_city')->nullable();
$table->string('address_county')->nullable();
$table->string('address_post_code')->nullable();
$table->string('access_key')->nullable();
$table->string('secret_key')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('clients');
}
}