82 lines
3.7 KiB
PHP
82 lines
3.7 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Database\ArcadiaReplicate\Tables\Metap;
|
|
|
|
use Database\ArcadiaReplicate\IdentifiesTableOrView;
|
|
use Database\ArcadiaReplicate\TableOrView;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Schema\Builder;
|
|
|
|
/**
|
|
* Schéma Oracle : METAP.META_UTIL
|
|
* Type : TABLE
|
|
* Description : Réplication miroir pour META_UTIL
|
|
*/
|
|
final class MetaUtilTable implements TableOrView
|
|
{
|
|
use IdentifiesTableOrView;
|
|
|
|
public static function schemaName(): string
|
|
{
|
|
return 'METAP';
|
|
}
|
|
|
|
public static function name(): string
|
|
{
|
|
return 'META_UTIL';
|
|
}
|
|
|
|
public static function isView(): bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public static function description(): string
|
|
{
|
|
return 'Objet miroir TABLE METAP.META_UTIL 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->string('COD_UTIL', 36)->primary()->comment('Oracle: VARCHAR2(0, 0) [PK]');
|
|
$table->text('LIB_UTIL')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->bigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
$table->text('EMAIL')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->bigInteger('COD_LANGUE')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
$table->bigInteger('COD_SOCIETE')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
$table->smallInteger('GROUPE')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
|
$table->boolean('CONNEXION_AUTORISEE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
|
$table->bigInteger('NUM_SERV')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
$table->smallInteger('NIVEAU')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
|
$table->smallInteger('NB_SESSION')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
|
$table->boolean('IS_PERS_EXT')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
|
$table->string('COD_SUPERIEUR', 36)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->unsignedBigInteger('COD_STATUT')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
|
$table->smallInteger('IS_CHEF_PROJET_RD')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
|
$table->boolean('IS_CQ')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
|
$table->boolean('IS_ACHETEUR_ECHANTILLON')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
|
$table->string('COD_PERSONNE', 32)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->string('VISU_FONCTION', 4)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->boolean('COORD_ENV')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
|
$table->boolean('ENVOI_LDAP')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
|
$table->date('DAT_CRE')->nullable()->comment('Oracle: DATE(0, 0)');
|
|
$table->date('DAT_MAJ')->nullable()->comment('Oracle: DATE(0, 0)');
|
|
$table->date('DATE_DER_CONN')->nullable()->comment('Oracle: DATE(0, 0)');
|
|
$table->boolean('GESTION_TT_SOC')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
|
$table->boolean('GESTION_TT_SIT')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
|
$table->text('MDP')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
});
|
|
}
|
|
|
|
public static function down(Builder $schema): void
|
|
{
|
|
$schema->dropIfExists(self::table($schema->getConnection()));
|
|
}
|
|
}
|