2024_07_08_003005_create_packages_table.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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('packages', function (Blueprint $table) {
  13. $table->id();
  14. $table->integer('destination_id');
  15. $table->string('featured_photo')->nullable();
  16. $table->string('banner')->nullable();
  17. $table->string('name')->nullable();
  18. $table->string('slug')->nullable();
  19. $table->text('description')->nullable();
  20. $table->text('map')->nullable();
  21. $table->string('price')->nullable();
  22. $table->string('old_price')->nullable();
  23. $table->integer('total_rating');
  24. $table->integer('total_score');
  25. $table->timestamps();
  26. });
  27. }
  28. /**
  29. * Reverse the migrations.
  30. */
  31. public function down(): void
  32. {
  33. Schema::dropIfExists('packages');
  34. }
  35. };