id(); $table->foreignId('website_id')->constrained()->cascadeOnDelete(); $table->string('name'); $table->string('type', 30); $table->json('conditions'); $table->decimal('default_value', 15, 4)->nullable(); $table->boolean('is_active')->default(true); $table->timestamps(); $table->index(['website_id', 'is_active']); }); } public function down(): void { Schema::dropIfExists('goals'); } };