<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;


class CompanySeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        DB::table('companies')->insert([
            [
                'name' => 'TechCorp Solutions',
                'address' => '123 Tech Street, Silicon Valley',
                'owner' => 'Alice Johnson',
                'phone' => '1234567890',
                'monthly_payment' => 500.00,
                'payment_date' => '2025-01-01',
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'name' => 'CodeHub Inc.',
                'address' => '456 Developer Lane, Code City',
                'owner' => 'Bob Smith',
                'phone' => '0987654321',
                'monthly_payment' => 750.00,
                'payment_date' => '2025-02-01',
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'name' => 'SoftWorks Ltd.',
                'address' => '789 Software Blvd, Cloud Town',
                'owner' => 'Charlie Brown',
                'phone' => '1122334455',
                'monthly_payment' => 1000.00,
                'payment_date' => '2025-03-01',
                'created_at' => now(),
                'updated_at' => now(),
            ],
        ]);
    }
}

