<?php

namespace App\Models\Contacts;

use CodeIgniter\Model;

class ContactsModel extends Model
{
    protected $table      = 't_contacts';
    protected $primaryKey = 'PK_Contact';

    protected $allowedFields = [
        'External_Contact_ID',
        'PK_User',
        'First_name',
        'Last_name',
        'Email',
        'Work_email',
        'Phone',
        'Mobile',
        'Whatsapp',
        'Company_name',
        'PK_Company',
        'Job_title',
        'Job_function',
        'Buyer_persona',
        'Purchase_role',
        'Sector',
        'Address',
        'City',
        'State',
        'Country',
        'Postal_code',
        'Timezone',
        'Lead_status',
        'Lifecycle_stage',
        'Created_at',
        'Updated_at',
        'Imported_at',
        'Credit_limit',
        'Credit_allowed'
    ];

    protected $useTimestamps = false;
}
