Differential D2773 Diff 7993 src/database/migrations/2021_03_25_144555_create_auth_attempts_table.php
Changeset View
Changeset View
Standalone View
Standalone View
src/database/migrations/2021_03_25_144555_create_auth_attempts_table.php
Show All 9 Lines | class CreateAuthAttemptsTable extends Migration | ||||
/** | /** | ||||
* Run the migrations. | * Run the migrations. | ||||
* | * | ||||
* @return void | * @return void | ||||
*/ | */ | ||||
public function up() | public function up() | ||||
{ | { | ||||
Schema::create('auth_attempts', function (Blueprint $table) { | Schema::create('auth_attempts', function (Blueprint $table) { | ||||
$table->bigIncrements('id'); | $table->uuid('id')->primary(); | ||||
$table->bigInteger('user_id'); | $table->bigInteger('user_id'); | ||||
$table->string('ip', 36); | $table->string('ip', 36); | ||||
$table->string('status', 36)->default('NEW'); | $table->string('status', 36)->default('NEW'); | ||||
$table->string('reason', 36)->nullable(); | $table->string('reason', 36)->nullable(); | ||||
$table->datetime('expires_at')->nullable(); | $table->datetime('expires_at')->nullable(); | ||||
$table->datetime('last_seen')->nullable(); | $table->datetime('last_seen')->nullable(); | ||||
$table->timestamps(); | $table->timestamps(); | ||||
Show All 20 Lines |