<?php

namespace Database\Seeders\SodaVendorMachine;

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

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

    // user insert coin and select soda at vendor machine
    // vendor machine drop selected soda to user
    // user pickup the soda

    public function run()
    {
        DB::table('contract_template_obligations')->insert([
            [
                'id' => 1,
                'user_id' => 2,
                'contract_template_id' => 1,
                'name' => 'user insert coin and select soda at vendor machine',
                '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' => 2,
                'user_id' => 2,
                'contract_template_id' => 1,
                'name' => 'vendor machine drop selected soda to user',
                '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' => 3,
                'user_id' => 2,
                'contract_template_id' => 1,
                'name' => 'user pickup the soda',
                'sequence' => 3.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')
            ]
        ]);
    }
}