clqms-be/app/Database/Seeds/CounterSeeder.php
root 2bcdf09b55 chore: repo-wide normalization + rules test coverage
Normalize formatting/line endings across configs, controllers, models, tests, and OpenAPI specs.

Update rule expression/rule engine implementation and remove obsolete RuleAction controller/model.

Add unit tests for rule expression syntax and multi-action behavior, and include docs updates.
2026-03-16 07:24:50 +07:00

17 lines
643 B
PHP

<?php
namespace App\Database\Seeds;
use CodeIgniter\Database\Seeder;
class CounterSeeder extends Seeder {
public function run() {
$now = date('Y-m-d H:i:s');
// counter
$data = [
['CounterID' => 1, 'CounterValue' => '1', 'CounterStart' => '1', 'CounterEnd' => '99999', 'CounterDesc' => 'Counter for Order#', 'CounterReset' => 'Y', 'CreateDate' => "$now" ],
['CounterID' => 2, 'CounterValue' => '1', 'CounterStart' => '1', 'CounterEnd' => '9999', 'CounterDesc' => 'Counter for Visit#', 'CounterReset' => 'M', 'CreateDate' => "$now" ]
];
$this->db->table('counter')->insertBatch($data);
}
}