<?php

namespace Entity\Model;

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

class EvenementDossierAchat extends QueryBuilder
{
    protected string $table = 'DOAR_TYPE_EVT with (nolock)';
    protected string $primaryKey = 'CODE_EVT';
    protected string $libelle = 'LIB';
    public string $titre;

    public function getArchitecture(\Helpers\Trad\ITrad $trad)
    {
        return  [
            'CODE_EVT' =>
            [
                'nomChamp' => $trad->t('Code Evenement'),
                'type' => 'TEXTE',
                'taille' => 3,
                'obligatoire' => true
            ],
            'LIB' =>
            [
                'nomChamp' => $trad->t('Libelle'),
                'type' => 'TEXTE',
                'taille' => 60,
                'obligatoire' => true

            ],
            'INTERNE' =>
            [
                'nomChamp' => $trad->t('Interne'),
                'type' => 'RADIO',
                'taille' => 4,
                'genre' => 'float',
                'obligatoire' => true

            ],
           

        ];
    }
}
