<?php

namespace App\Models;

use CodeIgniter\Model;

class LibraryModel extends Model
{
    protected $table      = 'bbt_deals';  // <-- The new table name
    protected $primaryKey = 'id';
    protected $returnType = 'object';

    // List every field in bbt_deals here so you can access them if needed:
    protected $allowedFields = [
        'customer_id',
        'total_price',
        'createdat',
        'createdby',
        'make_id',
        'custom_notes',
        'doc_fee_value',
        'doc_fee_checked',
        'lien_fee_value',
        'lien_fee_checked',
        'discount',
        'title_fee_value',
        'title_fee_checked',
        'updatedat',
        'updatedby',
        'cbo',
        'quote_id',
        'd_type',
        'county',
        'salesman',
        'closedat',
        'canceledat',
        'how_find',
        'charge_due',
        'ca_balance',
        'service_id',
        'service_price',
        'service_title',
        'is_hide_subtotal',
        'tradein_price',
        'tradein_tax',
        'financing_option',
        'is_c3',
        'service_tax',
        'internal_notes',
        'is_service_tax',
        'service_tax_percent',
        'original_closedat',
        'mm_names',
        'balance',
        'invs',
        'vins',
        'journey_id',
        'pickup_date',
        'pickup_time',
        'schedule_id',
        'lead_source',
        'distance',
        'deposit_collected_by',
        'customer_care_by',
        'titlework_completed_by',
        'checkout_completed_by'
    ];
}
