Files
app3/database/migrations/2025_12_03_173010_create_table_hotels.php
2025-12-03 17:51:50 +00:00

31 lines
653 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('table_hotels', function (Blueprint $table) {
$table->id();
$table->timestamps();
$table->text('name');
$table->text('description');
$table->text('address');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('table_hotels');
}
};