Files
nuhodds_fi4/database/seeders/SofaScorePlayerPositionSeeder.php
T
2026-08-11 18:26:38 +02:00

143 lines
9.1 KiB
PHP

<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class SofaScorePlayerPositionSeeder extends Seeder
{
public function run(): void
{
/**
* SofaScore Player Positions
*/
$sql = "INSERT INTO `sofa_score_player_positions` (`ss_code`, `name`, `generalposition`)
VALUES
('LW', 'Left Winger', 'ATTACK'),
('RW', 'Right Winger', 'ATTACK'),
('ST', 'Centre-Forward', 'ATTACK'),
('LW-AM', 'Left Winger, Attacking Midfield', 'ATTACK'),
('RW-AM', 'Right Winger, Attacking Midfield', 'ATTACK'),
('ST-AM', 'Centre-Forward, Attacking Midfield', 'ATTACK'),
('LW-DC', 'Left Winger, Centre-Back', 'ATTACK'),
('RW-DC', 'Right Winger, Centre-Back', 'ATTACK'),
('ST-DC', 'Centre-Forward, Centre-Back', 'ATTACK'),
('LW-DL', 'Left Winger, Left-Back', 'ATTACK'),
('RW-DL', 'Right Winger, Left-Back', 'ATTACK'),
('ST-DL', 'Centre-Forward, Left-Back', 'ATTACK'),
('LW-DM', 'Left Winger, Defensive Midfield', 'ATTACK'),
('RW-DM', 'Right Winger, Defensive Midfield', 'ATTACK'),
('ST-DM', 'Centre-Forward, Defensive Midfield', 'ATTACK'),
('LW-DR', 'Left Winger, Right-Back', 'ATTACK'),
('RW-DR', 'Right Winger, Right-Back', 'ATTACK'),
('ST-DR', 'Centre-Forward, Right-Back', 'ATTACK'),
('RW-LW', 'Right Winger, Left Winger', 'ATTACK'),
('ST-LW', 'Centre-Forward, Left Winger', 'ATTACK'),
('LW-MC', 'Left Winger, Central Midfield', 'ATTACK'),
('RW-MC', 'Right Winger, Central Midfield', 'ATTACK'),
('ST-MC', 'Centre-Forward, Central Midfield', 'ATTACK'),
('LW-ML', 'Left Winger, Left Midfield', 'ATTACK'),
('RW-ML', 'Right Winger, Left Midfield', 'ATTACK'),
('ST-ML', 'Centre-Forward, Left Midfield', 'ATTACK'),
('LW-MR', 'Left Winger, Right Midfield', 'ATTACK'),
('RW-MR', 'Right Winger, Right Midfield', 'ATTACK'),
('ST-MR', 'Centre-Forward, Right Midfield', 'ATTACK'),
('LW-RW', 'Left Winger, Right Winger', 'ATTACK'),
('ST-RW', 'Centre-Forward, Right Winger', 'ATTACK'),
('LW-ST', 'Left Winger, Centre-Forward', 'ATTACK'),
('RW-ST', 'Right Winger, Centre-Forward', 'ATTACK'),
('DC', 'Centre-Back', 'DEFENCE'),
('DL', 'Left-Back', 'DEFENCE'),
('DR', 'Right-Back', 'DEFENCE'),
('DC-AM', 'Centre-Back, Attacking Midfield', 'DEFENCE'),
('DL-AM', 'Left-Back, Attacking Midfield', 'DEFENCE'),
('DR-AM', 'Right-Back, Attacking Midfield', 'DEFENCE'),
('DL-DC', 'Left-Back, Centre-Back', 'DEFENCE'),
('DR-DC', 'Right-Back, Centre-Back', 'DEFENCE'),
('DC-DL', 'Centre-Back, Left-Back', 'DEFENCE'),
('DR-DL', 'Right-Back, Left-Back', 'DEFENCE'),
('DC-DM', 'Centre-Back, Defensive Midfield', 'DEFENCE'),
('DL-DM', 'Left-Back, Defensive Midfield', 'DEFENCE'),
('DR-DM', 'Right-Back, Defensive Midfield', 'DEFENCE'),
('DC-DR', 'Centre-Back, Right-Back', 'DEFENCE'),
('DL-DR', 'Left-Back, Right-Back', 'DEFENCE'),
('DC-LW', 'Centre-Back, Left Winger', 'DEFENCE'),
('DL-LW', 'Left-Back, Left Winger', 'DEFENCE'),
('DR-LW', 'Right-Back, Left Winger', 'DEFENCE'),
('DC-MC', 'Centre-Back, Central Midfield', 'DEFENCE'),
('DL-MC', 'Left-Back, Central Midfield', 'DEFENCE'),
('DR-MC', 'Right-Back, Central Midfield', 'DEFENCE'),
('DC-ML', 'Centre-Back, Left Midfield', 'DEFENCE'),
('DL-ML', 'Left-Back, Left Midfield', 'DEFENCE'),
('DR-ML', 'Right-Back, Left Midfield', 'DEFENCE'),
('DC-MR', 'Centre-Back, Right Midfield', 'DEFENCE'),
('DL-MR', 'Left-Back, Right Midfield', 'DEFENCE'),
('DR-MR', 'Right-Back, Right Midfield', 'DEFENCE'),
('DC-RW', 'Centre-Back, Right Winger', 'DEFENCE'),
('DL-RW', 'Left-Back, Right Winger', 'DEFENCE'),
('DR-RW', 'Right-Back, Right Winger', 'DEFENCE'),
('DC-ST', 'Centre-Back, Centre-Forward', 'DEFENCE'),
('DL-ST', 'Left-Back, Centre-Forward', 'DEFENCE'),
('DR-ST', 'Right-Back, Centre-Forward', 'DEFENCE'),
('GK', 'Goalkeeper', 'GOALKEEPER'),
('AM', 'Attacking Midfield', 'MIDFIELD'),
('DM', 'Defensive Midfield', 'MIDFIELD'),
('MC', 'Central Midfield', 'MIDFIELD'),
('ML', 'Left Midfield', 'MIDFIELD'),
('MR', 'Right Midfield', 'MIDFIELD'),
('DM-AM', 'Defensive Midfield, Attacking Midfield', 'MIDFIELD'),
('MC-AM', 'Central Midfield, Attacking Midfield', 'MIDFIELD'),
('ML-AM', 'Left Midfield, Attacking Midfield', 'MIDFIELD'),
('MR-AM', 'Right Midfield, Attacking Midfield', 'MIDFIELD'),
('AM-DC', 'Attacking Midfield, Centre-Back', 'MIDFIELD'),
('DM-DC', 'Defensive Midfield, Centre-Back', 'MIDFIELD'),
('MC-DC', 'Central Midfield, Centre-Back', 'MIDFIELD'),
('ML-DC', 'Left Midfield, Centre-Back', 'MIDFIELD'),
('MR-DC', 'Right Midfield, Centre-Back', 'MIDFIELD'),
('AM-DL', 'Attacking Midfield, Left-Back', 'MIDFIELD'),
('DM-DL', 'Defensive Midfield, Left-Back', 'MIDFIELD'),
('MC-DL', 'Central Midfield, Left-Back', 'MIDFIELD'),
('ML-DL', 'Left Midfield, Left-Back', 'MIDFIELD'),
('MR-DL', 'Right Midfield, Left-Back', 'MIDFIELD'),
('AM-DM', 'Attacking Midfield, Defensive Midfield', 'MIDFIELD'),
('MC-DM', 'Central Midfield, Defensive Midfield', 'MIDFIELD'),
('ML-DM', 'Left Midfield, Defensive Midfield', 'MIDFIELD'),
('MR-DM', 'Right Midfield, Defensive Midfield', 'MIDFIELD'),
('AM-DR', 'Attacking Midfield, Right-Back', 'MIDFIELD'),
('DM-DR', 'Defensive Midfield, Right-Back', 'MIDFIELD'),
('MC-DR', 'Central Midfield, Right-Back', 'MIDFIELD'),
('ML-DR', 'Left Midfield, Right-Back', 'MIDFIELD'),
('MR-DR', 'Right Midfield, Right-Back', 'MIDFIELD'),
('AM-LW', 'Attacking Midfield, Left Winger', 'MIDFIELD'),
('DM-LW', 'Defensive Midfield, Left Winger', 'MIDFIELD'),
('MC-LW', 'Central Midfield, Left Winger', 'MIDFIELD'),
('ML-LW', 'Left Midfield, Left Winger', 'MIDFIELD'),
('MR-LW', 'Right Midfield, Left Winger', 'MIDFIELD'),
('AM-MC', 'Attacking Midfield, Central Midfield', 'MIDFIELD'),
('DM-MC', 'Defensive Midfield, Central Midfield', 'MIDFIELD'),
('ML-MC', 'Left Midfield, Central Midfield', 'MIDFIELD'),
('MR-MC', 'Right Midfield, Central Midfield', 'MIDFIELD'),
('AM-ML', 'Attacking Midfield, Left Midfield', 'MIDFIELD'),
('DM-ML', 'Defensive Midfield, Left Midfield', 'MIDFIELD'),
('MC-ML', 'Central Midfield, Left Midfield', 'MIDFIELD'),
('MR-ML', 'Right Midfield, Left Midfield', 'MIDFIELD'),
('AM-MR', 'Attacking Midfield, Right Midfield', 'MIDFIELD'),
('DM-MR', 'Defensive Midfield, Right Midfield', 'MIDFIELD'),
('MC-MR', 'Central Midfield, Right Midfield', 'MIDFIELD'),
('ML-MR', 'Left Midfield, Right Midfield', 'MIDFIELD'),
('AM-RW', 'Attacking Midfield, Right Winger', 'MIDFIELD'),
('DM-RW', 'Defensive Midfield, Right Winger', 'MIDFIELD'),
('MC-RW', 'Central Midfield, Right Winger', 'MIDFIELD'),
('ML-RW', 'Left Midfield, Right Winger', 'MIDFIELD'),
('MR-RW', 'Right Midfield, Right Winger', 'MIDFIELD'),
('AM-ST', 'Attacking Midfield, Centre-Forward', 'MIDFIELD'),
('DM-ST', 'Defensive Midfield, Centre-Forward', 'MIDFIELD'),
('MC-ST', 'Central Midfield, Centre-Forward', 'MIDFIELD'),
('ML-ST', 'Left Midfield, Centre-Forward', 'MIDFIELD'),
('MR-ST', 'Right Midfield, Centre-Forward', 'MIDFIELD');
";
DB::unprepared($sql);
}
}