unioil-loyalty-app/database/migrations/2018_10_19_101130_otp_attem...

34 lines
692 B
PHP
Executable File

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class OtpAttempts extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('otp_attempts', function (Blueprint $table) {
$table->increments('otpatt_id');
$table->integer('lcard_id');
$table->string('otp', 8);
$table->timestamp('created_at');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('otp_attempts');
}
}