This commit is contained in:
2026-01-12 18:20:31 +00:00
parent 2a83373b28
commit ff904abf49
10 changed files with 244 additions and 19 deletions

View File

@@ -4,27 +4,21 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
class CreateHotelsTable extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
public function up()
{
Schema::create('hotels', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('address');
$table->text('description')->nullable();
$table->string('name');
$table->text('address')->nullable();
$table->string('phone')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
public function down()
{
Schema::dropIfExists('hotels');
}
};
}