<?php

namespace Database\Seeders\RenderService;

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

class RenderServiceContractObligationDependenciesTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        DB::table('contract_obligation_dependencies')->insert([
            [
                'id' => 8,
                'user_id' => 6,
                'contract_obligation_id' => 11, // Librarian verify customer membership and book
                'depend_contract_obligation_id' => 10, // Customer select book (borrow) & show membership card
                'status' => 1,
                'created_at' => date('Y-m-d H:i:s'),
                'updated_at' => date('Y-m-d H:i:s')
            ],
            [
                'id' => 9,
                'user_id' => 6,
                'contract_obligation_id' => 12, // Customer Get the book
                'depend_contract_obligation_id' => 11, // Librarian verify customer membership and book
                'status' => 1,
                'created_at' => date('Y-m-d H:i:s'),
                'updated_at' => date('Y-m-d H:i:s')
            ],
            [
                'id' => 10,
                'user_id' => 6,
                'contract_obligation_id' => 13, // Customer Return book
                'depend_contract_obligation_id' => 12, // Customer Get the book
                'status' => 1,
                'created_at' => date('Y-m-d H:i:s'),
                'updated_at' => date('Y-m-d H:i:s')
            ],
            [
                'id' => 11,
                'user_id' => 6,
                'contract_obligation_id' => 14, // Librarian check the book
                'depend_contract_obligation_id' => 13, // Customer Return book
                'status' => 1,
                'created_at' => date('Y-m-d H:i:s'),
                'updated_at' => date('Y-m-d H:i:s')
            ],
            [
                'id' => 12,
                'user_id' => 6,
                'contract_obligation_id' => 15, // Librarian update customer borrow record
                'depend_contract_obligation_id' => 14, // Librarian check the book
                'status' => 1,
                'created_at' => date('Y-m-d H:i:s'),
                'updated_at' => date('Y-m-d H:i:s')
            ]
        ]);
    }
}