Files
E-Vote/database/migrations/2024_03_23_171932_user_login_otp.php
T
2024-03-27 13:40:17 +08:00

37 lines
785 B
PHP

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class UserLoginOtp extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
if (!Schema::hasTable('user_login_otp'))
Schema::create('user_login_otp', function (Blueprint $table) {
$table->increments('id');
$table->string('nokp', 20);
$table->string('telefon');
$table->string('token');
$table->timestamp('created_at');
$table->timestamp('expired_at');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}