diff --git a/database/migrations/2024_12_30_152300_create_audit_logs_table.php b/database/migrations/2024_12_30_152300_create_audit_logs_table.php index 3ad245b..65d6a83 100644 --- a/database/migrations/2024_12_30_152300_create_audit_logs_table.php +++ b/database/migrations/2024_12_30_152300_create_audit_logs_table.php @@ -17,9 +17,11 @@ public function up(): void $table->ipAddress('ip_addr')->nullable(); $table->unsignedBigInteger('user_agent_id')->nullable(); $table->string('orthanc_uuid')->nullable(); - $table->text('url')->nullable(); + $table->string('url')->nullable(); $table->text('notes')->nullable(); $table->timestamp('created_at'); + + $table->index(['study_id', 'created_at']); }); }