From 7ad7b1f0782f1c11e681f5664b62eb3ef8c2dd44 Mon Sep 17 00:00:00 2001 From: Sam Light Date: Wed, 9 Apr 2025 22:45:43 +0100 Subject: Created migration for auth_log table --- .../0000_00_00_000000_create_auth_log_table.php | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 database/migrations/0000_00_00_000000_create_auth_log_table.php (limited to 'database/migrations') 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 new file mode 100644 index 0000000..64f905b --- /dev/null +++ b/database/migrations/0000_00_00_000000_create_auth_log_table.php @@ -0,0 +1,30 @@ +id(); + $table->foreignId('user_id')->nullable(); + $table->enum('status', ['login_success', 'login_failure', 'logout']); + $table->jsonb('properties')->nullable(); + $table->timestamp('created_at'); + }); + } + + /**p + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists(config('auth_log.table_name')); + } +}; -- cgit v1.2.3