<?php

namespace Database\Seeders;

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

class BlogArticleBlockTableSeeder extends Seeder
{
    private $entryBlockTable = 'blog_article_block';

    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        // Website tables were already deleted by the Blocks seeder

        DB::table($this->entryBlockTable)->insert(
            [
                [
                    'blog_article_id'   => 1,
                    'block_id'          => 82,
                    'position'          => 1,
                ],
                [
                    'blog_article_id'   => 1,
                    'block_id'          => 78,
                    'position'          => 2,
                ],
                [
                    'blog_article_id'   => 1,
                    'block_id'          => 81,
                    'position'          => 3,
                ],
                [
                    'blog_article_id'   => 1,
                    'block_id'          => 83,
                    'position'          => 4,
                ],
                [
                    'blog_article_id'   => 1,
                    'block_id'          => 84,
                    'position'          => 5,
                ],
                [
                    'blog_article_id'   => 1,
                    'block_id'          => 79,
                    'position'          => 6,
                ],
                [
                    'blog_article_id'   => 1,
                    'block_id'          => 85,
                    'position'          => 7,
                ],
                [
                    'blog_article_id'   => 1,
                    'block_id'          => 86,
                    'position'          => 8,
                ]
            ]
        );
    }
}
