id(); $table->string('partner_id')->nullable()->index(); $table->string('title'); $table->string('slug')->unique(); $table->text('description')->nullable(); $table->string('status')->index(); $table->string('difficulty')->default(HuntDifficulty::EASY->value)->index(); $table->string('city')->index(); $table->decimal('latitude', 10, 7)->nullable(); $table->decimal('longitude', 10, 7)->nullable(); $table->boolean('is_public')->default(false); $table->unsignedSmallInteger('estimated_duration_min')->nullable(); $table->timestamp('start_at')->nullable(); $table->timestamp('end_at')->nullable(); $table->string('image')->nullable(); $table->foreignUuid('creator_id')->nullable()->constrained('users')->nullOnDelete(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('hunts'); } };