<?php

namespace Entity\Model;

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

class MotClef extends QueryBuilder
{
    protected \PDO $pdo;
    
    protected string $table = 'MOTCLEF with (nolock)';
    
    protected string $primaryKey = 'MOTCLEF';
    public string $titre = 'Mots Clefs';
    public function __construct(\PDO $pdo)
    {
        
        $this->pdo = $pdo;
    }

    public function getArchitecture(\Helpers\Trad\ITrad $trad)
    {
        return  [
            'MOTCLEF' =>
            [
                'nomChamp' => $trad->t('Code Mot Clefs'),
                'type' => 'TEXTE',
                'taille' => 20,
                'obligatoire' => true
            ],


        ];
    }
}
