+ availability

This commit is contained in:
2026-01-26 09:06:06 +00:00
parent 18aad4749f
commit a448fce756
34 changed files with 1089 additions and 578 deletions

View File

@@ -9,24 +9,21 @@ return new class extends Migration
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('bookings', function (Blueprint $table) {
$table->id();
$table->string('booking_number')->nullable();
$table->foreignId('room_type_id')->constrained()->onDelete('cascade');
$table->date('check_in');
$table->date('check_out');
$table->string('guest_name');
$table->string('guest_email')->nullable();
$table->string('guest_phone')->nullable();
$table->enum('status', ['pending', 'confirmed', 'cancelled', 'completed'])->default('pending');
$table->enum('confirmation_type', ['auto', 'manual'])->default('auto');
$table->unsignedBigInteger('created_by_user_id')->nullable();
$table->timestamp('confirmed_at')->nullable();
$table->timestamps();
});
}
public function up()
{
Schema::create('bookings', function (Blueprint $table) {
$table->id();
$table->foreignId('room_type_id')->constrained()->onDelete('cascade');
$table->date('check_in');
$table->date('check_out');
$table->string('guest_name');
$table->string('guest_email');
$table->string('guest_phone')->nullable();
$table->boolean('is_confirmed')->default(false);
$table->decimal('total_price', 10, 2)->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.