migrate to gtea from bistbucket
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
<?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(),
|
||||
],
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user