- packaging_unit, packaging_unit_history 테이블 생성 - PackagingUnitModel, PackagingUnitHistoryModel - PackagingUnit 컨트롤러 (목록/등록/수정/삭제/이력) - 박스당팩수 x 팩당낱장수 = 총낱장수 자동 계산 - 변경 시 자동 이력 기록 - E2E 테스트 3개 전체 통과 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
20 lines
530 B
PHP
20 lines
530 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use CodeIgniter\Model;
|
|
|
|
class PackagingUnitModel extends Model
|
|
{
|
|
protected $table = 'packaging_unit';
|
|
protected $primaryKey = 'pu_idx';
|
|
protected $returnType = 'object';
|
|
protected $useTimestamps = false;
|
|
protected $allowedFields = [
|
|
'pu_lg_idx', 'pu_bag_code', 'pu_bag_name',
|
|
'pu_box_per_pack', 'pu_pack_per_sheet', 'pu_total_per_box',
|
|
'pu_start_date', 'pu_end_date', 'pu_state',
|
|
'pu_regdate', 'pu_moddate', 'pu_reg_mb_idx',
|
|
];
|
|
}
|