41 lines
1.0 KiB
PHP
41 lines
1.0 KiB
PHP
|
<?php
|
||
|
|
||
|
namespace Database\Seeders;
|
||
|
|
||
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||
|
use Illuminate\Database\Seeder;
|
||
|
use Illuminate\Support\Facades\DB;
|
||
|
|
||
|
class EntranceExaminationSeeder extends Seeder
|
||
|
{
|
||
|
public function run(): void
|
||
|
{
|
||
|
DB::table('entrance_examinations')->insert([
|
||
|
[
|
||
|
'examination_type_id' => 1,
|
||
|
'direction_id' => 1,
|
||
|
'subject_id' => 1,
|
||
|
'scores' => 40,
|
||
|
'position' => 1,
|
||
|
'subject_type_id' => 1,
|
||
|
],
|
||
|
[
|
||
|
'examination_type_id' => 1,
|
||
|
'direction_id' => 1,
|
||
|
'subject_id' => 2,
|
||
|
'scores' => 45,
|
||
|
'position' => 2,
|
||
|
'subject_type_id' => 1,
|
||
|
],
|
||
|
[
|
||
|
'examination_type_id' => 1,
|
||
|
'direction_id' => 1,
|
||
|
'subject_id' => 3,
|
||
|
'scores' => 50,
|
||
|
'position' => 3,
|
||
|
'subject_type_id' => 1,
|
||
|
],
|
||
|
]);
|
||
|
}
|
||
|
}
|