<?php

namespace Entity\Model;

use Helpers\QueryBuilder\QueryBuilder;

class SbsLign extends QueryBuilder
{
    protected string $table = 'SBS_LIGN with (nolock)';
    protected string $primaryKey = '';

    /**
     * @param \Helpers\Trad\ITrad $trad
     * @return array<mixed>
     */
    public function getArchitecture(\Helpers\Trad\ITrad $trad)
    {
        return [
            'NO_BS'     => ['nomChamp' => $trad->t('Numéro de BS')],
            'NO_LIG'    => ['nomChamp' => $trad->t('Numéro de ligne BS')],
            'NO_DS'     => ['nomChamp' => $trad->t('Numéro de DS')],
            'NO_LIG_DS' => ['nomChamp' => $trad->t('Numéro de ligne BS')],
            'ART'       => ['nomChamp' => $trad->t('Code article')],
            'QTE_SORTI' => ['nomChamp' => $trad->t('Quantité de sortie')],
            'PRIX_SORT' => ['nomChamp' => $trad->t('Prix de sortie')],
            'SECTIMPU'  => ['nomChamp' => $trad->t('Section d\'imputation')],
            'CODE_COMP' => ['nomChamp' => $trad->t('Code complémentaire')],
            'SSCPTEANA' => ['nomChamp' => $trad->t('Sous-compte d\'analyse')],
        ];
    }
}
