<?php

namespace Entity\Model;

use Helpers\QueryBuilder\QueryBuilder;
use Helpers\Trad\Trad;

class UniteExpedition extends QueryBuilder
{
    protected \PDO $pdo;
    
    protected string $table = 'UNIEXP with (nolock)';
    
    protected string $primaryKey = 'CODUE';
    public string $titre;

    public function __construct(\PDO $pdo)
    {
        
        $this->pdo = $pdo;
    }
    public function getArchitecture(\Helpers\Trad\ITrad $trad)
    {
        return  [
            'CODUE' =>
            [
                'nomChamp' =>$trad->t("Code Unité Expedition"),
                'type' => 'TEXTE',
                'taille' => 10,
                'obligatoire' => true
            ],
            'LIBUE' =>
            [
                'nomChamp' => $trad->t('Libelle Unité d\'Expedition'),
                'type' => 'TEXTE',
                'taille' => 30,
                'obligatoire' => true
            ],
         

        ];
    }
}
