<?php

namespace Modules\Lpj\Database\Seeders;

use Illuminate\Database\Seeder;
use Modules\Basicdata\Models\Currency;

class CurrencySeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        Currency::insert([
            [
                'code' => 'IDR',
                'name' => 'Rupiah',
                'decimal_places' => 2,
                'status' => 1,
                'created_at' => now(),
                'updated_at' => now()
            ],
            [
                'code' => 'MYR',
                'name' => 'Ringgit',
                'decimal_places' => 2,
                'status' => 1,
                'created_at' => now(),
                'updated_at' => now()
            ],
            [
                'code' => 'SAR',
                'name' => 'Riyadh',
                'decimal_places' => 2,
                'status' => 1,
                'created_at' => now(),
                'updated_at' => now()
            ]
        ]);
    }
}
