<?php

namespace Database\Seeders\CourierDeliverService;

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

class CourierDeliverServiceContractTemplateObligationsTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */

    // user made payment to seller
    // seller requst J&T deliver service
    // J&T provide service to seller
    // seller pack up the parcel and wait J&T pick up
    // J&T picke up seller parcel
    // J&T deliver parcel to user
    // user recieve parcel

    public function run()
    {
        DB::table('contract_template_obligations')->insert([
            [
                'id' => 101,
                'user_id' => 4,
                'contract_template_id' => 101,
                'name' => 'user made payment to seller',
                'sequence' => 1.0,
                'reference' => null,
                'content' => null,
                'must_complete' => 1,
                'must_accept' => 1,
                'complete_day_range' => 1,
                'type' => config('constants.contract_obligation.type.money'),
                '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_template_id' => 101,
                'name' => 'seller requst J&T deliver service',
                'sequence' => 2.0,
                'reference' => null,
                'content' => null,
                'must_complete' => 1,
                'must_accept' => 1,
                'complete_day_range' => 1,
                'type' => config('constants.contract_obligation.type.offer_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_template_id' => 101,
                'name' => 'J&T provide service to seller',
                'sequence' => 3.0,
                'reference' => null,
                'content' => null,
                'must_complete' => 1,
                'must_accept' => 1,
                'complete_day_range' => 1,
                'type' => config('constants.contract_obligation.type.offer_service'),
                '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_template_id' => 101,
                'name' => 'seller pack up the parcel and wait J&T pick up',
                'sequence' => 4.0,
                'reference' => null,
                'content' => null,
                'must_complete' => 1,
                'must_accept' => 1,
                'complete_day_range' => 1,
                'type' => config('constants.contract_obligation.type.received_service'),
                '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_template_id' => 101,
                'name' => 'J&T picke up seller parcel',
                'sequence' => 5.0,
                'reference' => null,
                'content' => null,
                'must_complete' => 1,
                'must_accept' => 1,
                'complete_day_range' => 1,
                'type' => config('constants.contract_obligation.type.offer_service'),
                '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_template_id' => 101,
                'name' => 'J&T deliver parcel to user',
                'sequence' => 6.0,
                'reference' => null,
                'content' => null,
                'must_complete' => 1,
                'must_accept' => 1,
                'complete_day_range' => 1,
                'type' => config('constants.contract_obligation.type.offer_service'),
                'status' => 1,
                'created_at' => date('Y-m-d H:i:s'),
                'updated_at' => date('Y-m-d H:i:s')
            ],
            [
                'id' => 107,
                'user_id' => 4,
                'contract_template_id' => 101,
                'name' => 'user recieve parcel',
                'sequence' => 7.0,
                'reference' => null,
                'content' => null,
                'must_complete' => 1,
                'must_accept' => 1,
                'complete_day_range' => 1,
                'type' => config('constants.contract_obligation.type.received_service'),
                'status' => 1,
                'created_at' => date('Y-m-d H:i:s'),
                'updated_at' => date('Y-m-d H:i:s')
            ]
        ]);
    }
}