<?php

namespace Entity\Model;

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

class ModTrans extends QueryBuilder
{
    protected string $table = 'MODTRANS with (nolock)';
    protected string $primaryKey = 'MOD_TRS';
    protected string $libelle = 'MOD_TRS';
    public string $titre;

    public function getArchitecture(\Helpers\Trad\ITrad $trad)
    {
        return  [
            'MOD_TRS' =>
            [
                'nomChamp' => $trad->t('Mode De Transport'),
                'type' => 'TEXTE',
                'taille' => 20,
                'obligatoire' => true
            ],
            'EQPOIVOL' =>
            [
                'nomChamp' => $trad->t('Numero ordre'),
                'type' => 'TEXTE',
                'taille' => 10,
                'genre' => 'float',
                'obligatoire' => true

            ],
            'FORAFFREF' =>
            [
                'nomChamp' =>$trad->t("Date création"),
                'type' => 'DATE',
                'taille' => 30,
                'genre' => 'float',
                'obligatoire' => true

            ],
         
        ];
    }
}
