<?php

namespace Database\Seeders\CourierDeliverService;

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

class CourierDeliverServiceContractObligationDependenciesTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        DB::table('contract_obligation_dependencies')->insert([
            [
                'id' => 101,
                'user_id' => 4,
                'contract_obligation_id' => 102, // seller requst J&T deliver service
                'depend_contract_obligation_id' => 101, // user made payment to seller
                'status' => 1,
                'created_at' => date('Y-m-d H:i:s'),
                'updated_at' => date('Y-m-d H:i:s')
            ],
            [
                'id' => 102,
                'user_id' => 4,
                'contract_obligation_id' => 103, // J&T provide service to seller
                'depend_contract_obligation_id' => 102, // seller requst J&T deliver service
                'status' => 1,
                'created_at' => date('Y-m-d H:i:s'),
                'updated_at' => date('Y-m-d H:i:s')
            ],
            [
                'id' => 103,
                'user_id' => 4,
                'contract_obligation_id' => 104, // seller pack up the parcel and wait J&T pick up
                'depend_contract_obligation_id' => 103, // J&T provide service to seller
                'status' => 1,
                'created_at' => date('Y-m-d H:i:s'),
                'updated_at' => date('Y-m-d H:i:s')
            ],
            [
                'id' => 104,
                'user_id' => 4,
                'contract_obligation_id' => 105, // J&T picke up seller parcel
                'depend_contract_obligation_id' => 104, // seller pack up the parcel and wait J&T pick up
                'status' => 1,
                'created_at' => date('Y-m-d H:i:s'),
                'updated_at' => date('Y-m-d H:i:s')
            ],
            [
                'id' => 105,
                'user_id' => 4,
                'contract_obligation_id' => 106, // J&T deliver parcel to user
                'depend_contract_obligation_id' => 105, // J&T picke up seller parcel
                'status' => 1,
                'created_at' => date('Y-m-d H:i:s'),
                'updated_at' => date('Y-m-d H:i:s')
            ],
            [
                'id' => 106,
                'user_id' => 4,
                'contract_obligation_id' => 107, // user recieve parcel
                'depend_contract_obligation_id' => 106, // J&T deliver parcel to user
                'status' => 1,
                'created_at' => date('Y-m-d H:i:s'),
                'updated_at' => date('Y-m-d H:i:s')
            ]
        ]);
    }
}