<?php

namespace Database\Seeders;

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

class RoleTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        DB::statement('SET FOREIGN_KEY_CHECKS=0;');
        DB::table('roles')->truncate();

        DB::statement("INSERT INTO roles (id, role, description) VALUES
			(1, 'System Admin', 'Admin of whole system and has access to all modules.'),
            (2, 'Admin', 'Administrator Access'),
            (3, 'Professional', 'Person who offers service of their expertise'),
            (4, 'Client', 'Person who is looking for professionals')

		");

		DB::statement('SET FOREIGN_KEY_CHECKS=1;');
    }
}
