ldc-arcadia-api/database/arcadia-replicate/Views/Gcp/DunIncoInfView.php

82 lines
3.8 KiB
PHP

<?php
declare(strict_types=1);
namespace Database\ArcadiaReplicate\Views\Gcp;
use Database\ArcadiaReplicate\IdentifiesTableOrView;
use Database\ArcadiaReplicate\TableOrView;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Schema\Builder;
/**
* Schéma Oracle : GCP.DUN_INCO_INF
* Type : VIEW
* Description : Réplication miroir pour DUN_INCO_INF
*/
final class DunIncoInfView implements TableOrView
{
use IdentifiesTableOrView;
public static function schemaName(): string
{
return 'GCP';
}
public static function name(): string
{
return 'DUN_INCO_INF';
}
public static function isView(): bool
{
return true;
}
public static function description(): string
{
return 'Objet miroir VIEW GCP.DUN_INCO_INF 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('NO_ART')->nullable()->comment('Oracle: NUMBER(0, 0)');
$table->bigInteger('COD_PCB')->nullable()->comment('Oracle: NUMBER(0, 0)');
$table->bigInteger('COD_SOCIETE')->nullable()->comment('Oracle: NUMBER(0, 0)');
$table->integer('LONGUEUR_PAL')->nullable()->comment('Oracle: NUMBER(5, 0)');
$table->integer('LARGEUR_PAL')->nullable()->comment('Oracle: NUMBER(5, 0)');
$table->bigInteger('HAUTEUR_PAL')->nullable()->comment('Oracle: NUMBER(0, 0)');
$table->bigInteger('TARE_PAL')->nullable()->comment('Oracle: NUMBER(0, 0)');
$table->bigInteger('NB_COUCHE_PALETTE')->nullable()->comment('Oracle: NUMBER(0, 0)');
$table->smallInteger('NB_COLIS_COUCHE')->nullable()->comment('Oracle: NUMBER(3, 0)');
$table->bigInteger('NB_COLIS_PALETTE')->nullable()->comment('Oracle: NUMBER(0, 0)');
$table->bigInteger('NB_UVC_PALETTE')->nullable()->comment('Oracle: NUMBER(0, 0)');
$table->bigInteger('HAUTEUR_PAL_CHARG')->nullable()->comment('Oracle: NUMBER(0, 0)');
$table->bigInteger('PDS_NET_PAL')->nullable()->comment('Oracle: NUMBER(0, 0)');
$table->bigInteger('PDS_BRUT_PAL')->nullable()->comment('Oracle: NUMBER(0, 0)');
$table->bigInteger('PDS_BRUT_PAL_SUPPL')->nullable()->comment('Oracle: NUMBER(0, 0)');
$table->bigInteger('HAUTEUR_PAL_DUN')->nullable()->comment('Oracle: NUMBER(0, 0)');
$table->bigInteger('NB_COUCHE_PALETTE_DUN')->nullable()->comment('Oracle: NUMBER(0, 0)');
$table->bigInteger('NB_COLIS_COUCHE_DUN')->nullable()->comment('Oracle: NUMBER(0, 0)');
$table->bigInteger('NB_COLIS_PALETTE_DUN')->nullable()->comment('Oracle: NUMBER(0, 0)');
$table->bigInteger('NB_UVC_PALETTE_DUN')->nullable()->comment('Oracle: NUMBER(0, 0)');
$table->bigInteger('HAUTEUR_PAL_CHARG_DUN')->nullable()->comment('Oracle: NUMBER(0, 0)');
$table->bigInteger('PDS_NET_PAL_DUN')->nullable()->comment('Oracle: NUMBER(0, 0)');
$table->bigInteger('PDS_BRUT_PAL_DUN')->nullable()->comment('Oracle: NUMBER(0, 0)');
$table->boolean('IS_STANDARD')->nullable()->comment('Oracle: NUMBER(1, 0)');
$table->text('DUN14')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
$table->string('DUN_PALETTE', 56)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
$table->bigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(0, 0)');
});
}
public static function down(Builder $schema): void
{
$schema->dropIfExists(self::table($schema->getConnection()));
}
}