migrate to gtea from bistbucket
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Booking\Database\Seeders;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class RoomBlockTableSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
$blocks = [
|
||||
[
|
||||
'restaurant_id' => 1,
|
||||
'hotel_id' => 1,
|
||||
'room_id' => 1,
|
||||
'start_date' => Carbon::now()->addDays(2)->format('Y-m-d'),
|
||||
'end_date' => Carbon::now()->addDays(3)->format('Y-m-d'),
|
||||
'start_time' => null,
|
||||
'end_time' => null,
|
||||
'block_type' => 'maintenance',
|
||||
'blocked_inventory' => 2,
|
||||
'priority' => 1,
|
||||
'reason' => 'AC maintenance',
|
||||
'auto_release' => true,
|
||||
'created_by' => 1, // admin user id
|
||||
'status' => 1,
|
||||
'created_at' => Carbon::now(),
|
||||
'updated_at' => Carbon::now(),
|
||||
],
|
||||
[
|
||||
'restaurant_id' => 1,
|
||||
'hotel_id' => 1,
|
||||
'room_id' => 2,
|
||||
'start_date' => Carbon::now()->addDays(1)->format('Y-m-d'),
|
||||
'end_date' => Carbon::now()->addDays(1)->format('Y-m-d'),
|
||||
'start_time' => '12:00:00',
|
||||
'end_time' => '18:00:00',
|
||||
'block_type' => 'deep_clean',
|
||||
'blocked_inventory' => 1,
|
||||
'priority' => 2,
|
||||
'reason' => 'Daily deep cleaning',
|
||||
'auto_release' => true,
|
||||
'created_by' => 1,
|
||||
'status' => 1,
|
||||
'created_at' => Carbon::now(),
|
||||
'updated_at' => Carbon::now(),
|
||||
],
|
||||
];
|
||||
|
||||
DB::table('room_blocks')->insert($blocks);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user