<?php

namespace App\Models\Entities;

use CodeIgniter\Model;

class V2articleinfoModel extends Model
{
    protected $table            = 'v2_article_info';
    protected $primaryKey       = 'vr_sq';
    protected $useAutoIncrement = false; // 메인 테이블의 vr_sq를 수동으로 입력받음
    protected $returnType       = 'array';

    protected $allowedFields = [
        'vr_sq', 'atcl_no', 'cpid', 'cp_atcl_id', 'rlet_type_cd', 'trade_type',
        'address_code', 'address1', 'address2', 'address3', 'sply_spc', 'excls_spc',
        'tot_spc', 'grnd_spc', 'bldg_spc', 'deal_amt', 'wrrnt_amt', 'lease_amt',
        'isale_amt', 'prem_amt', 'sise', 'floor', 'rdate', 'seller_tel_no',
        'seller_nm', 'realtor_nm', 'realtor_tel_no', 'hscp_no', 'hscp_nm',
        'ptp_no', 'ptp_nm', 'bild_no', 'charger', 'req_price_yn', 'reg_charger',
        'dept1_sq', 'dept2_sq', 'reg_dept2_sq', 'reg_dept1_sq', 'floor2',
        'dong_ho_chk', 'hscplqry_lv', 'ownerNm', 'ownerTelNo', 'chg_trade_type',
        'chg_address2', 'chg_address3', 'chg_seller_tel', 'chg_amt', 'reg_status',
        'cupnNo', 'roomSiteAtclRgstCnt', 'roomSiteAtclExpsCnt', 'redvlp_area_nm',
        'biz_stp_desc', 'cert_register', 'direct_trad_yn', 'confirm_doc_img_url',
        'confirm_doc_owner_check_yn', 'owner_birth', 'vrfc_type_sub',
        'cert_register_save_yn', 'confirm_doc_img_url_save_yn', 'address4',
        'reference_file_url', 'reference_file_url_save_yn', 'reference_file_url_yn',
        'registerBookUniqueNo', 'relationSellerAndOwner', 'ownerTypeCode', 'registerBookUniqueNumber'
    ];
}