<?php

namespace App\Models;

use CodeIgniter\Model;

class ClientePedidoModel extends Model
{
    protected $DBGroup          = 'default';
    protected $table            = 'cliente_pedido';
    protected $primaryKey       = 'id_clientepedido';
    protected $useAutoIncrement = true;
    protected $insertID         = 0;
    protected $returnType       = 'array';
    protected $useSoftDeletes   = true;
    protected $protectFields    = true;
    protected $allowedFields    = [
                                    'id_cliente',
                                    'id_produto',
                                    'cliped_dominio',
                                    'cliped_login',
                                    'cliped_senha',
                                    'cliped_valor',
                                    'cliped_datainicio',
                                    'cliped_pagamentoproximo',
                                    'cliped_pagamentoperiodo',
                                    'cliped_status',
                                    'deleted_at',
                                  ];

    // Dates
    protected $useTimestamps = false;
    protected $dateFormat    = 'datetime';
    protected $createdField  = 'created_at';
    protected $updatedField  = 'updated_at';
    protected $deletedField  = 'deleted_at';


}
