<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class ConfigPos extends Model
{
    use HasFactory;

    protected $table = 'config_pos';

    protected $fillable = [
        'prefix','max_load_index','camera_refresh','max_nopol_avail','max_nopol','max_member_on_a_time','message',
        'info_member','ploting','info_volume','login_a_time','tiket_masalah','use_barcode','warning_member',
        'start_warning_member','add_barcode_struk_in','type_barcode_struk_in','input_kode_pisah','cek_mobil_masalah',
        'overwrite','no_reinput','pos_for_any_kode','any_kode','confirm_input','akses_for_reprint','no_input_notrans',
        'only_input_any_digit','any_digit','input_notrans_only_open_gate','max_input_notrans','max_input_notrans_value',
        'autoprint_struk','reprint_struk_activ','no_reinput_out','id_pos','shortcut_kode','footer1','footer2','cetak_tambahan',
        'ouc','ouc_tipe_barcode','footer3','footer4','kend_valid','swapable','id_pos_alternative','manual_bg_enable','soe',
        'lbi','falidasi_instant','print_total_nol','iuc','vericode_unix','limit_validasi','form_denda','customer_counter',
        'disable_manual','enable_icmp','show_print_counter','detail_muatan','debug_window','lobby_mode'
    ];

    public function posParams() 
    {
        return $this->belongsTo(NamaPos::class, 'id_pos','id');
    }
}
