<?php

namespace Entity\Model;

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

class TypeAchat extends QueryBuilder
{
    protected \PDO $pdo;
    
    protected string $table = 'TYPEACHAT with (nolock)';
    
    protected string $primaryKey = 'TYP_ACH';
    protected string $libelle = 'LIB_TAC';

    public string $titre;
    
    public function __construct(\PDO $pdo)
    {
        
        $this->pdo = $pdo;
    }
    
    public function getArchitecture(\Helpers\Trad\ITrad $trad)
    {
        return  [
            'CODE_TTV' => [
                'nomChamp' => $trad->t('Code Ttv'),
                'type' => 'varchar',
                'taille' => 1,
                'obligatoire' => true
            ],
            'LIBELLE' => [
                'nomChamp' => $trad->t('Libelle'),
                'type' => 'varchar',
                'taille' => 20,
                'obligatoire' => true

        
            ]
        ];
    }
}
