<?php

namespace Database\Seeders;

use App\Models\User;
use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\DB;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;


class DeletedUserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $userexists = User::where('id', '=', 1)->first();

        if (!$userexists) {
            DB::table('users')->insert([
                'id' => 1,
                'username' => 'deleted',
                'global_name' => 'Deleted User',
                'discriminator' => null,
                'email' => 'deleteduser@deleted.com',
                'avatar' => null,
                'verified' => null,
                'banner' => null,
                'banner_color' => null,
                'accent_color' => null,
                'locale' => 'en',
                'mfa_enabled' => 0,
                'premium_type' => null,
                'public_flags' => null,
                'created_at' => Carbon::now(),
                'updated_at' => Carbon::now(),
                'is_admin' => 0,
                'roles' => null,
                'search_design' => 1,
                'home_top_design' => 0,
                'home_middle_design' => 1,
                'is_patreon' => 0,
                'tag_blacklist' => null,
                'is_banned' => 0,
            ]);
        }
    }
}
