<?php

namespace Entity\Model;

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

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

    public function getArchitecture(\Helpers\Trad\ITrad $trad)
    {
        return  [

            'CODE_DOC' =>
            [
                'nomChamp' => $trad->t('Code Document'),
                'type' => 'TEXTE',
                'taille' => 10,
                'obligatoire' => true

            ],
            'TITRE_DOC' =>
            [
                'nomChamp' => $trad->t('Titre Document'),
                'type' => 'TEXTE',
                'taille' => 30,
                'obligatoire' => true

            ],

        ];
    }
}
