115 lines
6.8 KiB
PHP
115 lines
6.8 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Database\ArcadiaReplicate\Views\Refp;
|
|
|
|
use Database\ArcadiaReplicate\IdentifiesTableOrView;
|
|
use Database\ArcadiaReplicate\TableOrView;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Schema\Builder;
|
|
|
|
/**
|
|
* Schéma Oracle : REFP.EPURER_FAM_VENTE
|
|
* Type : VIEW
|
|
* Description : Réplication miroir pour EPURER_FAM_VENTE
|
|
*/
|
|
final class EpurerFamVenteView implements TableOrView
|
|
{
|
|
use IdentifiesTableOrView;
|
|
|
|
public static function schemaName(): string
|
|
{
|
|
return 'REFP';
|
|
}
|
|
|
|
public static function name(): string
|
|
{
|
|
return 'EPURER_FAM_VENTE';
|
|
}
|
|
|
|
public static function isView(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public static function description(): string
|
|
{
|
|
return 'Objet miroir VIEW REFP.EPURER_FAM_VENTE du métamodèle Arcadia.';
|
|
}
|
|
|
|
public static function up(Builder $schema): void
|
|
{
|
|
if (app()->environment('local', 'testing')) {
|
|
$schema->dropIfExists(self::table($schema->getConnection()));
|
|
}
|
|
|
|
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
|
$table->bigInteger('COD_FAMVTE')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
$table->text('LIB_FAMVTE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->bigInteger('COD_FAMGEST')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
$table->integer('NO_ORDRE')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
|
$table->smallInteger('TOT')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
|
$table->boolean('EXCLUSION_STAT')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
|
$table->bigInteger('COD_FAMRGPT')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
$table->boolean('EXCLU_TRANSP')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
|
$table->bigInteger('COD_FAMCOMPTA')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
$table->text('COMMENTAIRE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->bigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
$table->smallInteger('COD_TVA')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
|
$table->decimal('COD_CONTRIBUTION', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
|
$table->text('TEXTE_CMP')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->smallInteger('CODE_TAXE')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
|
$table->string('COD_FAMECOEMB', 24)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->boolean('IS_MIXTE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
|
$table->string('COMPTE_COMPTA', 24)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->unsignedBigInteger('SECT_ANA_SITE')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
|
$table->unsignedBigInteger('SECT_ANA_INTERFILIALE')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
|
$table->string('COMPTE_COMPTA_SOCEXPORT', 24)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->smallInteger('PREFIXE_ANA_VENTE')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
|
$table->boolean('IS_PRESTATION')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
|
$table->smallInteger('NIVEAU_STATS')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
|
$table->boolean('UTILISABLE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
|
$table->smallInteger('CHARTE')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
|
$table->text('OPA_CONCERNEES')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->text('SOUCHE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->text('ORIGINE_VOLAILLE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->text('AGE_ABATTAGE_MOYEN')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->text('DENSITE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->text('OBJECTIF_POIDS')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->text('ALIMENTATION')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->text('ELEVAGE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->boolean('CONTROLE_FILIERE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
|
$table->unsignedBigInteger('REF_FICHE_RD')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
|
$table->string('REF_PREP_VIANDE', 80)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->string('REF_FICHE_FABRICATION', 80)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->boolean('A_EPURER')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
|
$table->smallInteger('POLE_ACTIVITE')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
|
$table->unsignedBigInteger('SEC_ANA_OEUF')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
|
$table->unsignedBigInteger('SECT_ANA_SITE_TRT')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
|
$table->unsignedBigInteger('SECT_ANA_INTERFILIALE_TRT')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
|
$table->string('COMPTE_COMPTA_TRT', 24)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->string('COMPTE_COMPTA_SOCEXPORT_TRT', 24)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->bigInteger('COD_FAMCOMPTA_TRT')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
$table->integer('FAM_COMPTA_ACH_TRT')->nullable()->comment('Oracle: NUMBER(6, 0)');
|
|
$table->integer('FAM_COMPTA_ACH_VOL')->nullable()->comment('Oracle: NUMBER(6, 0)');
|
|
$table->integer('FAM_COMPTA_VTE_TRT')->nullable()->comment('Oracle: NUMBER(6, 0)');
|
|
$table->integer('FAM_COMPTA_VTE_VOL')->nullable()->comment('Oracle: NUMBER(6, 0)');
|
|
$table->boolean('CARAC_ELEVAGE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
|
$table->boolean('CONSEILS_CONSO_CUIT_A_COEUR')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
|
$table->integer('TAXE_CVO')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
|
$table->text('NOM_FONCT_INCO_ART')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->integer('COD_TAXE_SIO')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
|
$table->integer('COD_SFAMILLE_COMM')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
|
$table->boolean('MENTION_A_AFFICHER')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
|
$table->smallInteger('IS_NOTION_FRAIS')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
|
$table->smallInteger('REGROUP_SS_TOT')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
|
$table->boolean('IS_PRESTA_SERVICE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
|
});
|
|
}
|
|
|
|
public static function down(Builder $schema): void
|
|
{
|
|
$schema->dropIfExists(self::table($schema->getConnection()));
|
|
}
|
|
}
|