id(); $table->foreignId('year_id')->constrained('timeline_years')->onDelete('cascade'); $table->string('title'); $table->enum('type', ['aia', 'ai']); $table->integer('sort')->default(999); $table->enum('status', ['draft', 'publish'])->default('publish'); $table->timestamps(); // Indexes $table->index('sort'); $table->index('status'); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('timeline_items'); } };