firstcommit
This commit is contained in:
0
Modules/Appointment/database/seeders/.gitkeep
Normal file
0
Modules/Appointment/database/seeders/.gitkeep
Normal file
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Appointment\database\seeders;
|
||||
|
||||
use Illuminate\Support\Str;
|
||||
use Illuminate\Database\Seeder;
|
||||
use Modules\Appointment\app\Models\Appointment;
|
||||
|
||||
class AppointmentDatabaseSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
$appointments = [
|
||||
[
|
||||
'team_member_id' => '1',
|
||||
'full_name' => 'Jhon Doe',
|
||||
'email' => 'jhondoe@xyz.com',
|
||||
'contact_no' => '+9779800236532',
|
||||
'subject' => 'Appointment Request For Follow-up',
|
||||
'feedback' => "Dear Dr. Johnson,I hope this email finds you in good health. I am writing to request an appointment with you for my annual check-up.
|
||||
Preferred Date: April 10th, 2024
|
||||
Preferred Time: Anytime between 10:00 AM and 2:00 PM
|
||||
Please let me know if any of the mentioned time slots are available or suggest an alternative that suits your schedule. Additionally, if there are any specific preparations I need to make before the appointment, kindly inform me.
|
||||
Thank you for your attention to this matter. I appreciate your prompt response.
|
||||
Warm regards,
|
||||
Jhon Doe",
|
||||
],
|
||||
[
|
||||
'team_member_id' => '2',
|
||||
'full_name' => 'Sudarshan Shrestha',
|
||||
'email' => 'sudarshansth@xyz.com',
|
||||
'contact_no' => '+9779800236533',
|
||||
'subject' => 'Appointment Request To Consult About Brain Tumor',
|
||||
'feedback' => "Dear Dr. Sita Sakya,I hope this email finds you in good health. I am writing to request an appointment with you for my annual check-up.
|
||||
Preferred Date: December 10th, 2024
|
||||
Preferred Time: Anytime between 10:00 AM and 2:00 PM
|
||||
Please let me know if any of the mentioned time slots are available or suggest an alternative that suits your schedule. Additionally, if there are any specific preparations I need to make before the appointment, kindly inform me.
|
||||
Thank you for your attention to this matter. I appreciate your prompt response.
|
||||
Warm regards,
|
||||
Sudarshan Shrestha",
|
||||
],
|
||||
];
|
||||
|
||||
foreach ($appointments as $appointment) {
|
||||
$appointment = Appointment::create([
|
||||
'uuid' => Str::uuid(),
|
||||
'team_member_id' => $appointment['team_member_id'],
|
||||
'full_name' => $appointment['full_name'],
|
||||
'email' => $appointment['email'],
|
||||
'contact_no' => $appointment['contact_no'],
|
||||
'subject' => $appointment['subject'],
|
||||
'feedback' => $appointment['feedback'],
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user