<?php

namespace Database\Seeders\SodaVendorMachine;

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

class SodaVendorContractObligationDependenciesTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        DB::table('contract_obligation_dependencies')->insert([
            [
                'id' => 1,
                'user_id' => 2,
                'contract_obligation_id' => 2, // vendor machine drop selected soda to user
                'depend_contract_obligation_id' => 1, // user insert coin and select soda at vendor machine
                '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_obligation_id' => 3, // user pickup the soda
                'depend_contract_obligation_id' => 2, // vendor machine drop selected soda to user
                'status' => 1,
                'created_at' => date('Y-m-d H:i:s'),
                'updated_at' => date('Y-m-d H:i:s')
            ]
        ]);
    }
}