<?php

namespace Database\Seeders\PlumberService;

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

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

    // mushroom kingdom request service from plumber hero company to rescue princess peach
    // plumber hero company rescue princess peach
    // plumber hero company get reward

    // plumber hero company request plumber hero rescue mission service
    // plumber hero accept rescue mission
    // plumber hero complete castle level  
    // plumber hero defeat bowser
    // plumber hero rescue princess peach
    // plumber hero get reward
    
    public function run()
    {
        DB::table('contract_template_obligations')->insert([
            [
                'id' => 201,
                'user_id' => 3,
                'contract_template_id' => 201,
                'name' => 'mushroom kingdom request service from plumber hero company to rescue princess peach',
                'sequence' => 1.0,
                'reference' => null,
                'content' => null,
                'must_complete' => 1,
                'must_accept' => 1,
                'complete_day_range' => 1,
                'type' => config('constants.contract_obligation.type.request_service'),
                'status' => 1,
                'created_at' => date('Y-m-d H:i:s'),
                'updated_at' => date('Y-m-d H:i:s')
            ],
            [
                'id' => 202,
                'user_id' => 3,
                'contract_template_id' => 201,
                'name' => 'plumber company hero rescue princess peach',
                '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' => 203,
                'user_id' => 3,
                'contract_template_id' => 201,
                'name' => 'plumber hero company get reward',
                'sequence' => 3.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' => 204,
                'user_id' => 3,
                'contract_template_id' => 202,
                'name' => 'plumber hero company request plumber hero rescue mission service',
                'sequence' => 1.0,
                'reference' => null,
                'content' => null,
                'must_complete' => 1,
                'must_accept' => 1,
                'complete_day_range' => 1,
                'type' => config('constants.contract_obligation.type.request_service'),
                'status' => 1,
                'created_at' => date('Y-m-d H:i:s'),
                'updated_at' => date('Y-m-d H:i:s')
            ],
            [
                'id' => 205,
                'user_id' => 3,
                'contract_template_id' => 202,
                'name' => 'plumber hero accept rescue mission',
                'sequence' => 2.0,
                'reference' => null,
                'content' => null,
                'must_complete' => 1,
                'must_accept' => 1,
                'complete_day_range' => 1,
                'type' => config('constants.contract_obligation.type.accept_service'),
                'status' => 1,
                'created_at' => date('Y-m-d H:i:s'),
                'updated_at' => date('Y-m-d H:i:s')
            ],
            [
                'id' => 206,
                'user_id' => 3,
                'contract_template_id' => 202,
                'name' => 'plumber hero complete castle level',
                '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' => 207,
                'user_id' => 3,
                'contract_template_id' => 202,
                'name' => 'plumber hero defeat bowser',
                'sequence' => 4.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' => 208,
                'user_id' => 3,
                'contract_template_id' => 202,
                'name' => 'plumber hero rescue princess peach',
                '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' => 209,
                'user_id' => 3,
                'contract_template_id' => 202,
                'name' => 'plumber hero get reward',
                'sequence' => 6.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')
            ],
        ]);
    }
}