Файл: database/migrations/2020_11_11_020127_create_pending_user_emails_table.php
Строк: 40
<?php
use IlluminateDatabaseMigrationsMigration;
use IlluminateDatabaseSchemaBlueprint;
use IlluminateSupportFacadesSchema;
class CreatePendingUserEmailsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('pending_user_emails', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('user_type');
$table->unsignedBigInteger('user_id');
$table->string('email')->index();
$table->string('token');
$table->timestamp('created_at')->nullable();
$table->index(['user_type', 'user_id']);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('pending_user_emails');
}
}