80 lines
3.6 KiB
PHP
80 lines
3.6 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Database\ArcadiaReplicate\Tables\Refp;
|
|
|
|
use Database\ArcadiaReplicate\TableOrView;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Schema\Builder;
|
|
|
|
/**
|
|
* Schéma Oracle : REFP.MARQUE
|
|
* Type : TABLE
|
|
* Description : Réplication miroir pour MARQUE
|
|
*/
|
|
final class MarqueTable implements TableOrView
|
|
{
|
|
public static function schemaName(): string
|
|
{
|
|
return 'REFP';
|
|
}
|
|
|
|
public static function name(): string
|
|
{
|
|
return 'MARQUE';
|
|
}
|
|
|
|
public static function isView(): bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public static function description(): string
|
|
{
|
|
return 'Objet miroir TABLE REFP.MARQUE du métamodèle Arcadia.';
|
|
}
|
|
|
|
public static function up(Builder $schema): void
|
|
{
|
|
if (app()->environment('local', 'testing')) {
|
|
$schema->dropIfExists(self::name());
|
|
}
|
|
|
|
$schema->create(self::name(), function (Blueprint $table): void {
|
|
$table->bigInteger('COD_MARQ')->primary()->comment('Oracle: NUMBER(0, 0) [PK]');
|
|
$table->text('LIB_MARQ')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->bigInteger('COD_RGPT_MARQ')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
$table->text('COMMENTAIRE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->integer('NO_ORDRE')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
|
$table->bigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
$table->bigInteger('TYPE_MARQUE')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
$table->bigInteger('SOCIETE')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
$table->boolean('ECO_EMBALLAGE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
|
$table->bigInteger('INDIC_TRACA_SANS_INTERNET')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
$table->bigInteger('UVERSION_PUB')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
$table->boolean('MARQUE_PROPRE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
|
$table->boolean('IS_ANALYSEPC')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
|
$table->boolean('IS_BOI')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
|
$table->unsignedBigInteger('GLN_SOC')->nullable()->comment('Oracle: NUMBER(13, 0)');
|
|
$table->boolean('A_EPURER')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
|
$table->boolean('UTILISABLE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
|
$table->date('DATE_CREATION')->nullable()->comment('Oracle: DATE(0, 0)');
|
|
$table->boolean('MARQUE_GEREE_SPEC')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
|
$table->boolean('NUTRISCORE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
|
$table->boolean('IS_PASSERELLE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
|
$table->integer('TYPE_MARQUE_STATS')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
|
$table->integer('RGPT_STATS')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
|
$table->text('COD_REF_SITE_PSRL')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->unsignedBigInteger('PSRL_RGPT')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
|
$table->boolean('IS_CHARTE_NUTRI')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
|
$table->boolean('IS_MARQ_ENGAGEE_NS')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
|
$table->boolean('ENVOI_MAGELLAN')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
|
});
|
|
}
|
|
|
|
public static function down(Builder $schema): void
|
|
{
|
|
$schema->dropIfExists(self::name());
|
|
}
|
|
}
|