<?php

namespace App\Models;

use CodeIgniter\Model;

class LancementsNowModel extends Model
{
    protected $table = 'lancements'; // Nom de la table
    protected $primaryKey = 'id';    // Clé primaire
    protected $allowedFields = [
        'id', 'lancement', 'date_lancement', 'date_reception', 'marque',
        'samples_envoyes_clients', 'preco', 'date_preco', 'accessoires', 'samples_recus',
        'qte_samples', 'first_batch', 'dispo_en_chine', 'pick_up', 'deblocage',
        'goodies_plv', 'id_produit', 'poids', 'samples_envoyes_marketing',
        'preco_active', 'pmvcs', 'statut', 'staff'
    ];


    public function getLancementsNow()
    {
        return $this->findAll();
    }
}
