forked from aslan/applicant-site
65 lines
2.1 KiB
PHP
65 lines
2.1 KiB
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\Direction;
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
class DirectionSeeder extends Seeder
|
|
{
|
|
public function run(): void
|
|
{
|
|
DB::table('directions')->insert([
|
|
[
|
|
'name' => 'Юриспруденция',
|
|
'full_name' => '40.03.01 Юриспруденция',
|
|
'description' => 'Юриспруденция',
|
|
'slug' => 'jurisprudence',
|
|
'code' => '40.03.01',
|
|
'position' => 1,
|
|
'department_id' => 1,
|
|
'education_level_id' => 1,
|
|
'education_form_id' => 1,
|
|
'budget_places' => 30,
|
|
'quota' => 10,
|
|
'paid_places' => 20,
|
|
'cost_paid_place' => 20,
|
|
'period' => 4.5
|
|
],
|
|
[
|
|
'name' => 'фармация',
|
|
'full_name' => '33.05.01 фармация',
|
|
'description' => 'фармация',
|
|
'slug' => 'pharmacy',
|
|
'code' => '33.05.01',
|
|
'position' => 2,
|
|
'department_id' => 1,
|
|
'education_level_id' => 2,
|
|
'education_form_id' => 2,
|
|
'budget_places' => 40,
|
|
'quota' => 20,
|
|
'paid_places' => 30,
|
|
'cost_paid_place' => 30,
|
|
'period' => 5,
|
|
],
|
|
[
|
|
'name' => 'строительство',
|
|
'full_name' => '08.04.01 строительство',
|
|
'description' => 'строительство',
|
|
'slug' => 'construction',
|
|
'code' => '08.04.01',
|
|
'position' => 3,
|
|
'department_id' => 1,
|
|
'education_level_id' => 3,
|
|
'education_form_id' => 3,
|
|
'budget_places' => 50,
|
|
'quota' => 20,
|
|
'paid_places' => 30,
|
|
'cost_paid_place' => 30,
|
|
'period' => 5,
|
|
],
|
|
]);
|
|
}
|
|
}
|