관리-도구
편집 파일: 2025_05_26_205629_create_recent_searches_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. */ public function up(): void { Schema::create('recent_searches', function (Blueprint $table) { $table->id(); $table->foreignId('user_id')->nullable(); $table->string('user_type')->nullable(); $table->string('title')->nullable(); $table->string('route_uri')->nullable(); $table->string('route_full_url')->nullable(); $table->string('keyword')->nullable(); $table->json('response')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('recent_searches'); } };