56 lines
1.5 KiB
PHP
56 lines
1.5 KiB
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\Tier;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class TierSeeder extends Seeder
|
|
{
|
|
public function run(): void
|
|
{
|
|
Tier::create([
|
|
'name' => 'Basic',
|
|
'slug' => 'basic',
|
|
'description' => 'Basic tier with essential vehicle information',
|
|
'allowed_fields' => [
|
|
'registrationNumber',
|
|
'make',
|
|
'colour',
|
|
'fuelType',
|
|
'yearOfManufacture',
|
|
'taxStatus',
|
|
'motStatus',
|
|
],
|
|
]);
|
|
|
|
Tier::create([
|
|
'name' => 'Standard',
|
|
'slug' => 'standard',
|
|
'description' => 'Standard tier with additional emissions and engine data',
|
|
'allowed_fields' => [
|
|
'registrationNumber',
|
|
'make',
|
|
'colour',
|
|
'fuelType',
|
|
'yearOfManufacture',
|
|
'taxStatus',
|
|
'motStatus',
|
|
'co2Emissions',
|
|
'engineCapacity',
|
|
'typeApproval',
|
|
'euroStatus',
|
|
],
|
|
]);
|
|
|
|
Tier::create([
|
|
'name' => 'Premium',
|
|
'slug' => 'premium',
|
|
'description' => 'Premium tier with all available vehicle data',
|
|
'allowed_fields' => \App\DataSourceFields::DVLA,
|
|
]);
|
|
|
|
$this->command->info('Tiers seeded successfully!');
|
|
}
|
|
}
|