<?php

namespace Database\Seeders;

use App\Models\Server;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class ServerTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $server = [
            'server_name'  => 'Meta Mint Cloud',
            'server_code'  => 'META_MINT_CLOUD',
            'login_link'   => 'https://metamintcloud.coms',
            'private_link' => null,
            'server_ip'    => '3.111.241.234',
            'user_name'    => null,
            'password'     => null,
            'status'       => 1,
            'default'      => 1,
            'created_at'   => now(),
        ];

        Server::firstOrCreate(
            ['server_code' => $server['server_code']],
            $server
        );

    }
}
