<?php

use Illuminate\Database\Seeder;
use Carbon\Carbon;

class BackendPermissionsGroupsTableSeeder extends Seeder
{

    private $table = 'backend_permissions_groups';

    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        DB::table($this->table)->delete();

        $now = Carbon::now();

        DB::table($this->table)->insert(
            [
                [
                    'id'         => 1,
                    'name'       => 'BO Users and Permissions',
                    'position'   => 2,
                    'created_at' => $now,
                ],
                [
                    'id'         => 2,
                    'name'       => 'CMS',
                    'position'   => 1,
                    'created_at' => $now,
                ]
            ]
        );
    }
}
