unioil-mobile-api/database/migrations/2019_01_23_154619_loyalty_c...

55 lines
1.4 KiB
PHP

<?php
/*
THIS IS NOT USED
*/
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class LoyaltyCardSignup extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('loyalty_card_signup', function (Blueprint $table) {
$table->increments('lcard_s_id');
$table->uuid('lcard_s_uuid')->unique();
$table->integer('cardtype_id');
$table->string('ref_no', 32);
$table->string('firstname', 32);
$table->string('lastname', 32);
$table->date('birthdate');
$table->string('mobile', 16);
$table->string('email', 64);
$table->string('id_number', 64);
$table->integer('idnt_id');
$table->string('photo_id',128);
$table->string('photo_document',128);
$table->string('selfie',128);
$table->string('selfie_w_card',128);
$table->tinyInteger('status')->default(0);
$table->string('deviceUUID',64);
$table->timestamps();
$table->integer('updated_by')->default(0);
$table->boolean('is_active')->default(1);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('loyalty_card_signup');
}
}