Root Zanli
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
o5t6x7pgljbm
/
public_html
/
database
/
migrations
/
Filename :
2020_07_12_000000_create_otps_table.php
back
Copy
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateOtpsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('otps', function (Blueprint $table) { $table->id(); $table->string('client_req_id'); $table->string('number')->nullable(); $table->string('email')->nullable(); $table->string('type'); $table->string('otp'); $table->string('uuid'); $table->tinyInteger('retry'); $table->enum('status',['new','used', 'expired']); $table->timestamps(); $table->index(['client_req_id', 'uuid', 'status', 'type']); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('otps'); } }