2024_07_07_083444_create_destinations_table.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. use Illuminate\Database\Migrations\Migration;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Support\Facades\Schema;
  5. return new class extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. */
  10. public function up(): void
  11. {
  12. Schema::create('destinations', function (Blueprint $table) {
  13. $table->id();
  14. $table->string('name')->nullable();
  15. $table->string('slug')->nullable();
  16. $table->text('description')->nullable();
  17. $table->string('country')->nullable();
  18. $table->string('language')->nullable();
  19. $table->string('currency')->nullable();
  20. $table->string('area')->nullable();
  21. $table->string('timezone')->nullable();
  22. $table->text('visa_requirement')->nullable();
  23. $table->text('activity')->nullable();
  24. $table->text('best_time')->nullable();
  25. $table->text('health_safety')->nullable();
  26. $table->text('map')->nullable();
  27. $table->string('featured_photo')->nullable();
  28. $table->integer('view_count')->nullable();
  29. $table->timestamps();
  30. });
  31. }
  32. /**
  33. * Reverse the migrations.
  34. */
  35. public function down(): void
  36. {
  37. Schema::dropIfExists('destinations');
  38. }
  39. };