<?php

namespace Entity\Model;

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

class CodeOrdonnance extends QueryBuilder
{
    protected string $table = 'ORDONANC with (nolock)';
    protected string $primaryKey = 'CODE_ORDO';
    protected string $libelle = 'LIBELLE';
    public string $titre;

    public function getArchitecture(\Helpers\Trad\ITrad $trad)
    {
        return  [
            'CODE_ORDO' =>
            [
                'nomChamp' => $trad->t('Code Ordonnance'),
                'type' => 'TEXTE',
                'taille' => 7,
                'obligatoire' => true
            ],
            'LIBELLE' =>
            [
                'nomChamp' => $trad->t('Libelle'),
                'type' => 'TEXTE',
                'taille' => 60,
                'obligatoire' => true

            ],
            'DATE_ORDO' =>
            [
                'nomChamp' => $trad->t('Date Ordonnance'),
                'type' => 'DATE',
                'taille' => 8,
                'obligatoire' => true

            ],

        ];
    }
}
