+ availability
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user