OwlCyberSecurity - MANAGER
Edit File: 2022_08_15_155629_create_log_accesses_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. * * @return void */ public function up() { Schema::connection('mysql_log')->create('log_accesses', function (Blueprint $table) { $table->id(); $table->bigInteger('user_id'); $table->string('controller', 100); $table->string('action', 100); $table->string('ip', 20)->nullable(); $table->string('url', 2000)->nullable(); $table->string('description', 100)->nullable(); $table->string('content', 4000); $table->softDeletes(); $table->timestamp('inserted_at')->default(\Illuminate\Support\Facades\DB::raw('CURRENT_TIMESTAMP')); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('log_accesses'); } };