<?php

namespace Entity\Model;

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

class DomaineCompetence extends QueryBuilder
{
    protected string $table = 'DOM_COMP with (nolock)';
    protected string $primaryKey = 'CODE_DC';
    protected string $libelle = 'LIB_DC';
    public string $titre;

    public function getArchitecture(\Helpers\Trad\ITrad $trad)
    {
        return  [
            'CODE_DC' =>
            [
                'nomChamp' => $trad->t('Code Domaine Competences'),
                'type' => 'ZOOM',
                'taille' => 10,
                'obligatoire' => true
            ],
            'LIB_DC' =>
            [
                'nomChamp' => $trad->t('Libelle Domaine Competence'),
                'type' => 'TEXTAREA',
                'taille' => 60,
                'obligatoire' => true

            ],
            'NM_COM' =>
            [
                'nomChamp' => $trad->t('Numero commentaire'),
                'type' => 'TEXTE',
                'taille' => 9,
                'obligatoire' => true

            ],

        ];
    }
}
