summaryrefslogtreecommitdiff
path: root/database
diff options
context:
space:
mode:
authorSam Light <samlight1994@gmail.com>2025-04-10 00:39:38 +0100
committerSam Light <samlight1994@gmail.com>2025-04-10 00:39:38 +0100
commit704e4c63dcf449641c5b98dc5433958554b96a91 (patch)
tree14bf447d374e58d406446beb81fc75db3a1b0243 /database
parentda5f9ef28c6f8e1721c38ee3c88ef5808c5bf13f (diff)
Updated auth_log_table seeder
Diffstat (limited to 'database')
-rw-r--r--database/migrations/0000_00_00_000000_create_auth_log_table.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/database/migrations/0000_00_00_000000_create_auth_log_table.php b/database/migrations/0000_00_00_000000_create_auth_log_table.php
index 64f905b..36d7e97 100644
--- a/database/migrations/0000_00_00_000000_create_auth_log_table.php
+++ b/database/migrations/0000_00_00_000000_create_auth_log_table.php
@@ -1,5 +1,7 @@
<?php
+use Lightscale\LaralightAuthLog\Enums\Status;
+
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
@@ -14,7 +16,7 @@ return new class extends Migration
Schema::create(config('auth_log.table_name'), function (Blueprint $table) {
$table->id();
$table->foreignId('user_id')->nullable();
- $table->enum('status', ['login_success', 'login_failure', 'logout']);
+ $table->enum('status', Status::values());
$table->jsonb('properties')->nullable();
$table->timestamp('created_at');
});