<?php

namespace Entity\Model;

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

class CaractSelective extends QueryBuilder
{
    protected \PDO $pdo;
    
    protected string $table = 'TYPECARSEL with (nolock)';
    
    protected string $primaryKey = 'COD_CAR';
    public string $titre;
    public function __construct(\PDO $pdo)
    {
        
        $this->pdo = $pdo;
    }

    public function getArchitecture(\Helpers\Trad\ITrad $trad)
    {
        return  [
            'COD_CAR' =>
            [
                'nomChamp' => $trad->t('Code Caracteristique'),
                'type' => 'TEXTE',
                'taille' => 4,
                'obligatoire' => true
            ],
            'TITRE_CAR' =>
            [
                'nomChamp' => $trad->t('Titre car'),
                'type' => 'TEXTARE',
                'taille' => 60,
                'obligatoire' => true

            ],
            'ICON_CAR' =>
            [
                'nomChamp' => $trad->t('Icon car'),
                'type' => 'TEXTARE',
                'taille' => 255,
                'obligatoire' => true

            ],
            'ORDRE_CAR' =>
            [
                'nomChamp' => $trad->t('Odre car'),
                'type' => 'TEXTE',
                'taille' => 20,
                'obligatoire' => true

            ],

        ];
    }
}
