<?php

declare(strict_types=1);

namespace Tests\Commands\Upgrade\Databases\V12_0_0\Seeds;

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

class SitesTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        DB::table('sites')->truncate();
        DB::table('sites')->insert([
            [
                'id'                => 1,
                'socialite_user_id' => 1,
                'name'              => '白俊遥博客',
                'description'       => '白俊遥的个人博客',
                'url'               => 'https://baijunyao.com',
                'audit'             => 0,
                'sort'              => 1,
                'created_at'        => '2018-11-15 20:35:12',
                'updated_at'        => '2018-11-15 20:35:12',
                'deleted_at'        => null,
            ],
            [
                'id'                => 2,
                'socialite_user_id' => 1,
                'name'              => '已删除',
                'description'       => '用于测试',
                'url'               => 'https://deleted.com',
                'audit'             => 1,
                'sort'              => 1,
                'created_at'        => '2019-01-04 16:35:12',
                'updated_at'        => '2019-01-04 16:35:12',
                'deleted_at'        => '2019-01-04 16:35:12',
            ],
        ]);
    }
}
