<?php

namespace Database\Seeders;

// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use App\Models\Helloworld;

class HelloworldSeeder extends Seeder
{
  /**
   * Run the database seeds.
   */
  public function run(): void
  {
    Helloworld::factory()->create([
      'name' => 'Helloworld',
      'string_field' => 'Helloworld',
      'integer_field' => 0,
      'float_field' => 1.23456789023456789,
      'decimal_field' => 1.23456789023456789,
      'boolean_field' => true,
      'date_field' => '2023-11-23',
      'time_field' => '12:34:56',
      'datetime_field' => '2023-04-30 03:17:22',
      'timestamp_field' => now(),
      'text_field' => 'helloworld_text_field',
      'json_field' => json_encode(['foo' => 'bar']),
      'binary_field' => '',
      'enum_field' => 'option_1',
      'uuid_field' => '123321',
      'ip_address_field' => '123.123.123.123',
      'mac_address_field' => '1a:75:09:a4:98:81',
    ]);
  }
}
