<?php
namespace App\Database\Seeds;

use CodeIgniter\Database\Seeder;

class PlanSeeder extends Seeder
{
    public function run()
    {
        $data = [
            [
                'name' => 'Basic',
                'tips_per_day' => 3,
                'duration_days' => 7,
                'price' => 5000.00,
                'created_at' => date('Y-m-d H:i:s'),
                'updated_at' => date('Y-m-d H:i:s'),
            ],
            [
                'name' => 'Standard',
                'tips_per_day' => 5,
                'duration_days' => 14,
                'price' => 9000.00,
                'created_at' => date('Y-m-d H:i:s'),
                'updated_at' => date('Y-m-d H:i:s'),
            ],
            [
                'name' => 'Premium',
                'tips_per_day' => 10,
                'duration_days' => 30,
                'price' => 15000.00,
                'created_at' => date('Y-m-d H:i:s'),
                'updated_at' => date('Y-m-d H:i:s'),
            ],
        ];
        $this->db->table('plans')->insertBatch($data);
    }
} 