<?php

   namespace Database\Seeders;

   use Illuminate\Database\Seeder;
   use App\Models\Category;
   use App\Models\Product;

   class DatabaseSeeder extends Seeder
   {
       public function run()
       {
           Category::create(['name' => 'Pupuk Organik', 'description' => 'Kategori pupuk organik']);
           Category::create(['name' => 'Pupuk Kimia', 'description' => 'Kategori pupuk kimia']);
           Product::create(['category_id' => 1, 'name' => 'Pupuk Kompos', 'description' => 'Pupuk organik berkualitas', 'price' => 50000, 'stock' => 100, 'image' => null]);
           Product::create(['category_id' => 2, 'name' => 'Pupuk Urea', 'description' => 'Pupuk kimia nitrogen tinggi', 'price' => 75000, 'stock' => 50, 'image' => null]);
       }
   }
