<?php

namespace Entity\Model;

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

class ConversionUnite extends QueryBuilder
{
    protected string $table = 'CONVERS with (nolock)';
    protected string $primaryKey = 'CODE_UNI1';
    protected string $libelle = '';
    public string $titre;

    public function getArchitecture(\Helpers\Trad\ITrad $trad)
    {
        return  [
            'CODE_UNI1' =>
            [
                'nomChamp' => $trad->t('Code Unitaire 1'),
                'type' => 'TEXTE',
                'taille' => 7,
                'obligatoire' => true
            ],
            'CODE_UNI2' =>
            [
                'nomChamp' => $trad->t('Code Unitaire 2'),
                'type' => 'TEXTE',
                'taille' => 7,
                'obligatoire' => true

            ],
            'VAL_1_2' =>
            [
                'nomChamp' => $trad->t('Libelle'),
                'type' => 'TEXTARE',
                'taille' => 60,
                'genre' => 'float',
                'obligatoire' => true

            ],

        ];
    }
}
