41 lines
951 B
PHP
Executable File
41 lines
951 B
PHP
Executable File
<?php
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
class OtpLogs extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('otp_logs', function (Blueprint $table) {
|
|
$table->increments('otplog_id');
|
|
$table->integer('lcard_id');
|
|
$table->string('msisdn', 16);
|
|
$table->string('otp', 8);
|
|
$table->text('content');
|
|
$table->string('rcvd_transid',64);
|
|
$table->string('transid',64);
|
|
$table->boolean('used')->default(0);
|
|
$table->datetime('used_at')->nullable();
|
|
$table->timestamp('created_at');
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('otp_logs');
|
|
}
|
|
}
|
|
|