init
This commit is contained in:
55
database/seeders/TierSeeder.php
Normal file
55
database/seeders/TierSeeder.php
Normal file
@@ -0,0 +1,55 @@
|
||||
<?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!');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user