<?php

namespace Database\Seeders;

use App\Models\Topic;
use Illuminate\Database\Seeder;

class TopicSeeder extends Seeder
{
    public function run(): void
    {
        $data = [
            [
                'slug' => 'general',
                'name' => 'General',
                'description' => 'Any and all things about films and movies.',
            ],
            [
                'slug' => 'reviews',
                'name' => 'Reviews',
                'description' => 'What\'s the census on that latest flick? Read all about it here!',
            ],
            [
                'slug' => 'questions',
                'name' => 'Questions',
                'description' => 'Didn\'t quite understand that one plot point? There are no stupid questions here.',
            ],
            [
                'slug' => 'conspiracies',
                'name' => 'Conspiracies',
                'description' => 'Got a wild idea about how The Incredibles and Monster\'s Inc. are connected? Spill the beans!',
            ],
            [
                'slug' => 'fan-fic',
                'name' => 'Fan Fiction',
                'description' => 'Got a great idea for a sequel? Tell us all about it and get the audience opinion.',
            ],
        ];

        Topic::upsert($data, ['slug']);
    }
}
