<?php

namespace Entity\Model;

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

class Modelivr extends QueryBuilder
{
    protected \PDO $pdo;
    
    protected string $table = 'MODELIVR with (nolock)';
    
    protected string $primaryKey = 'CODE_MDL';
    protected string $libelle = 'LIBELLE';
    public string $titre;
    
    public function __construct(\PDO $pdo)
    {
        
        $this->pdo = $pdo;
    }

    public function getArchitecture(\Helpers\Trad\ITrad $trad)
    {
        return  [
            'CODE_MDL' =>
            [
                'nomChamp' => $trad->t('Code Mode De livraison'),
                'type' => 'TEXTE',
                'taille' => 7,
                'obligatoire' => true
            ],
            'LIBELLE' =>
            [
                'nomChamp' => $trad->t('Libelle'),
                'type' => 'TEXTARE',
                'taille' => 60,
                'obligatoire' => true

            ],

        ];
    }
}
