migrate to gtea from bistbucket
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\HRM\Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
use Modules\HRM\Models\Shift;
|
||||
|
||||
class ShiftsTableSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
$shifts = [
|
||||
[
|
||||
'restaurant_id' => 1,
|
||||
'name' => 'Morning',
|
||||
'start_time' => '08:00:00',
|
||||
'end_time' => '16:00:00',
|
||||
'description' => 'Morning shift from 8 AM to 4 PM',
|
||||
],
|
||||
[
|
||||
'restaurant_id' => 1,
|
||||
'name' => 'Evening',
|
||||
'start_time' => '16:00:00',
|
||||
'end_time' => '00:00:00',
|
||||
'description' => 'Evening shift from 4 PM to 12 AM',
|
||||
],
|
||||
[
|
||||
'restaurant_id' => 1,
|
||||
'name' => 'Night',
|
||||
'start_time' => '00:00:00',
|
||||
'end_time' => '08:00:00',
|
||||
'description' => 'Night shift from 12 AM to 8 AM',
|
||||
],
|
||||
];
|
||||
|
||||
foreach ($shifts as $shift) {
|
||||
Shift::create($shift);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user