httpd 코드 수정 202-> 200
This commit is contained in:
26
app/Models/Entities/NaverWorkerLogModel.php
Normal file
26
app/Models/Entities/NaverWorkerLogModel.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
namespace App\Models;
|
||||
|
||||
use CodeIgniter\Model;
|
||||
|
||||
class NaverWorkerLogModel extends Model
|
||||
{
|
||||
protected $table = 'naver_worker_logs';
|
||||
protected $primaryKey = 'seq'; // 'id'가 아니므로 명시 필요
|
||||
|
||||
protected $useAutoIncrement = true;
|
||||
|
||||
protected $returnType = 'array'; // 또는 'object'
|
||||
protected $useSoftDeletes = false;
|
||||
|
||||
// 대량 입력을 허용할 필드들
|
||||
protected $allowedFields = [
|
||||
'atcl_no', 'raw_payload', 'status',
|
||||
'retry_cnt', 'error_msg', 'target_db_id'
|
||||
];
|
||||
|
||||
// 날짜 자동 업데이트 설정
|
||||
protected $useTimestamps = true;
|
||||
protected $createdField = 'created_at';
|
||||
protected $updatedField = 'updated_at';
|
||||
}
|
||||
Reference in New Issue
Block a user