| Current Path : /home/users/unlimited/www/api.xalonx.com/database/migrations/ |
| Current File : /home/users/unlimited/www/api.xalonx.com/database/migrations/2024_06_20_052737_create_otp_table.php |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('otp', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('otp');
$table->string('email');
$table->tinyInteger('status')->default(0);
$table->text('extra_field')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('otp');
}
};