<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Hash;

class CCTV extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run()
    {
        // Insert predefined CCTV configurations
        DB::table('tbl_cctv')->insert([
            [
                'camera_name' => 'CCTV 1',
                'ip_address' => 'https://cctvpln.bantungoding.com/camera_1/mjpeg-streams/my_stream',
                'resolution' => '2K',
                'building_id' => 1,
                'status' => '1',
                'created_at' => now(),
                'updated_at' => now()
            ],
            [
                'camera_name' => 'CCTV 2',
                'ip_address' => 'https://cctvpln.bantungoding.com/camera_2/mjpeg-streams/my_stream',
                'resolution' => '2K',
                'building_id' => 1,
                'status' => '1',
                'created_at' => now(),
                'updated_at' => now()
            ],
            [
                'camera_name' => 'CCTV 3',
                'ip_address' => 'https://cctvpln.bantungoding.com/camera_3/mjpeg-streams/my_stream',
                'resolution' => '2K',
                'building_id' => 1,
                'status' => '1',
                'created_at' => now(),
                'updated_at' => now()
            ],
            [
                'camera_name' => 'CCTV 4',
                'ip_address' => 'https://cctvpln.bantungoding.com/camera_4/mjpeg-streams/my_stream',
                'resolution' => '2K',
                'building_id' => 1,
                'status' => '1',
                'created_at' => now(),
                'updated_at' => now()
            ],
            [
                'camera_name' => 'CCTV 5',
                'ip_address' => 'https://cctvpln.bantungoding.com/camera_5/mjpeg-streams/my_stream',
                'resolution' => '2K',
                'building_id' => 1,
                'status' => '1',
                'created_at' => now(),
                'updated_at' => now()
            ],
            [
                'camera_name' => 'CCTV 6',
                'ip_address' => 'https://cctvpln.bantungoding.com/camera_6/mjpeg-streams/my_stream',
                'resolution' => '2K',
                'building_id' => 1,
                'status' => '1',
                'created_at' => now(),
                'updated_at' => now()
            ],
            [
                'camera_name' => 'CCTV 7',
                'ip_address' => 'https://cctvpln.bantungoding.com/camera_7/mjpeg-streams/my_stream',
                'resolution' => '2K',
                'building_id' => 1,
                'status' => '1',
                'created_at' => now(),
                'updated_at' => now()
            ],
            [
                'camera_name' => 'CCTV 8',
                'ip_address' => 'https://cctvpln.bantungoding.com/camera_8/mjpeg-streams/my_stream',
                'resolution' => '2K',
                'building_id' => 1,
                'status' => '1',
                'created_at' => now(),
                'updated_at' => now()
            ],
        ]);
    }
}