<?php

namespace Database\Seeders;

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

class BusinessFeatureSeeder extends Seeder
{
    public function run(): void
    {
        $features = [
            'cas',
            'cat',
            'brand',
            'origin',
            'size',
            'model',
            'color',
            'gold_unit',
            'gold_weight',
            'diamond_unit',
            'diamond_weight',
            'opening_stock',
            'requisition_price',
            'requisition_price_total',
            'requisition_note',
            'requsition_document_wise',
        ];

        foreach ($features as $feature) {
            DB::table('business_features')->updateOrInsert(
                ['feature_key' => $feature],
                [
                    'enabled' => 0,
                    'created_at' => now(),
                    'updated_at' => now(),
                ]
            );
        }
    }
}
