id(); $table->foreignId('tenant_id')->constrained()->cascadeOnDelete(); $table->string('external_id'); $table->string('policy_type'); $table->string('platform')->nullable(); $table->string('display_name'); $table->timestamp('last_synced_at')->nullable(); $table->json('metadata')->nullable(); $table->timestamps(); $table->unique(['tenant_id', 'external_id', 'policy_type']); $table->index(['tenant_id', 'policy_type', 'platform']); $table->index('last_synced_at'); }); } public function down(): void { Schema::dropIfExists('policies'); } };