id(); $table->foreignIdFor(CustomProperty::class)->nullable()->constrained()->cascadeOnDelete(); $table->string('name')->nullable(); $table->string('key'); $table->unique(['key', 'model_id', 'model_type']); $table->text('value'); $table->morphs('model'); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('properties'); } };