Files
kulakpos_web/public/restaurant/Modules/SupportTicket/database/seeders/TicketConversationsTableSeeder.php

69 lines
2.2 KiB
PHP

<?php
namespace Modules\SupportTicket\Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class TicketConversationsTableSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
DB::table('support_ticket_conversations')->insert([
[
'restaurant_id' => 1,
'ticket_id' => 1,
'message' => 'This is the last message in the conversation 1.',
'user_type' => 'user', // Possible values: 'user', 'agent'
'created_at' => now(),
'updated_at' => now(),
],
[
'restaurant_id' => 1,
'ticket_id' => 1,
'message' => 'Follow-up message from the agent 1.',
'user_type' => 'agent',
'created_at' => now(),
'updated_at' => now(),
],
[
'restaurant_id' => 1,
'ticket_id' => 1,
'message' => 'This is the last message in the conversation 2.',
'user_type' => 'user', // Possible values: 'user', 'agent'
'created_at' => now(),
'updated_at' => now(),
],
[
'restaurant_id' => 1,
'ticket_id' => 1,
'message' => 'Follow-up message from the agent 2.',
'user_type' => 'agent',
'created_at' => now(),
'updated_at' => now(),
],
// 2
[
'restaurant_id' => 1,
'ticket_id' => 2,
'message' => 'This is the last message in the conversation.',
'user_type' => 'user', // Possible values: 'user', 'agent'
'created_at' => now(),
'updated_at' => now(),
],
[
'restaurant_id' => 1,
'ticket_id' => 2,
'message' => 'Follow-up message from the agent.',
'user_type' => 'agent',
'created_at' => now(),
'updated_at' => now(),
],
]);
}
}