<?php

namespace Database\Seeders\RepairService;

use Illuminate\Database\Seeder;
use Illuminate\Support\Str;
use Illuminate\Support\Facades\DB;

class RepairServiceContractTemplateObligationDependenciesTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        DB::table('contract_template_obligation_dependencies')->insert([
            [
                'id' => 3,
                'user_id' => 5,
                'contract_template_obligation_id' => 5, // Repair Guy check/analysis Car
                'depend_contract_template_obligation_id' => 4, // Car Owner send car to workshop and explain/describe the problem to Repair Guy
                'status' => 1,
                'created_at' => date('Y-m-d H:i:s'),
                'updated_at' => date('Y-m-d H:i:s')
            ],
            [
                'id' => 4,
                'user_id' => 5,
                'contract_template_obligation_id' => 6, // Repair Guy repair car
                'depend_contract_template_obligation_id' => 5, // Repair Guy check/analysis Car
                'status' => 1,
                'created_at' => date('Y-m-d H:i:s'),
                'updated_at' => date('Y-m-d H:i:s')
            ],
            [
                'id' => 5,
                'user_id' => 5,
                'contract_template_obligation_id' => 7, // Car Owner pay repair fees
                'depend_contract_template_obligation_id' => 6, // Repair Guy repair car
                'status' => 1,
                'created_at' => date('Y-m-d H:i:s'),
                'updated_at' => date('Y-m-d H:i:s')
            ],
            [
                'id' => 6,
                'user_id' => 5,
                'contract_template_obligation_id' => 8, // Car Owner check car
                'depend_contract_template_obligation_id' => 6, // Repair Guy repair car
                'status' => 1,
                'created_at' => date('Y-m-d H:i:s'),
                'updated_at' => date('Y-m-d H:i:s')
            ],
            [
                'id' => 7,
                'user_id' => 5,
                'contract_template_obligation_id' => 9, // Repair Service complete & Car Owner drive car back home
                'depend_contract_template_obligation_id' => 7, // Repair Guy repair car
                'status' => 1,
                'created_at' => date('Y-m-d H:i:s'),
                'updated_at' => date('Y-m-d H:i:s')
            ]
        ]);
    }
}