Multi-user OSINT investigation tool with owner-controlled per-user and per-group access grants. Includes Sherlock, theHarvester, crt.sh, WHOIS, and ip-api.com collectors wired through a pluggable Runner/queue pipeline, investigation search, and printable/CSV/JSON reporting. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
29 lines
790 B
PHP
29 lines
790 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
return new class extends Migration
|
|
{
|
|
public function up(): void
|
|
{
|
|
Schema::create('targets', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->foreignId('investigation_id')->constrained()->cascadeOnDelete();
|
|
$table->foreignId('created_by')->constrained('users')->cascadeOnDelete();
|
|
$table->string('type');
|
|
$table->string('value');
|
|
$table->text('notes')->nullable();
|
|
$table->timestamps();
|
|
|
|
$table->index(['investigation_id', 'type']);
|
|
});
|
|
}
|
|
|
|
public function down(): void
|
|
{
|
|
Schema::dropIfExists('targets');
|
|
}
|
|
};
|