<?php

namespace Entity\Model;

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

class TypePj extends QueryBuilder
{
    protected string $table = 'PJTYPES with (nolock)';
    protected string $primaryKey = 'PJ_TYPE';
    public string $titre;

    public function getArchitecture(\Helpers\Trad\ITrad $trad)
    {
        return
        [
            'PJ_TYPE' => [
                'nomChamp' => $trad->t('Type Pieces Jointes'),
                'type' => 'TEXTE',
                'taille' => 3,
                'obligatoire' => true
            ],
            'PJLIBELLE' => [
                'nomChamp' => $trad->t('Libelle'),
                'type' => 'TEXTE',
                'taille' => 25,
                'obligatoire' => true
            ],
            'PHYSIQUE' => [
                'nomChamp' => $trad->t('Physique'),
                'type' => 'RADIO',
                'taille' => 4,
                'obligatoire' => true
            ],
            'OUVRABLE' => [
                'nomChamp' => $trad->t('Ouvrable'),
                'type' => 'RADIO',
                'taille' => 4,
                'obligatoire' => true
            ],
            'IMPRIMABL' => [
                'nomChamp' => $trad->t('Imprimable'),
                'type' => 'RADIO',
                'taille' => 4,
                'obligatoire' => true
            ],
            'CAOUVERTU' => [
                'nomChamp' => $trad->t('Ca Ouverture'),
                'type' => 'TEXTEAREA',
                'taille' => 200,
                'obligatoire' => true
            ],
            'CA_IMP' => [
                'nomChamp' => $trad->t('Ca impression'),
                'type' => 'TEXTEAREA',
                'taille' => 200,
                'obligatoire' => true
            ],

        ];
    }
}
