<?php

use Illuminate\Database\Seeder;

class UserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //factory(\App\User::class, 5)->create();

        factory(App\User::class)->create([
            'name' => 'MG Admin',
            'email' => 'mgadmin@school.com',
            'role_id' => 1,
            'account_id' => 1
        ]);

        factory(App\User::class)->create([
            'name' => 'MG Student',
            'email' => 'mgstudent@school.com',
            'role_id' => 5,
            'account_id' => 1
        ]);

        factory(App\User::class)->create([
            'name' => 'MG Teacher',
            'email' => 'school_teacher@school.com',
            'role_id' => 2,
            'account_id' => 1
        ]);

        factory(App\User::class)->create([
            'name' => 'Test Admin',
            'email' => 'test@school.com',
            'role_id' => 1,
            'account_id' => 2
        ]);

        factory(App\User::class)->create([
            'name' => 'Test Teacher',
            'email' => 'teacher@school.com',
            'role_id' => 2,
            'account_id' => 2
        ]);

        factory(App\User::class)->create([
            'name' => 'Test Student',
            'email' => 'student@school.com',
            'role_id' => 5,
            'account_id' => 2
        ]);

    }
}
