<?php

namespace Entity\Model;

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

class GrilGrpNot extends QueryBuilder
{
    protected \PDO $pdo;

    protected string $table = 'GRIL_GRP_NOT with (nolock)';
    protected string $primaryKey = '';

    public function __construct(\PDO $pdo)
    {
        $this->pdo = $pdo;
    }

    /**
     * getArchitecture
     *
     * @return array<mixed>
     */
    public function getArchitecture(\Helpers\Trad\ITrad $trad): array
    {
        return  [
            'ID_MODEL' =>
            [
                'nomChamp' => $trad->t('Identifiant Modèle'),
                'type' => 'TEXT',
                'taille' => 10,
                'obligatoire' => true
            ],
            'GROUPE' =>
            [
                'nomChamp' => $trad->t('Groupe'),
                'type' => 'TEXT',
                'taille' => 30,
                'obligatoire' => true
            ],
        ];
    }
}
