id(); $table->foreignId('property_id')->constrained()->cascadeOnDelete(); $table->string('name'); $table->date('starts_on'); $table->date('ends_on'); $table->unsignedInteger('nightly_rate'); $table->unsignedTinyInteger('min_nights')->default(1); $table->timestamps(); $table->index(['property_id', 'starts_on']); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('seasons'); } };