ldc-arcadia-api/database/arcadia-replicate/Tables/Refp/SiteProdGrpTable.php

131 lines
8.2 KiB
PHP
Raw Normal View History

<?php
declare(strict_types=1);
namespace Database\ArcadiaReplicate\Tables\Refp;
use Database\ArcadiaReplicate\IdentifiesTableOrView;
use Database\ArcadiaReplicate\TableOrView;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Schema\Builder;
/**
* Schéma Oracle : REFP.SITE_PROD_GRP
* Type : TABLE
* Description : Réplication miroir pour SITE_PROD_GRP
*/
final class SiteProdGrpTable implements TableOrView
{
use IdentifiesTableOrView;
public static function schemaName(): string
{
return 'REFP';
}
public static function name(): string
{
return 'SITE_PROD_GRP';
}
public static function isView(): bool
{
return false;
}
public static function description(): string
{
return 'Objet miroir TABLE REFP.SITE_PROD_GRP 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_SITE_GRP')->primary()->comment('Oracle: NUMBER(0, 0) [PK]');
$table->text('NOM_SITE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
$table->bigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(0, 0)');
$table->string('EST_SANITAIRE', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
$table->bigInteger('COD_SOCIETE')->nullable()->comment('Oracle: NUMBER(0, 0)');
$table->unsignedBigInteger('COD_SITE_LOGISTIQUE')->nullable()->comment('Oracle: NUMBER(10, 0)');
$table->integer('COD_CNUF')->nullable()->comment('Oracle: NUMBER(9, 0)');
$table->smallInteger('TYPE_SITE')->nullable()->comment('Oracle: NUMBER(2, 0)');
$table->boolean('SAMEDI_TRAVAILLE')->nullable()->comment('Oracle: NUMBER(1, 0)');
$table->boolean('TRANSM_COMM_ARCADIA')->nullable()->comment('Oracle: NUMBER(1, 0)');
$table->integer('NO_FOURNISSEUR')->nullable()->comment('Oracle: NUMBER(7, 0)');
$table->integer('COD_SERVEUR_FICHIER')->nullable()->comment('Oracle: NUMBER(5, 0)');
$table->string('COD_PERSONNE', 32)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
$table->text('ADRESSE_1')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
$table->text('ADRESSE_2')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
$table->string('CODE_POSTAL', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
$table->text('VILLE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
$table->string('TELEPHONE', 120)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
$table->string('FAX', 120)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
$table->text('LIBELLE_COMPTABLE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
$table->boolean('CODE_DLUO_AUTO')->nullable()->comment('Oracle: NUMBER(1, 0)');
$table->smallInteger('NBREMOISAUTODLUO')->nullable()->comment('Oracle: NUMBER(3, 0)');
$table->unsignedBigInteger('COD_LFEDI_CDE_PAR')->nullable()->comment('Oracle: NUMBER(13, 0)');
$table->unsignedBigInteger('COD_LFE_EDI_LIVRE_A')->nullable()->comment('Oracle: NUMBER(13, 0)');
$table->string('PREFIXE_INTEGCPT', 60)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
$table->string('LIB_ABREG_EDI', 20)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
$table->smallInteger('NUM_ORDRE_ANALYTIQUE')->nullable()->comment('Oracle: NUMBER(3, 0)');
$table->boolean('IS_SITE_INV')->nullable()->comment('Oracle: NUMBER(1, 0)');
$table->boolean('IS_SITE_CDE_PERS')->nullable()->comment('Oracle: NUMBER(1, 0)');
$table->smallInteger('FILIERE')->nullable()->comment('Oracle: NUMBER(2, 0)');
$table->boolean('ARCADIA_KIDS')->nullable()->comment('Oracle: NUMBER(1, 0)');
$table->string('SITE_SOC_COSWIN', 20)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
$table->boolean('AUTORISE_GESTPAL_AUTO')->nullable()->comment('Oracle: NUMBER(1, 0)');
$table->decimal('LATIT', 17, 7)->nullable()->comment('Oracle: NUMBER(17, 7)');
$table->decimal('LONGIT', 17, 7)->nullable()->comment('Oracle: NUMBER(17, 7)');
$table->decimal('LATIT_MERCAT', 17, 7)->nullable()->comment('Oracle: NUMBER(17, 7)');
$table->decimal('LONGIT_MERCAT', 17, 7)->nullable()->comment('Oracle: NUMBER(17, 7)');
$table->smallInteger('SIT_ANALYTIQUE')->nullable()->comment('Oracle: NUMBER(4, 0)');
$table->text('COD_EMBAL')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
$table->text('CERTIFICATION')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
$table->text('NUM_AGREMENT')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
$table->bigInteger('SIT_STOCK_DEPORT')->nullable()->comment('Oracle: NUMBER(0, 0)');
$table->string('ZV_PLATEF', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
$table->boolean('IS_GEST_SIT_ANA_ARTSITE')->nullable()->comment('Oracle: NUMBER(1, 0)');
$table->boolean('IS_SIT_ACH_MP')->nullable()->comment('Oracle: NUMBER(1, 0)');
$table->boolean('SYNCHRO_SAV')->nullable()->comment('Oracle: NUMBER(1, 0)');
$table->string('CODE_INSEE', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
$table->smallInteger('SITPRODGRP_QUALITE_GEO')->nullable()->comment('Oracle: NUMBER(2, 0)');
$table->smallInteger('COD_SOC_REG_CTRL')->nullable()->comment('Oracle: NUMBER(4, 0)');
$table->boolean('ART_GEST_ROUTAGES')->nullable()->comment('Oracle: NUMBER(1, 0)');
$table->boolean('ABATTOIR_GRP')->nullable()->comment('Oracle: NUMBER(1, 0)');
$table->smallInteger('POLE')->nullable()->comment('Oracle: NUMBER(2, 0)');
$table->boolean('SRDI')->nullable()->comment('Oracle: NUMBER(1, 0)');
$table->boolean('IS_SITE_PRIMAIRE')->nullable()->comment('Oracle: NUMBER(1, 0)');
$table->date('DATE_AGREMENT')->nullable()->comment('Oracle: DATE(0, 0)');
$table->boolean('SITE_GERE_SPEC')->nullable()->comment('Oracle: NUMBER(1, 0)');
$table->string('COD_PAYS', 20)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
$table->smallInteger('NB_JOURS_REPETITION_PROMO')->nullable()->comment('Oracle: NUMBER(4, 0)');
$table->smallInteger('NB_JOURS_ALERTE_PROMO')->nullable()->comment('Oracle: NUMBER(4, 0)');
$table->text('MAILS_ALERTE_PROMO')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
$table->smallInteger('SITE_PHYSIQUE')->nullable()->comment('Oracle: NUMBER(4, 0)');
$table->boolean('EXPORT_LISTE_PERSONNEL')->nullable()->comment('Oracle: NUMBER(1, 0)');
$table->boolean('UTILISABLE_VENUS')->nullable()->comment('Oracle: NUMBER(1, 0)');
$table->boolean('INTERFACE_CANOP')->nullable()->comment('Oracle: NUMBER(1, 0)');
$table->integer('NV_NO_FOURNISSEUR')->nullable()->comment('Oracle: NUMBER(7, 0)');
$table->date('DATE_NV_FOURNISSEUR')->nullable()->comment('Oracle: DATE(0, 0)');
$table->string('NUM_SIRET', 56)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
$table->boolean('STOCKEUR_INTERNE')->nullable()->comment('Oracle: NUMBER(1, 0)');
$table->boolean('ACTIF')->nullable()->comment('Oracle: NUMBER(1, 0)');
$table->date('DATE_INACTIVATION')->nullable()->comment('Oracle: DATE(0, 0)');
$table->dateTime('DAT_MAJ')->nullable()->comment('Oracle: TIMESTAMP(6)(6, 0)');
$table->dateTime('DAT_CRE')->nullable()->comment('Oracle: TIMESTAMP(6)(6, 0)');
$table->smallInteger('IS_FABRICATION')->nullable()->comment('Oracle: NUMBER(2, 0)');
$table->boolean('SITE_STOCKAGE')->nullable()->comment('Oracle: NUMBER(1, 0)');
$table->boolean('ENV_FM')->nullable()->comment('Oracle: NUMBER(1, 0)');
});
}
public static function down(Builder $schema): void
{
$schema->dropIfExists(self::table($schema->getConnection()));
}
}