refactor: replicate and reproduce arcadia tables
This commit is contained in:
parent
06deb17236
commit
361cf230e3
77 changed files with 5837 additions and 279 deletions
|
|
@ -47,6 +47,7 @@
|
|||
},
|
||||
"autoload-dev": {
|
||||
"psr-4": {
|
||||
"Database\\ArcadiaReplicate\\": "database/arcadia-replicate/",
|
||||
"Database\\Factories\\": "database/factories/",
|
||||
"Database\\Seeders\\": "database/seeders/",
|
||||
"Tests\\": "tests/"
|
||||
|
|
|
|||
|
|
@ -0,0 +1,87 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Database\ArcadiaReplicate\Factories;
|
||||
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
abstract class AbstractTableFactory implements TableFactory
|
||||
{
|
||||
/** @var list<callable(array<string, mixed>): array<string, mixed>|array<string, mixed>> */
|
||||
protected array $states = [];
|
||||
|
||||
public function __construct(
|
||||
protected string $connection
|
||||
) {
|
||||
}
|
||||
|
||||
public static function new(string $connection): static
|
||||
{
|
||||
return new static($connection);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param callable(array<string, mixed>): array<string, mixed>|array<string, mixed> $state
|
||||
*/
|
||||
public function state(callable | array $state): static
|
||||
{
|
||||
$clone = clone $this;
|
||||
$clone->states[] = $state;
|
||||
|
||||
return $clone;
|
||||
}
|
||||
|
||||
/**
|
||||
* Génère le tableau de données avec les states et surcharges appliqués.
|
||||
*
|
||||
* @param array<string, mixed> $attributes
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function raw(array $attributes = []): array
|
||||
{
|
||||
$data = $this->definition();
|
||||
|
||||
foreach ($this->states as $state) {
|
||||
$stateData = is_callable($state) ? $state($data) : $state;
|
||||
$data = array_merge($data, $stateData);
|
||||
}
|
||||
|
||||
return array_merge($data, $attributes);
|
||||
}
|
||||
|
||||
/**
|
||||
* Insère un enregistrement dans la base Oracle répliquée et retourne le tableau inséré.
|
||||
*
|
||||
* @param array<string, mixed> $attributes
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function create(array $attributes = []): array
|
||||
{
|
||||
$data = $this->raw($attributes);
|
||||
$tableName = static::table()::name();
|
||||
|
||||
DB::connection($this->connection)
|
||||
->table($tableName)
|
||||
->insert($data);
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
/**
|
||||
* Insère N enregistrements dans la table.
|
||||
*
|
||||
* @param array<string, mixed> $attributes
|
||||
* @return list<array<string, mixed>>
|
||||
*/
|
||||
public function createMany(int $count, array $attributes = []): array
|
||||
{
|
||||
$rows = [];
|
||||
|
||||
for ($i = 0; $i < $count; $i++) {
|
||||
$rows[] = $this->create($attributes);
|
||||
}
|
||||
|
||||
return $rows;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,54 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Database\ArcadiaReplicate\Factories\Metap;
|
||||
|
||||
use Database\ArcadiaReplicate\Factories\AbstractTableFactory;
|
||||
use Database\ArcadiaReplicate\Tables\Metap\MetaUtilTable;
|
||||
|
||||
final class MetaUtilFactory extends AbstractTableFactory
|
||||
{
|
||||
public static function table(): string
|
||||
{
|
||||
return MetaUtilTable::class;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
$code = strtoupper(fake()->unique()->lexify('??????'));
|
||||
|
||||
return [
|
||||
'COD_UTIL' => $code,
|
||||
'LIB_UTIL' => fake()->name(),
|
||||
'UVERSION' => 1,
|
||||
'EMAIL' => fake()->unique()->safeEmail(),
|
||||
'COD_LANGUE' => 1,
|
||||
'COD_SOCIETE' => 1,
|
||||
'GROUPE' => 1,
|
||||
'CONNEXION_AUTORISEE' => 1,
|
||||
'NUM_SERV' => 10,
|
||||
'NIVEAU' => 1,
|
||||
'NB_SESSION' => 1,
|
||||
'IS_PERS_EXT' => 0,
|
||||
'COD_SUPERIEUR' => null,
|
||||
'COD_STATUT' => 1,
|
||||
'IS_CHEF_PROJET_RD' => 0,
|
||||
'IS_CQ' => 0,
|
||||
'IS_ACHETEUR_ECHANTILLON' => 0,
|
||||
'COD_PERSONNE' => $code,
|
||||
'VISU_FONCTION' => 'O',
|
||||
'COORD_ENV' => 1,
|
||||
'ENVOI_LDAP' => 1,
|
||||
'DAT_CRE' => now()->toDateString(),
|
||||
'DAT_MAJ' => now()->toDateString(),
|
||||
'DATE_DER_CONN' => now()->toDateString(),
|
||||
'GESTION_TT_SOC' => 1,
|
||||
'GESTION_TT_SIT' => 1,
|
||||
'MDP' => 'secret',
|
||||
];
|
||||
}
|
||||
}
|
||||
39
database/arcadia-replicate/Factories/Refp/AdditifFactory.php
Normal file
39
database/arcadia-replicate/Factories/Refp/AdditifFactory.php
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Database\ArcadiaReplicate\Factories\Refp;
|
||||
|
||||
use Database\ArcadiaReplicate\Factories\AbstractTableFactory;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\AdditifTable;
|
||||
|
||||
final class AdditifFactory extends AbstractTableFactory
|
||||
{
|
||||
public static function table(): string
|
||||
{
|
||||
return AdditifTable::class;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
$code = 'E' . fake()->unique()->numberBetween(100, 999);
|
||||
|
||||
return [
|
||||
'COD_EUROPEEN' => $code,
|
||||
'MOLECULE' => fake()->word(),
|
||||
'CARAC_GEN' => fake()->sentence(),
|
||||
'RISQUE' => fake()->numberBetween(0, 3),
|
||||
'COMMENTAIRE' => null,
|
||||
'FONCTION' => 'Conservateur',
|
||||
'UVERSION' => 1,
|
||||
'DAT_CRE' => now()->toDateString(),
|
||||
'DAT_MAJ' => now()->toDateString(),
|
||||
'BLACKLIST_LDC' => 0,
|
||||
'VARIANTE' => null,
|
||||
'CHAINE_EXCLUS' => null,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Database\ArcadiaReplicate\Factories\Refp;
|
||||
|
||||
use Database\ArcadiaReplicate\Factories\AbstractTableFactory;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\FamVenteTable;
|
||||
|
||||
final class FamVenteFactory extends AbstractTableFactory
|
||||
{
|
||||
public static function table(): string
|
||||
{
|
||||
return FamVenteTable::class;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'COD_FAMVTE' => fake()->unique()->numberBetween(1, 999),
|
||||
'LIB_FAMVTE' => fake()->randomElement([
|
||||
'VOLAILLE CRUE',
|
||||
'VOLAILLE ELABOREE',
|
||||
'TRAITEUR FRAIS',
|
||||
'CHARCUTERIE',
|
||||
]),
|
||||
'COD_FAMGEST' => 1,
|
||||
'NO_ORDRE' => 1,
|
||||
'TOT' => 1,
|
||||
'EXCLUSION_STAT' => 0,
|
||||
'COD_FAMRGPT' => 1,
|
||||
'EXCLU_TRANSP' => 0,
|
||||
'COD_FAMCOMPTA' => 1,
|
||||
'UVERSION' => 1,
|
||||
'COD_TVA' => 1,
|
||||
'UTILISABLE' => 1,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Database\ArcadiaReplicate\Factories\Refp;
|
||||
|
||||
use Database\ArcadiaReplicate\Factories\AbstractTableFactory;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\IncoAllegationsTable;
|
||||
|
||||
final class IncoAllegationsFactory extends AbstractTableFactory
|
||||
{
|
||||
public static function table(): string
|
||||
{
|
||||
return IncoAllegationsTable::class;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'CODE' => fake()->unique()->numberBetween(1, 9999),
|
||||
'LIBELLE' => fake()->randomElement([
|
||||
'Riche en protéines',
|
||||
'Sans conservateur',
|
||||
'Faible en matières grasses',
|
||||
'100% origine France',
|
||||
]),
|
||||
'UVERSION' => 1,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Database\ArcadiaReplicate\Factories\Refp;
|
||||
|
||||
use Database\ArcadiaReplicate\Factories\AbstractTableFactory;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\IncoAllergeneTable;
|
||||
|
||||
final class IncoAllergeneFactory extends AbstractTableFactory
|
||||
{
|
||||
public static function table(): string
|
||||
{
|
||||
return IncoAllergeneTable::class;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'ID' => fake()->unique()->numberBetween(1, 9999),
|
||||
'LIB' => fake()->randomElement([
|
||||
'Gluten',
|
||||
'Lait',
|
||||
'Œufs',
|
||||
'Arachides',
|
||||
'Soja',
|
||||
'Fruits à coque',
|
||||
'Moutarde',
|
||||
'Graines de sésame',
|
||||
]),
|
||||
'UVERSION' => 1,
|
||||
];
|
||||
}
|
||||
}
|
||||
121
database/arcadia-replicate/Factories/Refp/IncoCompoFactory.php
Normal file
121
database/arcadia-replicate/Factories/Refp/IncoCompoFactory.php
Normal file
|
|
@ -0,0 +1,121 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Database\ArcadiaReplicate\Factories\Refp;
|
||||
|
||||
use Database\ArcadiaReplicate\Factories\AbstractTableFactory;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\IncoCompoTable;
|
||||
|
||||
final class IncoCompoFactory extends AbstractTableFactory
|
||||
{
|
||||
public static function table(): string
|
||||
{
|
||||
return IncoCompoTable::class;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
$id = fake()->unique()->numberBetween(10000, 99999);
|
||||
|
||||
return [
|
||||
'ID' => $id,
|
||||
'ID_INCO' => $id,
|
||||
'NUMERO' => (string) $id,
|
||||
'NOM' => 'BQ 2 STEAKS DINDE S/ATM LG OCB',
|
||||
'UVERSION' => 1,
|
||||
'TAILLE_REF' => 100.0,
|
||||
'VAL_ENERG_KJ_R' => 522,
|
||||
'VAL_ENERG_KCAL_R' => 124,
|
||||
'MAT_GRASS_R' => 4.6,
|
||||
'AGS_R' => 1.5,
|
||||
'GLUCIDES_R' => 0.7,
|
||||
'SUCRE_R' => 0.0,
|
||||
'FIB_ALIM_R' => 0.0,
|
||||
'PROTEINE_R' => 20.0,
|
||||
'SEL_R' => 0.18,
|
||||
'TAILLE_PORT' => 100.0,
|
||||
'VAL_ENERG_KJ_P' => 522,
|
||||
'VAL_ENERG_KCAL_P' => 124,
|
||||
'MAT_GRASS_P' => 4.6,
|
||||
'AGS_P' => 1.5,
|
||||
'GLUCIDES_P' => 0.7,
|
||||
'SUCRE_P' => 0.0,
|
||||
'FIB_ALIM_P' => 0.0,
|
||||
'PROTEINE_P' => 20.0,
|
||||
'SEL_P' => 0.18,
|
||||
'POURCENT_APPORT_REF_E14_P' => 6.0,
|
||||
'POURCENT_APPORT_REF_KJO_P' => 6.0,
|
||||
'POURCENT_APPORT_REF_FAT_P' => 7.0,
|
||||
'POURCENT_APPORT_REF_FATSAT_P' => 8.0,
|
||||
'POURCENT_APPORT_REF_CHOVAL_P' => 0.0,
|
||||
'POURCENT_APPORT_REF_SUGAR_P' => 0.0,
|
||||
'POURCENT_APPORT_REF_PRO_P' => 40.0,
|
||||
'POURCENT_APPORT_REF_SALTEQ_P' => 3.0,
|
||||
'APPORT_PORT' => 'Apport de référence pour un adulte type (8400Kj-2000Kcal)',
|
||||
'MAT_GRASS_R_PREC' => null,
|
||||
'AGS_R_PREC' => null,
|
||||
'GLUCIDES_R_PREC' => null,
|
||||
'SUCRE_R_PREC' => null,
|
||||
'FIB_ALIM_R_PREC' => null,
|
||||
'PROTEINE_R_PREC' => null,
|
||||
'SEL_R_PREC' => null,
|
||||
'P_SUR_L' => '4.35',
|
||||
'COMPOSANTE_P' => 5,
|
||||
'COMPOSANTE_N' => 2,
|
||||
'FRUITS_R' => 0.0,
|
||||
'SODIUM_P' => 0.07,
|
||||
'SODIUM_R' => 0.07,
|
||||
'SCORE_NUTRI' => -3,
|
||||
'CLASSEMENT' => 'A',
|
||||
'FRUITS_COQUE_SECH_R' => 0.0,
|
||||
'POURCENT_FRUITS' => 0.0,
|
||||
'SOURCE' => 1,
|
||||
'SCORE_NUTRI_2022' => -5,
|
||||
'NUTRI_SCORE_2022' => 'A',
|
||||
'FNL_FRAIS' => 0.0,
|
||||
'VIANDE_ROUGE' => 0,
|
||||
'POURCENT_FNL_FRAIS' => 0.0,
|
||||
];
|
||||
}
|
||||
|
||||
public function steaksDinde(): self
|
||||
{
|
||||
return $this->state([
|
||||
'ID' => 96504,
|
||||
'ID_INCO' => 47789,
|
||||
'NOM' => 'BQ 2 STEAKS DINDE S/ATM LG OCB',
|
||||
'VAL_ENERG_KJ_R' => 522,
|
||||
'VAL_ENERG_KCAL_R' => 124,
|
||||
'MAT_GRASS_R' => 4.6,
|
||||
'AGS_R' => 1.5,
|
||||
'GLUCIDES_R' => 0.7,
|
||||
'SUCRE_R' => 0.0,
|
||||
'PROTEINE_R' => 20.0,
|
||||
'SEL_R' => 0.18,
|
||||
'NUTRI_SCORE_2022' => 'A',
|
||||
]);
|
||||
}
|
||||
|
||||
public function pouletFermierNoir(): self
|
||||
{
|
||||
return $this->state([
|
||||
'ID' => 124503,
|
||||
'ID_INCO' => 47996,
|
||||
'NOM' => 'POULET FERMIER NOIR',
|
||||
'VAL_ENERG_KJ_R' => 623,
|
||||
'VAL_ENERG_KCAL_R' => 149,
|
||||
'MAT_GRASS_R' => 7.2,
|
||||
'AGS_R' => 2.0,
|
||||
'GLUCIDES_R' => 0.0,
|
||||
'SUCRE_R' => 0.0,
|
||||
'PROTEINE_R' => 21.0,
|
||||
'SEL_R' => 0.16,
|
||||
'P_SUR_L' => '2.92',
|
||||
'NUTRI_SCORE_2022' => 'A',
|
||||
]);
|
||||
}
|
||||
}
|
||||
113
database/arcadia-replicate/Factories/Refp/IncoFactory.php
Normal file
113
database/arcadia-replicate/Factories/Refp/IncoFactory.php
Normal file
|
|
@ -0,0 +1,113 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Database\ArcadiaReplicate\Factories\Refp;
|
||||
|
||||
use Database\ArcadiaReplicate\Factories\AbstractTableFactory;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\IncoTable;
|
||||
|
||||
final class IncoFactory extends AbstractTableFactory
|
||||
{
|
||||
public static function table(): string
|
||||
{
|
||||
return IncoTable::class;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
$noArt = fake()->unique()->numberBetween(10000, 99999);
|
||||
|
||||
return [
|
||||
'NO_ART' => $noArt,
|
||||
'DENOM_LEG' => 'Viande de poulet traitée en salaison, panée et cuite',
|
||||
'DESCRIPTIF' => 'De la volaille délicatement panée en format nuggets pour '
|
||||
. 'apprécier pleinement la saveur de la viande.',
|
||||
'ASTUCES' => 'Pour plus de croustillance, cuisson au Air Fryer pendant 6 minutes à 200°C.',
|
||||
'CONSEIL_PREPA' => 'Au four chaud pendant 10 minutes à 210°C (th. 7) '
|
||||
. 'ou à la poêle pendant 10 minutes sans ajout de matière grasse.',
|
||||
'ARG_VENTE' => 'Une volaille 100% française, du blé 100% français '
|
||||
. 'et une recette sans conservateur et sans colorant.',
|
||||
'ALLEGATIONS' => 'sans conservateur, sans huile de palme',
|
||||
'ALLEGAT_SANTE' => null,
|
||||
'ALLEGAT_NUTRIT' => null,
|
||||
'LST_ING' => 'Viande de poulet traitée en salaison : 70% (viande de poulet : 51%, eau, '
|
||||
. 'farine de BLÉ, fibre de BLÉ, sel, arômes naturels), '
|
||||
. 'panure : 30% (farine de BLÉ, eau, sel, levure, épices). '
|
||||
. 'Huile de tournesol. Peut contenir des traces de lait.',
|
||||
'NB_PORTION' => '10',
|
||||
'LST_ALLERGENE' => '3,10',
|
||||
'NUTRISCORE_ON_PACK' => 'B',
|
||||
'PDS_NET_UVC' => 200.0,
|
||||
'PDS_BRUT_UVC' => 211.0,
|
||||
'CONDIT_CONSERV' => 'A conserver entre 0°C et +4°C',
|
||||
'LST_ADDITIF' => null,
|
||||
'PROD_SAISON' => 0,
|
||||
'REF_COMPO' => null,
|
||||
'EXPLOITANT' => 1,
|
||||
'PMC' => 2.33,
|
||||
'ACTIVE' => 1,
|
||||
'UVERSION' => 1,
|
||||
'DAT_CRE' => '2024-01-15',
|
||||
'DAT_MAJ' => '2024-06-20',
|
||||
];
|
||||
}
|
||||
|
||||
public function withCompo(int $compoId): self
|
||||
{
|
||||
return $this->state([
|
||||
'REF_COMPO' => $compoId,
|
||||
]);
|
||||
}
|
||||
|
||||
public function nuggetsPoulet(): self
|
||||
{
|
||||
return $this->state([
|
||||
'NO_ART' => 47789,
|
||||
'DENOM_LEG' => 'Viande de poulet traitée en salaison, panée et cuite',
|
||||
'DESCRIPTIF' => 'Nuggets de poulet du volailler LE GAULOIS',
|
||||
'LST_ING' => 'Viande de poulet traitée en salaison : 70% (viande de poulet : 51%, eau, '
|
||||
. 'farine de BLÉ, fibre de BLÉ, sel, arômes naturels), '
|
||||
. 'panure : 30% (farine de BLÉ, eau, sel, levure, épices). Huile de tournesol.',
|
||||
'NB_PORTION' => '10',
|
||||
'PDS_NET_UVC' => 200.0,
|
||||
'PDS_BRUT_UVC' => 211.0,
|
||||
'NUTRISCORE_ON_PACK' => 'B',
|
||||
]);
|
||||
}
|
||||
|
||||
public function pouletFermierLoue(): self
|
||||
{
|
||||
return $this->state([
|
||||
'NO_ART' => 4,
|
||||
'DENOM_LEG' => 'Poulet fermier blanc label rouge',
|
||||
'DESCRIPTIF' => 'Poulet fermier de Loué Label Rouge élevé en liberté pendant 84 jours minimum.',
|
||||
'CONSEIL_PREPA' => 'A consommer cuit à cœur. Préchauffer le four à 200°C, enfourner pendant 1h30.',
|
||||
'LST_ING' => 'Poulet éviscéré sans abats, bridé avec tarses coupés à la jointure (100% poulet).',
|
||||
'NB_PORTION' => '4/5',
|
||||
'PDS_NET_UVC' => 1400.0,
|
||||
'PDS_BRUT_UVC' => 1411.0,
|
||||
'NUTRISCORE_ON_PACK' => 'A',
|
||||
]);
|
||||
}
|
||||
|
||||
public function gesiersEtFoies(): self
|
||||
{
|
||||
return $this->state([
|
||||
'NO_ART' => 47996,
|
||||
'DENOM_LEG' => 'Gésiers et foies de volaille traités en salaison, confits dans la graisse',
|
||||
'DESCRIPTIF' => 'Assortiment de gésiers et de foies confits à réchauffer en 10 minutes.',
|
||||
'CONSEIL_PREPA' => '10 minutes à la poêle pour des salades variées et gourmandes.',
|
||||
'LST_ING' => 'Gésiers de poulet et de dinde (82%), graisse de canard (6%), sel, arômes naturels, '
|
||||
. 'nitrite de sodium. Foies de poulet (89%), graisse de canard (6%), sel, romarin.',
|
||||
'NB_PORTION' => '3/4',
|
||||
'PDS_NET_UVC' => 300.0,
|
||||
'PDS_BRUT_UVC' => 347.0,
|
||||
'NUTRISCORE_ON_PACK' => 'B',
|
||||
'LST_ADDITIF' => 'E316,E392,E250',
|
||||
]);
|
||||
}
|
||||
}
|
||||
56
database/arcadia-replicate/Factories/Refp/MarqueFactory.php
Normal file
56
database/arcadia-replicate/Factories/Refp/MarqueFactory.php
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Database\ArcadiaReplicate\Factories\Refp;
|
||||
|
||||
use Database\ArcadiaReplicate\Factories\AbstractTableFactory;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\MarqueTable;
|
||||
|
||||
final class MarqueFactory extends AbstractTableFactory
|
||||
{
|
||||
public static function table(): string
|
||||
{
|
||||
return MarqueTable::class;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
$code = fake()->unique()->numberBetween(100, 999);
|
||||
$brand = fake()->randomElement(['LE GAULOIS', 'LOUE', 'MARIE', 'ID HALAL', 'POPROSTU', 'ALPEKER', 'AQUILA']);
|
||||
|
||||
return [
|
||||
'COD_MARQ' => $code,
|
||||
'LIB_MARQ' => $brand,
|
||||
'COD_RGPT_MARQ' => 3,
|
||||
'COMMENTAIRE' => 'Marque du groupe LDC',
|
||||
'NO_ORDRE' => $code,
|
||||
'UVERSION' => 1,
|
||||
'TYPE_MARQUE' => 1,
|
||||
'SOCIETE' => 25,
|
||||
'ECO_EMBALLAGE' => 1,
|
||||
'INDIC_TRACA_SANS_INTERNET' => 0,
|
||||
'UVERSION_PUB' => 1,
|
||||
'MARQUE_PROPRE' => 1,
|
||||
'IS_ANALYSEPC' => 0,
|
||||
'IS_BOI' => 0,
|
||||
'GLN_SOC' => 3012345678901,
|
||||
'A_EPURER' => 0,
|
||||
'UTILISABLE' => 1,
|
||||
'DATE_CREATION' => now()->toDateString(),
|
||||
'MARQUE_GEREE_SPEC' => 0,
|
||||
'NUTRISCORE' => 1,
|
||||
'IS_PASSERELLE' => 0,
|
||||
'TYPE_MARQUE_STATS' => 4,
|
||||
'RGPT_STATS' => $code,
|
||||
'COD_REF_SITE_PSRL' => null,
|
||||
'PSRL_RGPT' => null,
|
||||
'IS_CHARTE_NUTRI' => 1,
|
||||
'IS_MARQ_ENGAGEE_NS' => 1,
|
||||
'ENVOI_MAGELLAN' => 0,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,68 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Database\ArcadiaReplicate\Factories\Refp;
|
||||
|
||||
use Database\ArcadiaReplicate\Factories\AbstractTableFactory;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\RuPersonneSirhTable;
|
||||
|
||||
final class RuPersonneSirhFactory extends AbstractTableFactory
|
||||
{
|
||||
public static function table(): string
|
||||
{
|
||||
return RuPersonneSirhTable::class;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
$matricule = (string) fake()->unique()->numberBetween(1000000, 9999999);
|
||||
$lastName = strtoupper(fake()->lastName());
|
||||
$firstName = fake()->firstName();
|
||||
$site = fake()->randomElement(['AVIGNO', 'SNVSER', 'EPC', 'LDCVOL', 'SNVVOL', 'LDCSER']);
|
||||
$etab = fake()->randomElement(['ET29A', 'ET11G', 'ET15', 'ET50', 'ET11E', '01']);
|
||||
$statut = fake()->randomElement(['OUV', 'AMT', 'CAD']);
|
||||
|
||||
return [
|
||||
'MATRICULE_FIC' => $matricule,
|
||||
'COD_PERSONNE' => $matricule,
|
||||
'COD_SOC_GRP' => 40,
|
||||
'COD_SIT_GRP' => 43,
|
||||
'NOM_FIC' => $lastName,
|
||||
'COD_UNITE_PROD' => 1,
|
||||
'NOM_PERSONNE' => $lastName,
|
||||
'PRENOM_FIC' => $firstName,
|
||||
'DATE_DEB_FIC' => '2024-01-15',
|
||||
'PRENOM_PERSONNE' => $firstName,
|
||||
'COD_SOCIETE' => 1,
|
||||
'DATE_FIN_FIC' => null,
|
||||
'SOC_FIC' => 'S29',
|
||||
'NUM_SERV' => 3,
|
||||
'COD_INTRA_FIC' => null,
|
||||
'ETAB_FIC' => $etab,
|
||||
'DATE_EFFET_FIC' => '2024-01-15',
|
||||
'COD_STATUT' => 1,
|
||||
'SERVICE_FIC' => '25',
|
||||
'SITE_FIC' => $site,
|
||||
'TYP_CONTRAT_FIC' => 'CDI',
|
||||
'STATUT_FIC' => $statut,
|
||||
'DF_CARRIERE' => null,
|
||||
'ETABLISSEMENT' => $etab,
|
||||
'DATE_ENTREE' => '2024-01-15',
|
||||
'UVERSION' => 1,
|
||||
'MATRICULE_RESP_HIERAR' => null,
|
||||
'SECT_ANALYTIQUE' => null,
|
||||
'MUTATION_DEP' => 0,
|
||||
'MUTATION_ARR' => 0,
|
||||
'SITE_PRECEDENT' => null,
|
||||
'SERVICE_PRECEDENT' => null,
|
||||
'DAT_MAJ' => now()->toDateTimeString(),
|
||||
'DAT_CRE' => now()->toDateTimeString(),
|
||||
'SUPPRESSION_FORCEE' => 0,
|
||||
'DATE_PRESENCE_FICHIER' => now()->toDateString(),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Database\ArcadiaReplicate\Factories\Refp;
|
||||
|
||||
use Database\ArcadiaReplicate\Factories\AbstractTableFactory;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\ServiceConsoIncoTable;
|
||||
|
||||
final class ServiceConsoIncoFactory extends AbstractTableFactory
|
||||
{
|
||||
public static function table(): string
|
||||
{
|
||||
return ServiceConsoIncoTable::class;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
$id = fake()->unique()->numberBetween(1, 999);
|
||||
|
||||
return [
|
||||
'ID' => $id,
|
||||
'NOM' => 'Service clients - Groupe Auchan',
|
||||
'ADRESSE1' => 'BP 682',
|
||||
'ADRESSE2' => null,
|
||||
'CP' => '59650',
|
||||
'VILLE' => 'Villeneuve d\'Ascq',
|
||||
'TELEPHONE' => '03.59.30.59.30',
|
||||
'MAIL' => 'service.conso@auchan.fr',
|
||||
'FAX' => null,
|
||||
'MARQUE' => 210,
|
||||
'UVERSION' => 1,
|
||||
'LIB' => 'Service conso Pouce Auchan',
|
||||
'SITE_INT' => 'www.auchan.fr',
|
||||
];
|
||||
}
|
||||
}
|
||||
22
database/arcadia-replicate/Factories/TableFactory.php
Normal file
22
database/arcadia-replicate/Factories/TableFactory.php
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Database\ArcadiaReplicate\Factories;
|
||||
|
||||
interface TableFactory
|
||||
{
|
||||
/**
|
||||
* Class table name for the factory.
|
||||
*
|
||||
* @return class-string<\Database\ArcadiaReplicate\TableOrView>
|
||||
*/
|
||||
public static function table(): string;
|
||||
|
||||
/**
|
||||
* Definition for the table factory.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array;
|
||||
}
|
||||
162
database/arcadia-replicate/Migrator.php
Normal file
162
database/arcadia-replicate/Migrator.php
Normal file
|
|
@ -0,0 +1,162 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Database\ArcadiaReplicate;
|
||||
|
||||
use Database\ArcadiaReplicate\Tables\Metap\MetaUtilTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\AdditifTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\ArticleAssoProduitsTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\ArticleRefTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\ArtRayonTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\AssoCommunesCpTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\AssoIncoZoneVersioCcialTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\AssoIncoZoneVersioMktTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\AssoIncoZoneVersioQualTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\CalibreOeufsTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\FamRgptTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\FamVenteTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\GroupementQualTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\IncoAllegationsTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\IncoAllergeneTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\IncoAssoAllergeneTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\IncoAssoTraceTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\IncoBriqueGpcTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\IncoCompoTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\IncoDoaTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\IncoInterprofessionTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\IncoNeaTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\IncoOrigininfoTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\IncoSitProdTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\IncoSuiviEnvoiTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\IncoTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\IncoVersionTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\InseeCommunesTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\MarqueTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\MediaAssoArticleTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\MutTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\NdpTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\OrgCertifTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\PaletteIncoTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\RuPersonneSirhTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\ServiceConsoIncoTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\SiteProdGrpTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\SocieteInvTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\SousFamTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\TypeConditTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\TypeConservationTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\TypEmbTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\UtilisableTable;
|
||||
use Database\ArcadiaReplicate\Views\Gcp\DunIncoInfView;
|
||||
use Database\ArcadiaReplicate\Views\Gcp\IncoLangView;
|
||||
use Database\ArcadiaReplicate\Views\Gcp\VIncoArtSiteView;
|
||||
use Database\ArcadiaReplicate\Views\Refp\ArticleRefGencodView;
|
||||
use Database\ArcadiaReplicate\Views\Refp\DunIncoNosocView;
|
||||
use Database\ArcadiaReplicate\Views\Refp\DunIncoView;
|
||||
use Database\ArcadiaReplicate\Views\Refp\EpurerFamVenteView;
|
||||
use Database\ArcadiaReplicate\Views\Refp\IncoArticleView;
|
||||
use Database\ArcadiaReplicate\Views\Refp\IncoCompoNutriscoreView;
|
||||
use Database\ArcadiaReplicate\Views\Refp\IncoSocRefIncoView;
|
||||
use Database\ArcadiaReplicate\Views\Refp\SitProdIncoView;
|
||||
use Database\ArcadiaReplicate\Views\Refp\SocDlcIncoView;
|
||||
use Database\ArcadiaReplicate\Views\Refp\VisuelExportGenfiView;
|
||||
use Illuminate\Support\Facades\Config;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
final class Migrator
|
||||
{
|
||||
/** @var list<class-string<TableOrView>> */
|
||||
public const DEFINITIONS = [
|
||||
DunIncoInfView::class,
|
||||
IncoLangView::class,
|
||||
VIncoArtSiteView::class,
|
||||
MetaUtilTable::class,
|
||||
ArticleRefTable::class,
|
||||
AssoIncoZoneVersioCcialTable::class,
|
||||
AssoIncoZoneVersioMktTable::class,
|
||||
AssoIncoZoneVersioQualTable::class,
|
||||
IncoTable::class,
|
||||
IncoCompoTable::class,
|
||||
IncoOrigininfoTable::class,
|
||||
IncoVersionTable::class,
|
||||
RuPersonneSirhTable::class,
|
||||
AdditifTable::class,
|
||||
ArticleAssoProduitsTable::class,
|
||||
ArticleRefGencodView::class,
|
||||
ArtRayonTable::class,
|
||||
AssoCommunesCpTable::class,
|
||||
CalibreOeufsTable::class,
|
||||
DunIncoView::class,
|
||||
DunIncoNosocView::class,
|
||||
EpurerFamVenteView::class,
|
||||
FamRgptTable::class,
|
||||
FamVenteTable::class,
|
||||
GroupementQualTable::class,
|
||||
IncoAllegationsTable::class,
|
||||
IncoAllergeneTable::class,
|
||||
IncoArticleView::class,
|
||||
IncoAssoAllergeneTable::class,
|
||||
IncoAssoTraceTable::class,
|
||||
IncoBriqueGpcTable::class,
|
||||
IncoCompoNutriscoreView::class,
|
||||
IncoDoaTable::class,
|
||||
IncoInterprofessionTable::class,
|
||||
IncoNeaTable::class,
|
||||
IncoSitProdTable::class,
|
||||
IncoSocRefIncoView::class,
|
||||
IncoSuiviEnvoiTable::class,
|
||||
InseeCommunesTable::class,
|
||||
MarqueTable::class,
|
||||
MediaAssoArticleTable::class,
|
||||
MutTable::class,
|
||||
NdpTable::class,
|
||||
OrgCertifTable::class,
|
||||
PaletteIncoTable::class,
|
||||
ServiceConsoIncoTable::class,
|
||||
SiteProdGrpTable::class,
|
||||
SitProdIncoView::class,
|
||||
SocDlcIncoView::class,
|
||||
SocieteInvTable::class,
|
||||
SousFamTable::class,
|
||||
TypeConditTable::class,
|
||||
TypeConservationTable::class,
|
||||
TypEmbTable::class,
|
||||
UtilisableTable::class,
|
||||
VisuelExportGenfiView::class,
|
||||
];
|
||||
|
||||
private string $connection;
|
||||
|
||||
public function __construct(?string $connection = null)
|
||||
{
|
||||
$this->connection = $connection ?? Config::string('database.arcadia_meta_model');
|
||||
}
|
||||
|
||||
public function up(): void
|
||||
{
|
||||
$schema = Schema::connection($this->connection);
|
||||
|
||||
foreach (self::DEFINITIONS as $definition) {
|
||||
$definition::up($schema);
|
||||
}
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
$schema = Schema::connection($this->connection);
|
||||
|
||||
foreach (array_reverse(self::DEFINITIONS) as $definition) {
|
||||
$definition::down($schema);
|
||||
}
|
||||
}
|
||||
|
||||
public static function runUp(?string $connection = null): void
|
||||
{
|
||||
(new self($connection))->up();
|
||||
}
|
||||
|
||||
public static function runDown(?string $connection = null): void
|
||||
{
|
||||
(new self($connection))->down();
|
||||
}
|
||||
}
|
||||
40
database/arcadia-replicate/TableOrView.php
Normal file
40
database/arcadia-replicate/TableOrView.php
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Database\ArcadiaReplicate;
|
||||
|
||||
use Illuminate\Database\Schema\Builder;
|
||||
|
||||
interface TableOrView
|
||||
{
|
||||
/**
|
||||
* Nom du schéma propriétaire Oracle (ex: 'REFP', 'METAP', 'GCP').
|
||||
*/
|
||||
public static function schemaName(): string;
|
||||
|
||||
/**
|
||||
* Nom physique de la table ou vue (ex: 'INCO', 'INCO_COMPO', 'META_UTIL').
|
||||
*/
|
||||
public static function name(): string;
|
||||
|
||||
/**
|
||||
* Indique s'il s'agit d'une vue ou d'une table réelle.
|
||||
*/
|
||||
public static function isView(): bool;
|
||||
|
||||
/**
|
||||
* Description métier du rôle de l'objet dans le SI Arcadia.
|
||||
*/
|
||||
public static function description(): string;
|
||||
|
||||
/**
|
||||
* Création de la structure miroir (colonnes, clés, types et commentaires).
|
||||
*/
|
||||
public static function up(Builder $schema): void;
|
||||
|
||||
/**
|
||||
* Suppression de la table ou vue.
|
||||
*/
|
||||
public static function down(Builder $schema): void;
|
||||
}
|
||||
79
database/arcadia-replicate/Tables/Metap/MetaUtilTable.php
Normal file
79
database/arcadia-replicate/Tables/Metap/MetaUtilTable.php
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Database\ArcadiaReplicate\Tables\Metap;
|
||||
|
||||
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
|
||||
{
|
||||
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::name());
|
||||
}
|
||||
|
||||
$schema->create(self::name(), 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::name());
|
||||
}
|
||||
}
|
||||
64
database/arcadia-replicate/Tables/Refp/AdditifTable.php
Normal file
64
database/arcadia-replicate/Tables/Refp/AdditifTable.php
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
<?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.ADDITIF
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour ADDITIF
|
||||
*/
|
||||
final class AdditifTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'ADDITIF';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.ADDITIF 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->string('COD_EUROPEEN', 40)->primary()->comment('Oracle: VARCHAR2(0, 0) [PK]');
|
||||
$table->text('MOLECULE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('CARAC_GEN')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->smallInteger('RISQUE')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->text('COMMENTAIRE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('FONCTION')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->unsignedBigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->date('DAT_CRE')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->date('DAT_MAJ')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->boolean('BLACKLIST_LDC')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->text('VARIANTE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('CHAINE_EXCLUS')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
57
database/arcadia-replicate/Tables/Refp/ArtRayonTable.php
Normal file
57
database/arcadia-replicate/Tables/Refp/ArtRayonTable.php
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
<?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.ART_RAYON
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour ART_RAYON
|
||||
*/
|
||||
final class ArtRayonTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'ART_RAYON';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.ART_RAYON 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->smallInteger('COD_RAYON')->primary()->comment('Oracle: NUMBER(3, 0) [PK]');
|
||||
$table->text('LIB_RAYON')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->date('DAT_CRE')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->date('DAT_MAJ')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->smallInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
<?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.ARTICLE_ASSO_PRODUITS
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour ARTICLE_ASSO_PRODUITS
|
||||
*/
|
||||
final class ArticleAssoProduitsTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'ARTICLE_ASSO_PRODUITS';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.ARTICLE_ASSO_PRODUITS 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->unsignedBigInteger('ID')->primary()->comment('Oracle: NUMBER(10, 0) [PK]');
|
||||
$table->smallInteger('CODE_SITE')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->unsignedBigInteger('NO_ART')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->unsignedBigInteger('CODE_PRODUIT')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->integer('CODE_SOCIETE')->nullable()->comment('Oracle: NUMBER(7, 0)');
|
||||
$table->string('SEM_CALCULE', 24)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->integer('UVERSION')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->string('VARIANTE', 64)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->smallInteger('SOURCE')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
462
database/arcadia-replicate/Tables/Refp/ArticleRefTable.php
Normal file
462
database/arcadia-replicate/Tables/Refp/ArticleRefTable.php
Normal file
|
|
@ -0,0 +1,462 @@
|
|||
<?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.ARTICLE_REF
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour ARTICLE_REF
|
||||
*/
|
||||
final class ArticleRefTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'ARTICLE_REF';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.ARTICLE_REF 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('NO_ART')->comment('Oracle: NUMBER(0, 0) [PK]');
|
||||
$table->string('LIB_CCIAL', 140)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->smallInteger('NO_SORTE')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->smallInteger('COD_FAMVTE')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->decimal('POIDS_MINI', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->decimal('POIDS_MAXI', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->decimal('PRIX_MATIERE', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->smallInteger('FRAIS_CONGELE')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->smallInteger('UNITE_CDE')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->string('COD_GENCOD_SYMB', 52)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->boolean('COD_COMPOSTAGE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->smallInteger('UNITE_FACT')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->smallInteger('COD_TVA')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->smallInteger('UTILISABLE_SITE')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->smallInteger('UTILISABLE_GROUPE')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->decimal('FRAIS', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->boolean('COD_POID_CST_UVC')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('COD_COURS_SEMAINE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->decimal('TARE', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->string('COD_GENCOD_ADM', 52)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->date('DATE_CREATION')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->decimal('PVC_MINI', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->decimal('COEFF_SORTE', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->integer('SPCB')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->bigInteger('COD_TYP_CONDIT_PRI')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('COD_TYP_CONDIT_PUB')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('COD_MARQUE')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('COD_FAMFAB')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('COD_CALIBRE')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->smallInteger('DLC_CCIAL')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->decimal('COD_POIDS_MINI_BARQ', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->decimal('POIDS_MOY_CALCULE', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->smallInteger('DUREE_VIE')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->boolean('GESTION_DLC')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('PROLOGATION_DLC')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('ECO_EMBALLAGE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('PREIMPR_GENCOD')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('ACH_EXT_HACHURAGE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->decimal('POIDS_CST_UVC', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->string('MATRICULE_CREATEUR', 36)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->boolean('GEST_PAYS_ORIGINE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('BON_FAB_ATELIER')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->bigInteger('COD_ART_ASSOCIE')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->smallInteger('COD_CIRCUIT')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->boolean('COLIS_POIDS_CST')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->text('COM_PRIVE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('COM_PUBLIC')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->date('DATE_OUV_SITE')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->date('DATE_FERM_GRP')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->date('DATE_FERM_SITE')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->date('DATE_REACT_INGRED')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->smallInteger('DTS')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->string('COD_GENCOD_POIDS', 52)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('LIB_COMPOSTAGE', 120)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('LIB_PRODUCTION', 140)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->decimal('PR_SANS_AGENCE_TPS', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->decimal('PV_CONSEILLE', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->smallInteger('SITE_PROD')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->bigInteger('COD_SOUSFAM')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('TYP_CALIBRE')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('COD_SOC')->comment('Oracle: NUMBER(0, 0) [PK]');
|
||||
$table->string('COD_NDP', 100)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->decimal('PRIX_CESSION', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->text('COD_ING')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->date('DATE_VALIDATION')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->decimal('POIDS_MAXI_BARQ', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->smallInteger('DLT')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->boolean('COTIS_CIFOG')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->decimal('NEG_PRIX_REVIENT', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->unsignedBigInteger('COD_FAMRIST')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->smallInteger('COD_ETIQ_ING')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->bigInteger('SITE_DISTRIB')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->decimal('POIDS_MINI_COLIS_CST', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->decimal('POIDS_MAXI_COLIS_CST', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->date('DATE_MAJ')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->bigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('UVERSION_PUB')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->string('ETAT', 8)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->decimal('PVC_PRIX_ROND', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->date('DATE_REACT_FOUR')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->string('GENCOD_SYMB_PRIV', 52)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('GENCOD_POIDS_PRIV', 52)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('GENCOD_ADMIN_PRIV', 52)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->decimal('VOL_PRODUIT', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->date('DATE_REACT_TARE')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->decimal('LONGUEUR_PRODUIT', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->decimal('LARGUEUR_PRODUIT', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->decimal('HAUTEUR_PRODUIT', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->boolean('CONT_ECO_RD')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->decimal('COUT_PRODUCTION', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->text('DESC_PRODUIT')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->smallInteger('TYPE_DEMANDE')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->string('CHEF_PRODUIT', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('NOM_CLIENT')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->integer('QUANTITE_ESTIME_HEBDO')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->date('DELAI_REPONSE_SOUHAITE')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->date('DATE_COM_PRODUIT')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->text('COLISAGE_SOUHAITE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->unsignedBigInteger('TARE_PRIVE')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->bigInteger('COD_ART_ASSO_COMP')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->boolean('IS_ING_PROD')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->bigInteger('NUM_RECETTE')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('NUM_ETUDE')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->string('ATELIER', 80)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('BLOCAGE_TV', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('PROP_COMPO_PROD')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->boolean('TAXE_INAO')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->decimal('COD_CONTRIB_EXCEP', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->bigInteger('EAN_REMPLACE')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('TYPE_IFLS')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->string('COD_IFLS', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->date('DJ_CDE')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->text('LIB_CAISSE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('COD_EANCOM', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('PAYS_FAB', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('LIEU_FONCTION_CDEA', 80)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->decimal('TMINI_STK', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->decimal('TMAXI_STK', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->date('DATE_MAJ_PRIVEE')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->boolean('SUIVI_MARKETING')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->string('COLISAGE', 80)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->boolean('BLOCTV_COL')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->date('DATE_MAJ_PR')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->decimal('POIDS_MOY_SAISI', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->string('ANCIEN_NO_ART', 80)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->unsignedBigInteger('CNUF')->nullable()->comment('Oracle: NUMBER(15, 0)');
|
||||
$table->smallInteger('CODE_TAXE')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->text('TYPE_CARTON')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->smallInteger('ART_COMISSIONNE')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->boolean('IS_STOCK')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->bigInteger('CALIBRE_DEF')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->string('POURCENTAGE_FRGPT', 80)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('LISTE_FAMRGPT', 80)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('ORDRE_REPERTOIRE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->boolean('IS_EXPORT')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('IS_SUIVI_STOCK_TV')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->bigInteger('NIVEAU_ELABORATION')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('GESTION_OEUF')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->boolean('SOUMIS_ECO_EMBALLAGE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('NB_ETIQUETTE_POPEC')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->smallInteger('NB_PIECE_BAC')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->string('COD_LIEU_STOCKAGE', 24)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->boolean('IS_POSTE_MANUEL')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('IS_POSTE_AUTO')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->integer('NB_BQ_COMP_MANUEL')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->integer('NB_BQ_COMP_AUTO')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->boolean('ACREG_TYPE_REF')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->integer('ACREG_GROUPE_UNITE')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->string('ACREG_MAQUETTE_UB', 64)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('ACREG_MAQUETTE_UEA', 64)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->boolean('ACREG_CHARCTRAIT')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->smallInteger('ACREG_GAMME_PROXI')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->boolean('ACREG_CALIBRE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->integer('ACREG_ARTICLE_ASSORT')->nullable()->comment('Oracle: NUMBER(6, 0)');
|
||||
$table->smallInteger('ACREG_CALIBRE_MIN')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->smallInteger('ACREG_CALIBRE_MAX')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->unsignedBigInteger('NIVEAU_ELABORATION_COMPTA')->nullable()->comment('Oracle: NUMBER(22, 0)');
|
||||
$table->unsignedBigInteger('ARTICLE_PRESTATION')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->smallInteger('POIDS_PORTION')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->smallInteger('NB_PORTION')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->unsignedBigInteger('ACREG_ART_RGPT_TARIF')->nullable()->comment('Oracle: NUMBER(30, 0)');
|
||||
$table->decimal('POURCENT_PORTION_COMESTIBLE', 5, 2)->nullable()->comment('Oracle: NUMBER(5, 2)');
|
||||
$table->unsignedBigInteger('ARTICLE_STOCK')->nullable()->comment('Oracle: NUMBER(22, 0)');
|
||||
$table->smallInteger('SEGMENTATION_SECONDAIRE')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->string('CHEF_PRODUIT_MKT', 36)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('LIB_CONSO')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->integer('COD_GAMME')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->integer('COD_RGPT_GAMME')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->text('MESSAGE_BL')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('MESSAGE_FACTURE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('REG_TYPREPA_LOT', 64)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('REG_TYPREPA_ACQUISITION', 64)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('REG_METH_PREPA', 64)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('REG_TYPREPA_UB', 64)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('REG_ROULEAU_UB', 64)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('REG_LIB_ETIQ_UB', 64)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('REG_ROULEAU_COLIS', 64)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->unsignedBigInteger('SITE_PROD_EE')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->smallInteger('UNITE_INDIVISIBLE')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->boolean('SAISIE_KILO_INTERDITE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('UE_AUTORISE_CDE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('IS_A_SUPPRIMER')->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->text('LISTE_LANGUES')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('LISTE_DES_ETRG')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->smallInteger('PCB_MINI')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->smallInteger('TYPE_UNITE_MAXIMUM')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->smallInteger('QTE_MAXIMUM_COMM')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->integer('CODE_PRODUIT')->nullable()->comment('Oracle: NUMBER(7, 0)');
|
||||
$table->integer('PCB_MAX')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->text('DUN14_MAX')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->integer('CODECARTON_MAX')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->string('COD_COMPOSITION', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('COD_RECH', 128)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('LISTE_FAMILLE_GAMME')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('LISTE_GAMME')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->unsignedBigInteger('ORDRE_CADENCIER')->nullable()->comment('Oracle: NUMBER(16, 0)');
|
||||
$table->text('LST_REG_FAM_GAM')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->decimal('CONTR_EE', 9, 6)->nullable()->comment('Oracle: NUMBER(9, 6)');
|
||||
$table->smallInteger('COD_FAM_BUDGET')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->smallInteger('COD_GAM_FAM_BUDGET')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->smallInteger('COD_GAM_COOP')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->smallInteger('COD_ENQUETE_INSEE')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->smallInteger('COD_FESTIF')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->smallInteger('COD_FAM_DECL_CA_CLIENT')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->smallInteger('KIT_BOX')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->smallInteger('GEST_STAT_KIT_BOX')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->smallInteger('MODE_TARIF_KIT_BOX')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->integer('STANDARD_D_AVANCE')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->integer('GERE_EN_PROD')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->integer('COD_PRODUIT_PCB_MAX')->nullable()->comment('Oracle: NUMBER(6, 0)');
|
||||
$table->string('COD_PROD_CLI', 80)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->smallInteger('UNITE_FACT_PRIVE')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->string('FABRICATION', 12)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->smallInteger('QTE_MIN_CDE')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->boolean('CONTROLE_STOCK_COMMANDE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->smallInteger('DELAI_PREPA_JOUR')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->text('LIBELLE_TARIF')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->unsignedBigInteger('SITE_REF_ECO_EMB')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->boolean('IS_HALLAL')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('ZV')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->text('ZV_1')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('ZV_2')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('ZV_3')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('ZV_4')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('ZV_5')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->boolean('A_EPURER')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->smallInteger('CLS_CAD_1')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->integer('CLS_CAD_2')->nullable()->comment('Oracle: NUMBER(6, 0)');
|
||||
$table->smallInteger('CLS_CAD_3')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->decimal('PRIX_PLAFOND', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->string('COD_NDP_SUISSE', 56)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->decimal('LONGUEUR_PRODUIT_PUB', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->decimal('LARGEUR_PRODUIT_PUB', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->decimal('HAUTEUR_PRODUIT_PUB', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->decimal('VOLUME_PRODUIT_PUB', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->smallInteger('COMPLEMENT_TARIF')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->string('COLISAGE_SPECIFIQUE', 80)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->unsignedBigInteger('COD_GENERIQUE_FM')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->smallInteger('UC')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->integer('COD_SOCIETE_RESP_PV')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->unsignedBigInteger('ORD_TRI_TARIF')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->smallInteger('COULEUR')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->boolean('IS_ARTICLE_CG')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->text('MESSAGE_BL_PUBLIC')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('MESSAGE_FACTURE_PUBLIC')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->integer('COD_MSG_ETQ_COLIS')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->integer('COD_MSG_ETQ_PIECE')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->decimal('PRIX_PLAFOND_BLOQUANT', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->boolean('ARTICLE_FICTIF')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->bigInteger('GENCOD_RGPT')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->string('CODE_MAQUETTE', 20)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->smallInteger('MODE_PRODUCTION')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->smallInteger('NB_JOURS_RRII')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->smallInteger('SAISIE_DLC_SORTIE_CALIBREUSE')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->smallInteger('TYPE_PRODUCTION')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->smallInteger('AFFICHAGE_CONSULTATION')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->smallInteger('DEPLACEMENT_BRAS_JET_ENCRE')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->smallInteger('CALIBRE_OEUFS')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->text('COD_SECTION_ANA_PRIV')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->integer('ACREG_COD_TVA_ACHAT')->nullable()->comment('Oracle: NUMBER(6, 0)');
|
||||
$table->integer('ACREG_COD_FAM_COMPTA_ACHAT')->nullable()->comment('Oracle: NUMBER(6, 0)');
|
||||
$table->smallInteger('NOUVEAU')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->bigInteger('NO_ART_OPT')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->smallInteger('COD_COMM_TARIF')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->smallInteger('ART_EXOGENE')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->text('NO_ART_EXO')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->smallInteger('CELLULE')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->string('ORI_PROD_INCO', 80)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->bigInteger('COD_FAM_ADEPALE')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->unsignedBigInteger('NO_ART_SOURCE')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->boolean('CLASSE_PRODUIT')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('IS_PROD_TYPE_C3')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->unsignedBigInteger('SITE_REF_INCO')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->boolean('COMPO_PILOTEE_INCO')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->integer('FAM_COMPTA_ACH')->nullable()->comment('Oracle: NUMBER(6, 0)');
|
||||
$table->integer('FAM_COMPTA_VTE')->nullable()->comment('Oracle: NUMBER(6, 0)');
|
||||
$table->text('COD_SECTION_ANA_FIL')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->boolean('IS_ART_MAG')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->unsignedBigInteger('PLAN_ANA_CMPTA')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->boolean('IS_PDT_BIO')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->text('LIB_FACT')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('LIB_FACT_NEUTRE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('REG_ETIQ_DESSOUS', 64)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->smallInteger('SITE_ANALYTIQUE')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->text('INTERPROFESSION')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('INTERPROFESSION_STAT')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('SECTION_ANALYTIQUE_ACHAT', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->smallInteger('SOMME_POURC_RGPT')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->boolean('IS_VEGETAL')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->text('COD_ESP_FOURN')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->boolean('ENVOI_TRACABILITE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->smallInteger('COD_RAYON')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->decimal('SPCB_KG', 8, 3)->nullable()->comment('Oracle: NUMBER(8, 3)');
|
||||
$table->integer('TAXE_CVO')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->boolean('COMMODITE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->text('COM_FACTURATION')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->smallInteger('ANTERIORITE')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->smallInteger('SOC_REF')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->boolean('TAXE_SIO')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('SANS_ANTIBIO')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('OGM_SPECIFIQUE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->smallInteger('NB_UC_FM')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->smallInteger('PREV_VTE_VOLUME')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->smallInteger('PREV_VTE_VOLATILITE')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->smallInteger('SAISONNALITE')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->integer('ACREG_TYPACHAT')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->smallInteger('COD_FAMILLE')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->integer('ACREG_SOUSFAM_ADV')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->smallInteger('COD_TYPE_FAMILLE')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->boolean('COD_TYPE_PROD')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->smallInteger('ACREG_TYP_ART')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->smallInteger('CODE_PREFIXE')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->smallInteger('COD_REFGESTION_VOLAILLE')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->smallInteger('COD_REFGESTION_TRAITEUR')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->smallInteger('COD_REFGESTION_AMONT')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->integer('UNITE_CDE_PF2ART')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->integer('UNITE_FACT_PF2ART')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->integer('INVENTAIRE')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->string('ACREG_GROUP_UNITE_PF2ART', 128)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->integer('ACREG_UNITE_PIVOT')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->string('ACREG_LIB_ABREGE', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('ACREG_LIB_COURT', 64)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('ACREG_COD_RECHERCHE', 128)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->decimal('ACREG_NB_UPIVOT', 9, 3)->nullable()->comment('Oracle: NUMBER(9, 3)');
|
||||
$table->decimal('ACREG_NB_UELEM', 12, 6)->nullable()->comment('Oracle: NUMBER(12, 6)');
|
||||
$table->integer('ACREG_NB_UAPPROV')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->decimal('ACREG_NB_USUPPL1', 9, 3)->nullable()->comment('Oracle: NUMBER(9, 3)');
|
||||
$table->integer('ACREG_UCDE1')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->integer('ACREG_UCDE2')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->integer('ACREG_UCDE3')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->integer('ACREG_UFACT')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->integer('ACREG_GESTIONMINIMAXI')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->decimal('ACREG_QTEMINIMUM', 19, 3)->nullable()->comment('Oracle: NUMBER(19, 3)');
|
||||
$table->decimal('ACREG_QTEMAXIMUM', 19, 3)->nullable()->comment('Oracle: NUMBER(19, 3)');
|
||||
$table->integer('ACREG_NBDLCMINI')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->boolean('ACREG_AFFIC_CADENCIER')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->decimal('ACREG_SEULMINI', 4, 2)->nullable()->comment('Oracle: NUMBER(4, 2)');
|
||||
$table->decimal('ACREG_SEULMAXI', 4, 2)->nullable()->comment('Oracle: NUMBER(4, 2)');
|
||||
$table->integer('ACREG_NOFOUR_COMMANDE')->nullable()->comment('Oracle: NUMBER(7, 0)');
|
||||
$table->unsignedBigInteger('ACREG_SITE')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->string('ACREG_LIEU', 20)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->integer('ACREG_NOQUAI')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->string('ACREG_NOMETHODE', 64)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->boolean('ACREG_MOD_REMISE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->integer('ACREG_NOREFTARIF')->nullable()->comment('Oracle: NUMBER(6, 0)');
|
||||
$table->smallInteger('ACREG_NOREFFAMTARIF')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->smallInteger('ACREG_NOREFFAMTARIF2')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->smallInteger('ACREG_NOREFFAMTARIF3')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->boolean('ACREG_ESTAMPILLE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->string('ACREG_LIBELLE_ETIQ', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->smallInteger('ACREG_BLOCAGES')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->date('ACREG_DATEDEB_BLOCAGE')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->date('ACREG_DATEFIN_BLOCAGE')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->boolean('ACREG_GESTIONSTOCK')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('ACREG_SUIVI_INV')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->smallInteger('ACREG_UVALO')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->smallInteger('ACREG_UPRIN_COMPTAGE')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->smallInteger('ACREG_UPRIN_SAISIE')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->smallInteger('ACREG_USECOND_SAISIE')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->smallInteger('ACREG_TERTIAIRE_SAISIE')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->integer('ACREG_NOURAZ')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->boolean('ACREG_MODE_CHIFFRAGE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('ACREG_TYPPRIX')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->unsignedBigInteger('ACREG_SITESECONDAIRE')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->string('ACREG_LIEUSECONDAIRE', 20)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('SITE_VALO', 24)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->boolean('ACREG_SUIVI_LOT_EXPE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('ACREG_SUIVI_LOT_RECEPT')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('ACREG_SUIVI_LOT')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->integer('ACREG_TYPE_LOT')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->integer('ACREG_NBJ_DISPO')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->boolean('ACREG_SUIVI_EMPLACEMENT')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->unsignedBigInteger('ACREG_TYPE_PROD_EMPLACEMENT')->nullable()->comment('Oracle: NUMBER(16, 0)');
|
||||
$table->string('ACREG_TYPE_UNITE_EMPLACEMENT', 64)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->smallInteger('ACREG_UNITE_EMPLACEMENT')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->decimal('ACREG_QUANTITE_EMPLACEMENT', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->string('ACREG_ACHETEUR', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('ACREG_PLAN_APPROV', 36)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->boolean('ACREG_TYPE_DATE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->string('ACREG_DESTINATION', 80)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('ACREG_LIEU2', 20)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->boolean('ACREG_BLOCAGE_AUTOSTOCK')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->string('ACREG_JOUR_CLIENT', 120)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('ACREG_DELAIREAPPRO', 120)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->integer('ACREG_SITE_AFFECT')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->text('ACREG_LIBDESI')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->boolean('ACREG_AFFIC_CADENCIER_VTE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('EDITION_INVENTAIRE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->smallInteger('OVO_CODE_ALIMENTATION')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->smallInteger('OVO_CODE_TYPE_MP')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->smallInteger('OVO_CODE_PLUS_PRODUIT')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->smallInteger('OVO_CODE_SITE_PRODUCTION')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->smallInteger('TYPE_MARCHANDISE_TRANSPORT')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->smallInteger('TYPE_SOUS_MARCHAN_TRANSP')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->integer('CODE_COPIE_GPAO')->nullable()->comment('Oracle: NUMBER(6, 0)');
|
||||
$table->string('REG_TYPREPA_SUP_UB', 64)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->smallInteger('CRITERE_CONSERV')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->smallInteger('DECLARATION_REP')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->smallInteger('IS_NOTION_FRAIS')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->smallInteger('NBRE_JRS_ANTICIPATION_CDE')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->boolean('AO_EGALIM_RHD')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->smallInteger('COD_FAMTARIF_CESSION')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->string('COLISAGE_PREVISIONNEL', 80)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('ART_SITE_PREVISIONNEL')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('CODE_PRODIAA')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->boolean('IS_PRESTA_SERVICE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('GAMME_TACO')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->string('ACREG_CODE_CONCATE', 80)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->smallInteger('ACREG_MODE_APPLI_REM')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->primary(['NO_ART', 'COD_SOC']);
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,56 @@
|
|||
<?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.ASSO_COMMUNES_CP
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour ASSO_COMMUNES_CP
|
||||
*/
|
||||
final class AssoCommunesCpTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'ASSO_COMMUNES_CP';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.ASSO_COMMUNES_CP 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->string('NUM_COMMUNES', 20)->comment('Oracle: VARCHAR2(0, 0) [PK]');
|
||||
$table->string('CP', 191)->comment('Oracle: VARCHAR2(0, 0) [PK]');
|
||||
$table->unsignedBigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->primary(['NUM_COMMUNES', 'CP']);
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,58 @@
|
|||
<?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.ASSO_INCO_ZONE_VERSIO_CCIAL
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour ASSO_INCO_ZONE_VERSIO_CCIAL
|
||||
*/
|
||||
final class AssoIncoZoneVersioCcialTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'ASSO_INCO_ZONE_VERSIO_CCIAL';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.ASSO_INCO_ZONE_VERSIO_CCIAL 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->dateTime('DAT_CRE')->nullable()->comment('Oracle: TIMESTAMP(6)(6, 0)');
|
||||
$table->dateTime('DAT_MAJ')->nullable()->comment('Oracle: TIMESTAMP(6)(6, 0)');
|
||||
$table->integer('UVERSION')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->integer('NO_ART')->comment('Oracle: NUMBER(6, 0) [PK]');
|
||||
$table->string('NOM_ZONE_MM', 191)->comment('Oracle: VARCHAR2(0, 0) [PK]');
|
||||
$table->primary(['NOM_ZONE_MM', 'NO_ART']);
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,58 @@
|
|||
<?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.ASSO_INCO_ZONE_VERSIO_MKT
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour ASSO_INCO_ZONE_VERSIO_MKT
|
||||
*/
|
||||
final class AssoIncoZoneVersioMktTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'ASSO_INCO_ZONE_VERSIO_MKT';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.ASSO_INCO_ZONE_VERSIO_MKT 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->dateTime('DAT_CRE')->nullable()->comment('Oracle: TIMESTAMP(6)(6, 0)');
|
||||
$table->dateTime('DAT_MAJ')->nullable()->comment('Oracle: TIMESTAMP(6)(6, 0)');
|
||||
$table->integer('UVERSION')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->integer('NO_ART')->comment('Oracle: NUMBER(6, 0) [PK]');
|
||||
$table->string('NOM_ZONE_MM', 191)->comment('Oracle: VARCHAR2(0, 0) [PK]');
|
||||
$table->primary(['NOM_ZONE_MM', 'NO_ART']);
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,58 @@
|
|||
<?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.ASSO_INCO_ZONE_VERSIO_QUAL
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour ASSO_INCO_ZONE_VERSIO_QUAL
|
||||
*/
|
||||
final class AssoIncoZoneVersioQualTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'ASSO_INCO_ZONE_VERSIO_QUAL';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.ASSO_INCO_ZONE_VERSIO_QUAL 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->dateTime('DAT_CRE')->nullable()->comment('Oracle: TIMESTAMP(6)(6, 0)');
|
||||
$table->dateTime('DAT_MAJ')->nullable()->comment('Oracle: TIMESTAMP(6)(6, 0)');
|
||||
$table->integer('UVERSION')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->integer('NO_ART')->comment('Oracle: NUMBER(6, 0) [PK]');
|
||||
$table->string('NOM_ZONE_MM', 191)->comment('Oracle: VARCHAR2(0, 0) [PK]');
|
||||
$table->primary(['NOM_ZONE_MM', 'NO_ART']);
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
55
database/arcadia-replicate/Tables/Refp/CalibreOeufsTable.php
Normal file
55
database/arcadia-replicate/Tables/Refp/CalibreOeufsTable.php
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
<?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.CALIBRE_OEUFS
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour CALIBRE_OEUFS
|
||||
*/
|
||||
final class CalibreOeufsTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'CALIBRE_OEUFS';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.CALIBRE_OEUFS 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->smallInteger('CODE_CALIBRE')->primary()->comment('Oracle: NUMBER(3, 0) [PK]');
|
||||
$table->string('LIBELLE_CALIBRE', 120)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->integer('UVERSION')->nullable()->comment('Oracle: NUMBER(6, 0)');
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
60
database/arcadia-replicate/Tables/Refp/FamRgptTable.php
Normal file
60
database/arcadia-replicate/Tables/Refp/FamRgptTable.php
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
<?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.FAM_RGPT
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour FAM_RGPT
|
||||
*/
|
||||
final class FamRgptTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'FAM_RGPT';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.FAM_RGPT 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_FAMRGPT')->primary()->comment('Oracle: NUMBER(0, 0) [PK]');
|
||||
$table->text('LIB_FAMRGPT')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->bigInteger('COD_FAMANA')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->integer('NO_ORDRE')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->bigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(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->boolean('CARAC_ELEVAGE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
112
database/arcadia-replicate/Tables/Refp/FamVenteTable.php
Normal file
112
database/arcadia-replicate/Tables/Refp/FamVenteTable.php
Normal file
|
|
@ -0,0 +1,112 @@
|
|||
<?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.FAM_VENTE
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour FAM_VENTE
|
||||
*/
|
||||
final class FamVenteTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'FAM_VENTE';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.FAM_VENTE 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_FAMVTE')->primary()->comment('Oracle: NUMBER(0, 0) [PK]');
|
||||
$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::name());
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,60 @@
|
|||
<?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.GROUPEMENT_QUAL
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour GROUPEMENT_QUAL
|
||||
*/
|
||||
final class GroupementQualTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'GROUPEMENT_QUAL';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.GROUPEMENT_QUAL 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->unsignedBigInteger('ID')->primary()->comment('Oracle: NUMBER(10, 0) [PK]');
|
||||
$table->text('NOM')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('ADRESSE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('CP', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('VILLE', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('TELEPHONE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('CONTACT')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->integer('UVERSION')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,55 @@
|
|||
<?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.INCO_ALLEGATIONS
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour INCO_ALLEGATIONS
|
||||
*/
|
||||
final class IncoAllegationsTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'INCO_ALLEGATIONS';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.INCO_ALLEGATIONS 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->unsignedBigInteger('CODE')->primary()->comment('Oracle: NUMBER(10, 0) [PK]');
|
||||
$table->text('LIBELLE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->integer('UVERSION')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,55 @@
|
|||
<?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.INCO_ALLERGENE
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour INCO_ALLERGENE
|
||||
*/
|
||||
final class IncoAllergeneTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'INCO_ALLERGENE';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.INCO_ALLERGENE 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->unsignedBigInteger('ID')->primary()->comment('Oracle: NUMBER(10, 0) [PK]');
|
||||
$table->text('LIB')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->integer('UVERSION')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,57 @@
|
|||
<?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.INCO_ASSO_ALLERGENE
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour INCO_ASSO_ALLERGENE
|
||||
*/
|
||||
final class IncoAssoAllergeneTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'INCO_ASSO_ALLERGENE';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.INCO_ASSO_ALLERGENE 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->unsignedBigInteger('ID')->comment('Oracle: NUMBER(10, 0) [PK]');
|
||||
$table->bigInteger('COD_SITE_GRP')->comment('Oracle: NUMBER(0, 0) [PK]');
|
||||
$table->text('LST_ALLERGENE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->integer('UVERSION')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->primary(['ID', 'COD_SITE_GRP']);
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,57 @@
|
|||
<?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.INCO_ASSO_TRACE
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour INCO_ASSO_TRACE
|
||||
*/
|
||||
final class IncoAssoTraceTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'INCO_ASSO_TRACE';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.INCO_ASSO_TRACE 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->unsignedBigInteger('ID')->comment('Oracle: NUMBER(10, 0) [PK]');
|
||||
$table->bigInteger('COD_SITE_GRP')->comment('Oracle: NUMBER(0, 0) [PK]');
|
||||
$table->text('TRACES_RCT')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->integer('UVERSION')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->primary(['ID', 'COD_SITE_GRP']);
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,57 @@
|
|||
<?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.INCO_BRIQUE_GPC
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour INCO_BRIQUE_GPC
|
||||
*/
|
||||
final class IncoBriqueGpcTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'INCO_BRIQUE_GPC';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.INCO_BRIQUE_GPC 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->string('CODE_BRIQUE', 32)->primary()->comment('Oracle: VARCHAR2(0, 0) [PK]');
|
||||
$table->text('LIB_BRIQUE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->unsignedBigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->date('DAT_CRE')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->date('DAT_MAJ')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
234
database/arcadia-replicate/Tables/Refp/IncoCompoTable.php
Normal file
234
database/arcadia-replicate/Tables/Refp/IncoCompoTable.php
Normal file
|
|
@ -0,0 +1,234 @@
|
|||
<?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.INCO_COMPO
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour INCO_COMPO
|
||||
*/
|
||||
final class IncoCompoTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'INCO_COMPO';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.INCO_COMPO 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->unsignedBigInteger('ID')->primary()->comment('Oracle: NUMBER(10, 0) [PK]');
|
||||
$table->unsignedBigInteger('ID_INCO')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->string('NUMERO', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('NOM')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->integer('UVERSION')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->decimal('TAILLE_REF', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->integer('VAL_ENERG_KJ_R')->nullable()->comment('Oracle: NUMBER(6, 0)');
|
||||
$table->integer('VAL_ENERG_KCAL_R')->nullable()->comment('Oracle: NUMBER(6, 0)');
|
||||
$table->decimal('MAT_GRASS_R', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('AGS_R', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('GLUCIDES_R', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('SUCRE_R', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('FIB_ALIM_R', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('PROTEINE_R', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('SEL_R', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('TAILLE_PORT', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->integer('VAL_ENERG_KJ_P')->nullable()->comment('Oracle: NUMBER(6, 0)');
|
||||
$table->integer('VAL_ENERG_KCAL_P')->nullable()->comment('Oracle: NUMBER(6, 0)');
|
||||
$table->decimal('MAT_GRASS_P', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('AGS_P', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('GLUCIDES_P', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('SUCRE_P', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('FIB_ALIM_P', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('PROTEINE_P', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('SEL_P', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('POURCENT_APPORT_REF_E14_P', 8, 3)->nullable()->comment('Oracle: NUMBER(8, 3)');
|
||||
$table->decimal('POURCENT_APPORT_REF_KJO_P', 8, 3)->nullable()->comment('Oracle: NUMBER(8, 3)');
|
||||
$table->decimal('POURCENT_APPORT_REF_FAT_P', 8, 3)->nullable()->comment('Oracle: NUMBER(8, 3)');
|
||||
$table->decimal('POURCENT_APPORT_REF_FATSAT_P', 8, 3)->nullable()->comment('Oracle: NUMBER(8, 3)');
|
||||
$table->decimal('POURCENT_APPORT_REF_CHOVAL_P', 8, 3)->nullable()->comment('Oracle: NUMBER(8, 3)');
|
||||
$table->decimal('POURCENT_APPORT_REF_SUGAR_P', 8, 3)->nullable()->comment('Oracle: NUMBER(8, 3)');
|
||||
$table->decimal('POURCENT_APPORT_REF_PRO_P', 8, 3)->nullable()->comment('Oracle: NUMBER(8, 3)');
|
||||
$table->decimal('POURCENT_APPORT_REF_SALTEQ_P', 8, 3)->nullable()->comment('Oracle: NUMBER(8, 3)');
|
||||
$table->text('APPORT_PORT')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->boolean('MAT_GRASS_R_PREC')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('AGS_R_PREC')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('GLUCIDES_R_PREC')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('SUCRE_R_PREC')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('FIB_ALIM_R_PREC')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('PROTEINE_R_PREC')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('SEL_R_PREC')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->string('P_SUR_L', 24)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->smallInteger('COMPOSANTE_P')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->smallInteger('COMPOSANTE_N')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->decimal('FRUITS_R', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('SODIUM_P', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('SODIUM_R', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->smallInteger('SCORE_NUTRI')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->string('CLASSEMENT', 4)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->decimal('FRUITS_COQUE_SECH_R', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('POURCENT_FRUITS', 6, 3)->nullable()->comment('Oracle: NUMBER(6, 3)');
|
||||
$table->boolean('SOURCE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->decimal('NUT_AAE', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_BIOT', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_CA', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_CARNITINE', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_CASN', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_CHOCAL', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_CHOL', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_CHOLN', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_CLD', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_CR', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_CU', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_F16D0', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_F18D2CN6', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_F18D3N3', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_F20D4', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_F20D5N3', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_F22D6N3', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FAMSCIS', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FAPUCIS', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FAPULC', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FAPUN3', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FAPUN6', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FD', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FE', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FIBSOL', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FOLDFE', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FRUFB', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_G_HC', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_GALFB', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_GLUS', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_ID', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_INOTL', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_K', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_LACS', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_MALTDEX', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_MG', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_MN', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_MO', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_NIA', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_NITRA', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_NUCLEOTIDE', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_OLSAC', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_P', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_PANTAC', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_POLYL', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_RIBF', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_S6', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_SE', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_STARCH', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_SUCS', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_TAU', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_THIA', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_VITA', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_VITB12', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_VITB6', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_VITC', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_VITD', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_VITE', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_VITK', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_WHEY', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_ZN', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_AGT', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FFORMIQ', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FACETIQ', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FPROPIONIQ', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FBUTYRIQ', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FVALERIQ', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FCAPROIQ', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FENATIQ', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FCAPRYLIQ', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FPELARGONIQ', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FCAPRIQ', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FUNDECYLIQ', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FLAURIQ', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FTRIDECYLIQ', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FMYRISTIQ', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FPENTADECYLIQ', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FMARGARIQ', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FSTEARIQ', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FNONADYLIQUE', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FARACHIDIQ', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FHENEICOSYLIQ', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FBEHENIQ', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FTRICOSILIQ', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FLIGNOCERIQ', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FHYENIQ', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FCEROTIQ', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FCARBOCERIQ', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FMONTANIQ', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FNONACOSYLIQ', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FMELISSIQ', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FHENTRIACONTYLIQ', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FLACEROIQ', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FPSYLLIQ', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FGEDDIQ', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FCEROPLASTIQ', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FHEXTRIACONTYLIQ', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FHEPTATRIACONTYLIQ', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FOCTATRIACONTYLIQ', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FPALM', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FOLEIQ', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_F11EICO', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FERUCIQ', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FNERVONIQ', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FAPUN9', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_F18D', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_F19D', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_FRUS', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->decimal('NUT_MALS', 10, 3)->nullable()->comment('Oracle: NUMBER(10, 3)');
|
||||
$table->boolean('MAT_GRASS_P_PREC')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('AGS_P_PREC')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('GLUCIDES_P_PREC')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('SUCRE_P_PREC')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('FIB_ALIM_P_PREC')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('PROTEINE_P_PREC')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('SEL_P_PREC')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->smallInteger('COMPOSANTE_N_2022')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->smallInteger('COMPOSANTE_P_2022')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->smallInteger('POINTS_AGS')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->smallInteger('POINTS_ENERGIE')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->smallInteger('POINTS_FIBRES')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->smallInteger('POINTS_FNL_FRAIS')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->smallInteger('POINTS_PROTEINES')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->smallInteger('POINTS_SEL')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->smallInteger('POINTS_SUCRES')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->smallInteger('SCORE_NUTRI_2022')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->decimal('FNL_FRAIS', 6, 2)->nullable()->comment('Oracle: NUMBER(6, 2)');
|
||||
$table->boolean('VIANDE_ROUGE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->string('NUTRI_SCORE_2022', 4)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->decimal('POURCENT_FNL_FRAIS', 6, 2)->nullable()->comment('Oracle: NUMBER(6, 2)');
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
61
database/arcadia-replicate/Tables/Refp/IncoDoaTable.php
Normal file
61
database/arcadia-replicate/Tables/Refp/IncoDoaTable.php
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
<?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.INCO_DOA
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour INCO_DOA
|
||||
*/
|
||||
final class IncoDoaTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'INCO_DOA';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.INCO_DOA 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->unsignedBigInteger('CLE_SEQ')->primary()->comment('Oracle: NUMBER(10, 0) [PK]');
|
||||
$table->unsignedBigInteger('NO_ART')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->unsignedBigInteger('ORI_BIO')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->string('PAYS_PROV', 12)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('PAYS_TRAN', 12)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->integer('UVERSION')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->string('NE', 12)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('ELEVE', 12)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('ABATTU', 12)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,58 @@
|
|||
<?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.INCO_INTERPROFESSION
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour INCO_INTERPROFESSION
|
||||
*/
|
||||
final class IncoInterprofessionTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'INCO_INTERPROFESSION';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.INCO_INTERPROFESSION 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->unsignedBigInteger('CODE')->primary()->comment('Oracle: NUMBER(10, 0) [PK]');
|
||||
$table->text('LIBELLE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->integer('UVERSION')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->boolean('DONNEE_STAT_ARTICLE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('SIGNE_QUALITE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('ALLEGATION_MKT')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
60
database/arcadia-replicate/Tables/Refp/IncoNeaTable.php
Normal file
60
database/arcadia-replicate/Tables/Refp/IncoNeaTable.php
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
<?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.INCO_NEA
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour INCO_NEA
|
||||
*/
|
||||
final class IncoNeaTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'INCO_NEA';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.INCO_NEA 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->unsignedBigInteger('CLE_SEQ')->primary()->comment('Oracle: NUMBER(10, 0) [PK]');
|
||||
$table->unsignedBigInteger('NO_ART')->nullable()->comment('Oracle: NUMBER(15, 0)');
|
||||
$table->string('NE', 12)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('ELEVE', 12)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('ABATTU', 12)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->date('DAT_CRE')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->date('DAT_MAJ')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->unsignedBigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
<?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.INCO_ORIGININFO
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour INCO_ORIGININFO
|
||||
*/
|
||||
final class IncoOrigininfoTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'INCO_ORIGININFO';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.INCO_ORIGININFO 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->date('DAT_CRE')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->date('DAT_MAJ')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->integer('UVERSION')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->unsignedBigInteger('CLE_SEQ')->primary()->comment('Oracle: NUMBER(10, 0) [PK]');
|
||||
$table->integer('NO_ART')->nullable()->comment('Oracle: NUMBER(6, 0)');
|
||||
$table->unsignedBigInteger('MATIERE_PREMIERE')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->text('PAYS_ORIGINE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
57
database/arcadia-replicate/Tables/Refp/IncoSitProdTable.php
Normal file
57
database/arcadia-replicate/Tables/Refp/IncoSitProdTable.php
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
<?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.INCO_SIT_PROD
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour INCO_SIT_PROD
|
||||
*/
|
||||
final class IncoSitProdTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'INCO_SIT_PROD';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.INCO_SIT_PROD 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->integer('NO_ART')->comment('Oracle: NUMBER(9, 0) [PK]');
|
||||
$table->unsignedBigInteger('COD_SITE_GRP')->comment('Oracle: NUMBER(10, 0) [PK]');
|
||||
$table->integer('UVERSION')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->boolean('SITE_REF_DATA_INCO')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->primary(['NO_ART', 'COD_SITE_GRP']);
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,63 @@
|
|||
<?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.INCO_SUIVI_ENVOI
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour INCO_SUIVI_ENVOI
|
||||
*/
|
||||
final class IncoSuiviEnvoiTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'INCO_SUIVI_ENVOI';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.INCO_SUIVI_ENVOI 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->unsignedBigInteger('ID')->primary()->comment('Oracle: NUMBER(10, 0) [PK]');
|
||||
$table->unsignedBigInteger('ID_GESTION_ENVOI')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->unsignedBigInteger('ID_INCO')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->date('DATE_ENV_DEMANDE')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->date('DATE_ENV_REELLE')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->string('COD_UTIL', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('MOTIF')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->integer('UVERSION')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->text('NOM_FIC_GEN')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->boolean('ENVOI_ANO')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->binary('PHOTO')->nullable()->comment('Oracle: BLOB(0, 0)');
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
222
database/arcadia-replicate/Tables/Refp/IncoTable.php
Normal file
222
database/arcadia-replicate/Tables/Refp/IncoTable.php
Normal file
|
|
@ -0,0 +1,222 @@
|
|||
<?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.INCO
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour INCO
|
||||
*/
|
||||
final class IncoTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'INCO';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.INCO 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->date('DAT_CRE')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->date('DAT_MAJ')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->bigInteger('NO_ART')->primary()->comment('Oracle: NUMBER(0, 0) [PK]');
|
||||
$table->integer('UVERSION')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->text('MENTION_COMPL')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->smallInteger('EXPLOITANT')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->string('AGEMINI', 80)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->decimal('POURCENT_CEREAL_MINI', 6, 3)->nullable()->comment('Oracle: NUMBER(6, 3)');
|
||||
$table->unsignedBigInteger('ORG_CERTIF')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->unsignedBigInteger('GRPMT_QUAL')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->text('COMM_VOL_FERM')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->boolean('PROD_BIO')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->text('NUM_AGR')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->date('DATE_LANC')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->date('DATE_APPLI')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->text('CONSEIL_PREPA')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('ASTUCES')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('ARG_VENTE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('NB_PORTION', 80)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->smallInteger('TYP_PORTION')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->decimal('PMC', 10, 4)->nullable()->comment('Oracle: NUMBER(10, 4)');
|
||||
$table->text('CIBLE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('COMM_MKT')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->smallInteger('STATUT_MKT')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->string('UTIL_MKT', 36)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->date('DATE_STATUT_MKT')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->smallInteger('STATUT_CMCL')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->string('UTIL_CMCL', 36)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->date('DATE_STATUT_CMCL')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->smallInteger('STATUT_QUAL')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->string('UTIL_QUAL', 36)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->date('DATE_STATUT_QUAL')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->text('REF_RCT')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('DENOM_LEG')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('LST_ING')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('LST_ALLERGENE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('TRACES_RCT')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('TRACES_SIT_PROD')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('COMM_COMPO')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('SUIVI_MODIF')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('GRAM_ENT_MATERN', 80)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('GRAM_PLAT_MATERN', 80)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('GRAM_ENT_ELEM', 80)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('GRAM_PLAT_ELEM', 80)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('GRAM_ENT_ADO', 80)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('GRAM_PLAT_ADO', 80)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('FREQ_UTIL')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('SIGLE_ALLERG')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('ALLEGAT_SANTE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('ALLEGAT_NUTRIT')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('ALLEGAT_AUTRE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('POIDS_MOYEN_UNI', 80)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('TYPE_STOCK')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('IONISATION')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->integer('AGE_ABATT_MOY')->nullable()->comment('Oracle: NUMBER(7, 0)');
|
||||
$table->text('ELEVAGE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('CRIT_MICROBIO_J0')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('DENOM_COMM')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('OGM')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('RESIDU_CONTAMIN')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('ALIMENTATION')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('CRIT_MICROBIO')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('CRIT_MICROBIO_DLC')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->boolean('PROD_SAISON')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->decimal('PDS_NET_UVC', 11, 3)->nullable()->comment('Oracle: NUMBER(11, 3)');
|
||||
$table->decimal('PDS_BRUT_UVC', 11, 3)->nullable()->comment('Oracle: NUMBER(11, 3)');
|
||||
$table->text('ORI_MAT_PREM')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('PAYS_TRANSFO')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->integer('TYPE_PAL')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->integer('ID_SERV_CONSO')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->text('ALLEGATIONS')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('NO_HOMOLOGATION', 80)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('DESCRIPTIF')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->decimal('PMC_MINI', 10, 4)->nullable()->comment('Oracle: NUMBER(10, 4)');
|
||||
$table->decimal('PMC_MAXI', 10, 4)->nullable()->comment('Oracle: NUMBER(10, 4)');
|
||||
$table->text('CAP1_CARAC')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('CAP2_CARAC')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('CAP3_CARAC')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('CAP4_CARAC')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->boolean('PMC_EURO_KG')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('PMC_EURO_UVC')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->text('CAP1_AVANTAGE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('CAP2_AVANTAGE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('CAP3_AVANTAGE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('CAP4_AVANTAGE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('CAP1_PREUVE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('CAP2_PREUVE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('CAP3_PREUVE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('CAP4_PREUVE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('LIST_CERTIF')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('LIST_COD_EMBAL')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('LIST_NUM_AGREMENT')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('DEMARCHE_QUAL')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('COMM_ORIG')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->bigInteger('FICHE_MERE')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->smallInteger('ETIQ_DONNEES_INCO')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->integer('SOC_REF_INCO')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->bigInteger('COD_INCO_REF_ART')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->boolean('ACTIVE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->text('CALIBRE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('GRAM_ENT_AGEES')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('GRAM_PLAT_AGEES')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('GRAM_ENT_CARCERAL')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('GRAM_PLAT_CARCERAL')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('COMMENTAIRE_PROCESS')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('INTERPROFESSION')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('ALIM_ELEVAGE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->integer('TARE_SUPPL')->nullable()->comment('Oracle: NUMBER(7, 0)');
|
||||
$table->integer('REF_COMPO')->nullable()->comment('Oracle: NUMBER(8, 0)');
|
||||
$table->boolean('FICH_REF_COMPO')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->text('COMM_REF_COMPO')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('COMM_TARE_SUPPL')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->boolean('SANS_OGM')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('EXTRA_FRAICHEUR')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('DATE_JOUR_PONTE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('VIP')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('INNOVATION')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->date('DATE_INNOVATION')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->text('ALLEGATION_MKT')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->bigInteger('CONDI_SS_AP')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->string('BRIQUE_GPC', 32)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('NUTRI_A_ART', 4)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('COMM_NUTRI', 4)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('LIBELLE_ARTICLE_INCO')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('CONSEIL_PREPA_1')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('CONSEIL_PREPA_2')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->boolean('ART_COMM_ACTIF')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->unsignedBigInteger('VERSION')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->date('DATEVERSION')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->text('LST_ADDITIF')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->smallInteger('NB_ADDITIF_BLACKLIST')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->smallInteger('NB_ADDITIF_TROUVE')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->text('PAYS_ORIGINE_PROV_ING1')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->boolean('IS_CALCUL_GEMRCN')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('ISNOTPLEINAIR')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('ISGENETICALMODIFIED')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('AROME_ARTIF')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('ANTIBIO')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('COLOR_ARTIF')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('EX_GOUT')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('NITRITE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('SEL_AJOUTE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->smallInteger('NB_PORTION_QUAL')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->decimal('VIAND_POISS', 6, 3)->nullable()->comment('Oracle: NUMBER(6, 3)');
|
||||
$table->decimal('SAUCE', 6, 3)->nullable()->comment('Oracle: NUMBER(6, 3)');
|
||||
$table->decimal('GARNITURE', 6, 3)->nullable()->comment('Oracle: NUMBER(6, 3)');
|
||||
$table->smallInteger('NB_UVC')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->boolean('L_ALLEG_NUTRITION')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->text('LST_MUT')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->smallInteger('NB_MUT_TROUVE')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->smallInteger('NB_MUT_SHORT_LIST')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->boolean('AROME_NATUREL')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('COLORANT_NATUREL')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->text('NUTRISCORE_ON_PACK')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('CONDIT_CONSERV')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('LST_COL_DEVALID_QUAL')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->boolean('UPDATE_VERSION')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->text('LST_ADDITIF_BLACKLISTES')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('LST_MUT_SHORTLIST')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->boolean('IS_PAM')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->decimal('AW', 6, 2)->nullable()->comment('Oracle: NUMBER(6, 2)');
|
||||
$table->decimal('PH', 4, 2)->nullable()->comment('Oracle: NUMBER(4, 2)');
|
||||
$table->boolean('RESIDU_PESTICIDE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('PESTICIDE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->text('REGLEMENTATION')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('VISUEL_SUGG_PRESENTATION')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('CRIT_ORGANO')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('CRIT_PHYSICO')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->boolean('AFF_DVT_FT')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->text('LIBELLE_FACTURE_ARTICLE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
60
database/arcadia-replicate/Tables/Refp/IncoVersionTable.php
Normal file
60
database/arcadia-replicate/Tables/Refp/IncoVersionTable.php
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
<?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.INCO_VERSION
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour INCO_VERSION
|
||||
*/
|
||||
final class IncoVersionTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'INCO_VERSION';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.INCO_VERSION 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->date('DAT_CRE')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->date('DAT_MAJ')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->integer('UVERSION')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->bigInteger('NO_ART')->comment('Oracle: NUMBER(0, 0) [PK]');
|
||||
$table->unsignedBigInteger('NO_VERSION')->comment('Oracle: NUMBER(10, 0) [PK]');
|
||||
$table->text('COMMENTAIRE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('COD_UTIL', 36)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->primary(['NO_ART', 'NO_VERSION']);
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,68 @@
|
|||
<?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.INSEE_COMMUNES
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour INSEE_COMMUNES
|
||||
*/
|
||||
final class InseeCommunesTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'INSEE_COMMUNES';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.INSEE_COMMUNES 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->smallInteger('CODE_CDC')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->boolean('CHEF_LIEU')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->smallInteger('CODE_REGION')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->string('CODE_DEPARTEMENT', 16)->comment('Oracle: VARCHAR2(0, 0) [PK]');
|
||||
$table->string('CODE_COMMUNE', 20)->comment('Oracle: VARCHAR2(0, 0) [PK]');
|
||||
$table->smallInteger('AR')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->smallInteger('CT')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->smallInteger('TNCC')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->string('ARTMAJ', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('NCC')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('ARTMIN', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('NCCENR')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('NUM_COMMUNE', 20)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->unsignedBigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->string('CANTON_VILLE', 20)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->primary(['CODE_DEPARTEMENT', 'CODE_COMMUNE']);
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
80
database/arcadia-replicate/Tables/Refp/MarqueTable.php
Normal file
80
database/arcadia-replicate/Tables/Refp/MarqueTable.php
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
<?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());
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
<?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.MEDIA_ASSO_ARTICLE
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour MEDIA_ASSO_ARTICLE
|
||||
*/
|
||||
final class MediaAssoArticleTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'MEDIA_ASSO_ARTICLE';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.MEDIA_ASSO_ARTICLE 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->unsignedBigInteger('CODE_VISUEL')->comment('Oracle: NUMBER(10, 0) [PK]');
|
||||
$table->unsignedBigInteger('NO_ART')->comment('Oracle: NUMBER(10, 0) [PK]');
|
||||
$table->integer('UVERSION')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->date('DATE_TRANSMIS')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->string('NOM_VISUEL_HD_GS1', 108)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('NOM_VISUEL_1500_1500_GS1', 108)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->primary(['CODE_VISUEL', 'NO_ART']);
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
60
database/arcadia-replicate/Tables/Refp/MutTable.php
Normal file
60
database/arcadia-replicate/Tables/Refp/MutTable.php
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
<?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.MUT
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour MUT
|
||||
*/
|
||||
final class MutTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'MUT';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.MUT 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->unsignedBigInteger('ID_MUT')->primary()->comment('Oracle: NUMBER(10, 0) [PK]');
|
||||
$table->text('LIBELLE_MUT')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('VARIANTE_NOM')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('VARIANTE_EXCLUSION_NOM')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->boolean('SHORT_LISTE')->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->unsignedBigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
62
database/arcadia-replicate/Tables/Refp/NdpTable.php
Normal file
62
database/arcadia-replicate/Tables/Refp/NdpTable.php
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
<?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.NDP
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour NDP
|
||||
*/
|
||||
final class NdpTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'NDP';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.NDP 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->string('COD_NDP', 100)->primary()->comment('Oracle: VARCHAR2(0, 0) [PK]');
|
||||
$table->text('LIB_NDP')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->bigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->text('LIB2_NDP')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('LIB3_NDP')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('LIB4_NDP')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->decimal('TAUX_REST_MC', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->boolean('COD_UTE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->integer('CHAPITRE')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->boolean('IS_ACTIF')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
60
database/arcadia-replicate/Tables/Refp/OrgCertifTable.php
Normal file
60
database/arcadia-replicate/Tables/Refp/OrgCertifTable.php
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
<?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.ORG_CERTIF
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour ORG_CERTIF
|
||||
*/
|
||||
final class OrgCertifTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'ORG_CERTIF';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.ORG_CERTIF 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->unsignedBigInteger('ID')->primary()->comment('Oracle: NUMBER(10, 0) [PK]');
|
||||
$table->text('NOM')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('ADRESSE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('CP', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('VILLE', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('TELEPHONE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('CONTACT')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->integer('UVERSION')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
59
database/arcadia-replicate/Tables/Refp/PaletteIncoTable.php
Normal file
59
database/arcadia-replicate/Tables/Refp/PaletteIncoTable.php
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
<?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.PALETTE_INCO
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour PALETTE_INCO
|
||||
*/
|
||||
final class PaletteIncoTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'PALETTE_INCO';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.PALETTE_INCO 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->integer('ID')->primary()->comment('Oracle: NUMBER(5, 0) [PK]');
|
||||
$table->text('LIBELLE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->integer('LONGUEUR')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->integer('LARGEUR')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->integer('HAUTEUR')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->decimal('POIDS', 8, 3)->nullable()->comment('Oracle: NUMBER(8, 3)');
|
||||
$table->integer('UVERSION')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,88 @@
|
|||
<?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.RU_PERSONNE_SIRH
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour RU_PERSONNE_SIRH
|
||||
*/
|
||||
final class RuPersonneSirhTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'RU_PERSONNE_SIRH';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.RU_PERSONNE_SIRH 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->string('MATRICULE_FIC', 60)->primary()->comment('Oracle: VARCHAR2(0, 0) [PK]');
|
||||
$table->string('COD_PERSONNE', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->smallInteger('COD_SOC_GRP')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->integer('COD_SIT_GRP')->nullable()->comment('Oracle: NUMBER(7, 0)');
|
||||
$table->text('NOM_FIC')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->integer('COD_UNITE_PROD')->nullable()->comment('Oracle: NUMBER(6, 0)');
|
||||
$table->text('NOM_PERSONNE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('PRENOM_FIC')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->date('DATE_DEB_FIC')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->text('PRENOM_PERSONNE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->unsignedBigInteger('COD_SOCIETE')->nullable()->comment('Oracle: NUMBER(25, 0)');
|
||||
$table->date('DATE_FIN_FIC')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->string('SOC_FIC', 48)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->integer('NUM_SERV')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->string('COD_INTRA_FIC', 60)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('ETAB_FIC', 80)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->date('DATE_EFFET_FIC')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->unsignedBigInteger('COD_STATUT')->nullable()->comment('Oracle: NUMBER(12, 0)');
|
||||
$table->string('SERVICE_FIC', 28)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('SITE_FIC', 60)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('TYP_CONTRAT_FIC', 60)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('STATUT_FIC', 60)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->date('DF_CARRIERE')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->string('ETABLISSEMENT', 80)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->date('DATE_ENTREE')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->integer('UVERSION')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->string('MATRICULE_RESP_HIERAR', 60)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->unsignedBigInteger('SECT_ANALYTIQUE')->nullable()->comment('Oracle: NUMBER(20, 0)');
|
||||
$table->boolean('MUTATION_DEP')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('MUTATION_ARR')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->string('SITE_PRECEDENT', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('SERVICE_PRECEDENT', 20)->nullable()->comment('Oracle: VARCHAR2(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->boolean('SUPPRESSION_FORCEE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->date('DATE_PRESENCE_FICHIER')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,65 @@
|
|||
<?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.SERVICE_CONSO_INCO
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour SERVICE_CONSO_INCO
|
||||
*/
|
||||
final class ServiceConsoIncoTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'SERVICE_CONSO_INCO';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.SERVICE_CONSO_INCO 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->unsignedBigInteger('ID')->primary()->comment('Oracle: NUMBER(10, 0) [PK]');
|
||||
$table->text('NOM')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('ADRESSE1')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('ADRESSE2')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('CP', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('VILLE', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('TELEPHONE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('MAIL')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('FAX', 120)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->integer('MARQUE')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->integer('UVERSION')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->text('LIB')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('SITE_INT')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
127
database/arcadia-replicate/Tables/Refp/SiteProdGrpTable.php
Normal file
127
database/arcadia-replicate/Tables/Refp/SiteProdGrpTable.php
Normal file
|
|
@ -0,0 +1,127 @@
|
|||
<?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.SITE_PROD_GRP
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour SITE_PROD_GRP
|
||||
*/
|
||||
final class SiteProdGrpTable implements TableOrView
|
||||
{
|
||||
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::name());
|
||||
}
|
||||
|
||||
$schema->create(self::name(), 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::name());
|
||||
}
|
||||
}
|
||||
121
database/arcadia-replicate/Tables/Refp/SocieteInvTable.php
Normal file
121
database/arcadia-replicate/Tables/Refp/SocieteInvTable.php
Normal file
|
|
@ -0,0 +1,121 @@
|
|||
<?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.SOCIETE_INV
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour SOCIETE_INV
|
||||
*/
|
||||
final class SocieteInvTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'SOCIETE_INV';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.SOCIETE_INV 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('ID_SOCIETE')->primary()->comment('Oracle: NUMBER(0, 0) [PK]');
|
||||
$table->bigInteger('ID_POLE')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->text('NOM_SOCIETE')->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('CP', 28)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('VILLE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('TEL', 80)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('MAIL')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->bigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->smallInteger('GEST_INVEST')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->bigInteger('SUIVI_KIDS')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->string('CODE_INTRAGROUPE', 32)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->binary('LOGO_A')->nullable()->comment('Oracle: BLOB(0, 0)');
|
||||
$table->binary('LOGO_B')->nullable()->comment('Oracle: BLOB(0, 0)');
|
||||
$table->text('INFO_LOGO_A')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('INFO_LOGO_B')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('FAX', 80)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->boolean('IS_ACTIVE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->string('POLE_GEOGRAPHIQUE', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('POLE_COMMERCIAL', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('RESEAU', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('POLE_ACTIVITE', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('COD_PAYS', 20)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->boolean('TYP_FACTURANTE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->smallInteger('COD_SOC_FAC')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->integer('SIT_PREP_PRINCIPAL')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->string('ID_TVA', 100)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->decimal('CAPITAL', 20, 6)->nullable()->comment('Oracle: NUMBER(20, 6)');
|
||||
$table->string('NUM_SIRET', 100)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->decimal('LONGITUDE', 11, 6)->nullable()->comment('Oracle: NUMBER(11, 6)');
|
||||
$table->decimal('LATITUDE', 11, 6)->nullable()->comment('Oracle: NUMBER(11, 6)');
|
||||
$table->decimal('LONG_MERCATOR', 20, 6)->nullable()->comment('Oracle: NUMBER(20, 6)');
|
||||
$table->decimal('LAT_MERCATOR', 20, 6)->nullable()->comment('Oracle: NUMBER(20, 6)');
|
||||
$table->smallInteger('QUALITE_GEO')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->string('CODE_INSEE', 20)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->boolean('ETAT')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('ECLAT_BL')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->smallInteger('REGATE_COMMUN')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->smallInteger('COD_POLE_COMMIS')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->text('COD_POLE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->dateTime('DATE_CREATION')->nullable()->comment('Oracle: TIMESTAMP(6)(6, 0)');
|
||||
$table->dateTime('DATE_FERMETURE')->nullable()->comment('Oracle: TIMESTAMP(6)(6, 0)');
|
||||
$table->dateTime('DATE_ENTREE_CONSO')->nullable()->comment('Oracle: TIMESTAMP(6)(6, 0)');
|
||||
$table->dateTime('DATE_SORTIE_CONSO')->nullable()->comment('Oracle: TIMESTAMP(6)(6, 0)');
|
||||
$table->unsignedBigInteger('GLN')->nullable()->comment('Oracle: NUMBER(15, 0)');
|
||||
$table->bigInteger('PREMIER_MOIS_COMPTABLE')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->date('DAT_CRE')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->date('DAT_MAJ')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->text('MAIL_ALERTE_INFO')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('ID_CHEF_INFORMATIQUE', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->bigInteger('ID_ZONE')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->unsignedBigInteger('NBR_TOTAL_ACTIONS')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->unsignedBigInteger('NBR_ACTION_DETENUES')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->boolean('METHODE_CONSOLIDATION')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('APP_AU_GROUPE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->string('DEVISE_SOC', 12)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('INTEG_NUM_SIRET', 36)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('ENREG_REG_COMM')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->smallInteger('FORM_JURIDIQUE')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->text('RCS')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('DAT_CLOTURE', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('DENOM_JURIDIQUE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('SITE_PROD_AUTO')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->boolean('ACTIVE_STAT')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('IS_UTIL_CLIENT')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('IS_TVA_DEBIT')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->text('ENTETE_FAC_SOC')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('GLN_GDSN', 64)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
60
database/arcadia-replicate/Tables/Refp/SousFamTable.php
Normal file
60
database/arcadia-replicate/Tables/Refp/SousFamTable.php
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
<?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.SOUS_FAM
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour SOUS_FAM
|
||||
*/
|
||||
final class SousFamTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'SOUS_FAM';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.SOUS_FAM 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_SOUSFAM')->primary()->comment('Oracle: NUMBER(0, 0) [PK]');
|
||||
$table->text('LIB_SOUSFAM')->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->boolean('UTILISABLE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('A_EPURER')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->boolean('NON_UTILISABLE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->unsignedBigInteger('COD_RGPT_SOUS_FAM')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
62
database/arcadia-replicate/Tables/Refp/TypEmbTable.php
Normal file
62
database/arcadia-replicate/Tables/Refp/TypEmbTable.php
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
<?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.TYP_EMB
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour TYP_EMB
|
||||
*/
|
||||
final class TypEmbTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'TYP_EMB';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.TYP_EMB 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->smallInteger('CODE')->primary()->comment('Oracle: NUMBER(3, 0) [PK]');
|
||||
$table->text('LIBELLE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('COMMENTAIRE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->boolean('UTILISABLE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->smallInteger('CODE_CONDIT')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->integer('UVERSION')->nullable()->comment('Oracle: NUMBER(6, 0)');
|
||||
$table->boolean('VRAC')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->string('TYPE_EMBALLAGE_GENFI', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->unsignedBigInteger('TRIMAN_L1')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->unsignedBigInteger('TRIMAN_L2')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
57
database/arcadia-replicate/Tables/Refp/TypeConditTable.php
Normal file
57
database/arcadia-replicate/Tables/Refp/TypeConditTable.php
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
<?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.TYPE_CONDIT
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour TYPE_CONDIT
|
||||
*/
|
||||
final class TypeConditTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'TYPE_CONDIT';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.TYPE_CONDIT 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_CONDIT')->primary()->comment('Oracle: NUMBER(0, 0) [PK]');
|
||||
$table->text('LIB_CONDIT')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->bigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->boolean('VRAC')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->text('LIB_INCO')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
<?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.TYPE_CONSERVATION
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour TYPE_CONSERVATION
|
||||
*/
|
||||
final class TypeConservationTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'TYPE_CONSERVATION';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.TYPE_CONSERVATION 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_CONSERVATION')->primary()->comment('Oracle: NUMBER(0, 0) [PK]');
|
||||
$table->text('LIB_CONSERVATION')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->smallInteger('FAM_CONSERVATION')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->bigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->smallInteger('TYPE_PROD_ESPADON')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->text('LIB_STD_ETIQUETTE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('LIB_INCO')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('STOREHANDTMPMINI')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('STOREHANDTMPMAXI')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->smallInteger('COD_TYPE_TEMP')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
56
database/arcadia-replicate/Tables/Refp/UtilisableTable.php
Normal file
56
database/arcadia-replicate/Tables/Refp/UtilisableTable.php
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
<?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.UTILISABLE
|
||||
* Type : TABLE
|
||||
* Description : Réplication miroir pour UTILISABLE
|
||||
*/
|
||||
final class UtilisableTable implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'UTILISABLE';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir TABLE REFP.UTILISABLE 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_UTILISABLE')->primary()->comment('Oracle: NUMBER(0, 0) [PK]');
|
||||
$table->text('LIB_UTILISABLE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->bigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->smallInteger('ETAT_UTIL')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
79
database/arcadia-replicate/Views/Gcp/DunIncoInfView.php
Normal file
79
database/arcadia-replicate/Views/Gcp/DunIncoInfView.php
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Database\ArcadiaReplicate\Views\Gcp;
|
||||
|
||||
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
|
||||
{
|
||||
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::name());
|
||||
}
|
||||
|
||||
$schema->create(self::name(), 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::name());
|
||||
}
|
||||
}
|
||||
57
database/arcadia-replicate/Views/Gcp/IncoLangView.php
Normal file
57
database/arcadia-replicate/Views/Gcp/IncoLangView.php
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Database\ArcadiaReplicate\Views\Gcp;
|
||||
|
||||
use Database\ArcadiaReplicate\TableOrView;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Schema\Builder;
|
||||
|
||||
/**
|
||||
* Schéma Oracle : GCP.INCO_LANG
|
||||
* Type : VIEW
|
||||
* Description : Réplication miroir pour INCO_LANG
|
||||
*/
|
||||
final class IncoLangView implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'GCP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'INCO_LANG';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir VIEW GCP.INCO_LANG 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('NO_ART')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('COD_LANG')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('IS_TRAD')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->dateTime('DAT_MAJ')->nullable()->comment('Oracle: TIMESTAMP(6)(6, 0)');
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
60
database/arcadia-replicate/Views/Gcp/VIncoArtSiteView.php
Normal file
60
database/arcadia-replicate/Views/Gcp/VIncoArtSiteView.php
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Database\ArcadiaReplicate\Views\Gcp;
|
||||
|
||||
use Database\ArcadiaReplicate\TableOrView;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Schema\Builder;
|
||||
|
||||
/**
|
||||
* Schéma Oracle : GCP.V_INCO_ART_SITE
|
||||
* Type : VIEW
|
||||
* Description : Réplication miroir pour V_INCO_ART_SITE
|
||||
*/
|
||||
final class VIncoArtSiteView implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'GCP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'V_INCO_ART_SITE';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir VIEW GCP.V_INCO_ART_SITE 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->unsignedBigInteger('ID_SOCIETE')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->unsignedBigInteger('NO_ART')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->smallInteger('NIVEAU')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->unsignedBigInteger('COD_SITE_GRP')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->date('DATE_DEBUT_EFFET')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->date('DATE_FIN_EFFET')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->smallInteger('COD_ATELIER')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->bigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Database\ArcadiaReplicate\Views\Refp;
|
||||
|
||||
use Database\ArcadiaReplicate\TableOrView;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Schema\Builder;
|
||||
|
||||
/**
|
||||
* Schéma Oracle : REFP.ARTICLE_REF_GENCOD
|
||||
* Type : VIEW
|
||||
* Description : Réplication miroir pour ARTICLE_REF_GENCOD
|
||||
*/
|
||||
final class ArticleRefGencodView implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'ARTICLE_REF_GENCOD';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir VIEW REFP.ARTICLE_REF_GENCOD 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('NO_ART')->comment('Oracle: NUMBER(0, 0) [PK]');
|
||||
$table->string('LIB_CCIAL', 140)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('GENCOD_POIDS_PRIV', 52)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('GENCOD_ADMIN_PRIV', 52)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('GENCOD_SYMB_PRIV', 52)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->bigInteger('SOCIETE')->comment('Oracle: NUMBER(0, 0) [PK]');
|
||||
$table->bigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->text('COM_FACTURATION')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->primary(['NO_ART', 'SOCIETE']);
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
90
database/arcadia-replicate/Views/Refp/DunIncoNosocView.php
Normal file
90
database/arcadia-replicate/Views/Refp/DunIncoNosocView.php
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Database\ArcadiaReplicate\Views\Refp;
|
||||
|
||||
use Database\ArcadiaReplicate\TableOrView;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Schema\Builder;
|
||||
|
||||
/**
|
||||
* Schéma Oracle : REFP.DUN_INCO_NOSOC
|
||||
* Type : VIEW
|
||||
* Description : Réplication miroir pour DUN_INCO_NOSOC
|
||||
*/
|
||||
final class DunIncoNosocView implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'DUN_INCO_NOSOC';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir VIEW REFP.DUN_INCO_NOSOC 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('NO_ART')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->text('DUN14')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('DUN_PALETTE', 56)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->boolean('IS_STANDARD')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->bigInteger('TYPE_CARTON')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('SOCIETE')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->decimal('LONGUEUR_COL', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->decimal('LARGEUR_COL', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->decimal('HAUTEUR_COL', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->bigInteger('PDS_NET_COL')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('TARE_COL')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('PDS_BRUT_COL')->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->decimal('HAUTEUR_PAL', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->bigInteger('TARE_PAL')->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->smallInteger('NB_COLIS_COUCHE')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->smallInteger('NB_COUCHE_PALETTE')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->integer('NB_COLIS_PALETTE')->nullable()->comment('Oracle: NUMBER(5, 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('UVERSION')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('COD_PCB')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('IS_SOC_SRDI')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('FICHE_MERE')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('COD_MARQUE')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->unsignedBigInteger('VERSION')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->boolean('ACTIVE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->string('COD_GENCOD_ADM', 52)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('COD_GENCOD_SYMB', 52)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('COD_GENCOD_POIDS', 52)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->smallInteger('EXPLOITANT')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->smallInteger('COD_FAMVTE')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->bigInteger('COD_SOUSFAM')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->unsignedBigInteger('SITE_REF_INCO')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->bigInteger('SOC_REF_INCO')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
88
database/arcadia-replicate/Views/Refp/DunIncoView.php
Normal file
88
database/arcadia-replicate/Views/Refp/DunIncoView.php
Normal file
|
|
@ -0,0 +1,88 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Database\ArcadiaReplicate\Views\Refp;
|
||||
|
||||
use Database\ArcadiaReplicate\TableOrView;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Schema\Builder;
|
||||
|
||||
/**
|
||||
* Schéma Oracle : REFP.DUN_INCO
|
||||
* Type : VIEW
|
||||
* Description : Réplication miroir pour DUN_INCO
|
||||
*/
|
||||
final class DunIncoView implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'DUN_INCO';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir VIEW REFP.DUN_INCO 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('NO_ART')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->text('DUN14')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('DUN_PALETTE', 56)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->boolean('IS_STANDARD')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->bigInteger('TYPE_CARTON')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('COD_SOCIETE')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->decimal('LONGUEUR_COL', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->decimal('LARGEUR_COL', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->decimal('HAUTEUR_COL', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->bigInteger('PDS_NET_COL')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('TARE_COL')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('PDS_BRUT_COL')->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->decimal('HAUTEUR_PAL', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->bigInteger('TARE_PAL')->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->smallInteger('NB_COLIS_COUCHE')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->smallInteger('NB_COUCHE_PALETTE')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->integer('NB_COLIS_PALETTE')->nullable()->comment('Oracle: NUMBER(5, 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('UVERSION')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('COD_PCB')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('PDS_BRUT_COL_SUPPL')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('PDS_BRUT_PAL_SUPPL')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('NB_COLIS_COUCHE_DUN')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('NB_COUCHE_PALETTE_DUN')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('NB_COLIS_PALETTE_DUN')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->integer('HAUTEUR_PAL_VIDE')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->bigInteger('TARE_COL_SUPPL')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('HAUTEUR_PAL_CHARG_DUN')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('HAUTEUR_PAL_DUN')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->unsignedBigInteger('CONTENANT_INCO')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->bigInteger('SOC_REF_INCO')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
112
database/arcadia-replicate/Views/Refp/EpurerFamVenteView.php
Normal file
112
database/arcadia-replicate/Views/Refp/EpurerFamVenteView.php
Normal file
|
|
@ -0,0 +1,112 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Database\ArcadiaReplicate\Views\Refp;
|
||||
|
||||
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
|
||||
{
|
||||
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::name());
|
||||
}
|
||||
|
||||
$schema->create(self::name(), 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::name());
|
||||
}
|
||||
}
|
||||
88
database/arcadia-replicate/Views/Refp/IncoArticleView.php
Normal file
88
database/arcadia-replicate/Views/Refp/IncoArticleView.php
Normal file
|
|
@ -0,0 +1,88 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Database\ArcadiaReplicate\Views\Refp;
|
||||
|
||||
use Database\ArcadiaReplicate\TableOrView;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Schema\Builder;
|
||||
|
||||
/**
|
||||
* Schéma Oracle : REFP.INCO_ARTICLE
|
||||
* Type : VIEW
|
||||
* Description : Réplication miroir pour INCO_ARTICLE
|
||||
*/
|
||||
final class IncoArticleView implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'INCO_ARTICLE';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir VIEW REFP.INCO_ARTICLE 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('NO_ART')->comment('Oracle: NUMBER(0, 0) [PK]');
|
||||
$table->string('LIB_CCIAL', 140)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->bigInteger('COD_SOC_IA')->comment('Oracle: NUMBER(0, 0) [PK]');
|
||||
$table->smallInteger('DLC_CCIAL')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->smallInteger('DTS')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->smallInteger('DUREE_VIE')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->string('ORI_PROD_INCO', 80)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->unsignedBigInteger('TARE_PRIVE')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->decimal('POIDS_MINI', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->decimal('POIDS_MAXI', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->bigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->decimal('POIDS_MOY_CALCULE', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->decimal('LONGUEUR_PRODUIT', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->decimal('LARGUEUR_PRODUIT', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->decimal('HAUTEUR_PRODUIT', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
||||
$table->bigInteger('POIDS_MOY_UNI')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('COD_TYP_CONDIT_PUB')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->string('COD_NDP', 100)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->smallInteger('COD_FAMVTE')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->string('COD_GENCOD_ADM', 52)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('COD_GENCOD_SYMB', 52)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->boolean('IS_HALLAL')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->text('LIB_CAISSE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->bigInteger('COD_MARQUE')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->boolean('COD_POID_CST_UVC')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->bigInteger('COD_SOUSFAM')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->smallInteger('FRAIS_CONGELE')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->smallInteger('UTILISABLE_GROUPE')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->string('LIB_COMPOSTAGE', 120)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->unsignedBigInteger('SITE_REF_INCO')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->bigInteger('COD_ART_ASSO_COMP')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('COD_ART_ASSOCIE')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->smallInteger('DLC_RM')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->smallInteger('TYPE_PRODUCTION')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->smallInteger('CALIBRE_OEUFS')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
$table->primary(['NO_ART', 'COD_SOC_IA']);
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,60 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Database\ArcadiaReplicate\Views\Refp;
|
||||
|
||||
use Database\ArcadiaReplicate\TableOrView;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Schema\Builder;
|
||||
|
||||
/**
|
||||
* Schéma Oracle : REFP.INCO_COMPO_NUTRISCORE
|
||||
* Type : VIEW
|
||||
* Description : Réplication miroir pour INCO_COMPO_NUTRISCORE
|
||||
*/
|
||||
final class IncoCompoNutriscoreView implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'INCO_COMPO_NUTRISCORE';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir VIEW REFP.INCO_COMPO_NUTRISCORE 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('ID_INCO')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->string('NUMERO', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->bigInteger('SCORE_NUTRI')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->string('CLASSEMENT', 4)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('NUTRI_SCORE_2022', 4)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->date('DAT_CRE')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->date('DAT_MAJ')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->bigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
55
database/arcadia-replicate/Views/Refp/IncoSocRefIncoView.php
Normal file
55
database/arcadia-replicate/Views/Refp/IncoSocRefIncoView.php
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Database\ArcadiaReplicate\Views\Refp;
|
||||
|
||||
use Database\ArcadiaReplicate\TableOrView;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Schema\Builder;
|
||||
|
||||
/**
|
||||
* Schéma Oracle : REFP.INCO_SOC_REF_INCO
|
||||
* Type : VIEW
|
||||
* Description : Réplication miroir pour INCO_SOC_REF_INCO
|
||||
*/
|
||||
final class IncoSocRefIncoView implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'INCO_SOC_REF_INCO';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir VIEW REFP.INCO_SOC_REF_INCO 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('ID_INCO')->primary()->comment('Oracle: NUMBER(0, 0) [PK]');
|
||||
$table->bigInteger('COD_SOC_FACT')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
64
database/arcadia-replicate/Views/Refp/SitProdIncoView.php
Normal file
64
database/arcadia-replicate/Views/Refp/SitProdIncoView.php
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Database\ArcadiaReplicate\Views\Refp;
|
||||
|
||||
use Database\ArcadiaReplicate\TableOrView;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Schema\Builder;
|
||||
|
||||
/**
|
||||
* Schéma Oracle : REFP.SIT_PROD_INCO
|
||||
* Type : VIEW
|
||||
* Description : Réplication miroir pour SIT_PROD_INCO
|
||||
*/
|
||||
final class SitProdIncoView implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'SIT_PROD_INCO';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir VIEW REFP.SIT_PROD_INCO 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->unsignedBigInteger('NO_ART')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->bigInteger('COD_SITE_GRP')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->text('NOM_SITE')->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->text('NUM_AGREMENT')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('COD_EMBAL')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('CERTIFICATION')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->unsignedBigInteger('COD_SOCIETE')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->bigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->string('CP', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('VILLE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
58
database/arcadia-replicate/Views/Refp/SocDlcIncoView.php
Normal file
58
database/arcadia-replicate/Views/Refp/SocDlcIncoView.php
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Database\ArcadiaReplicate\Views\Refp;
|
||||
|
||||
use Database\ArcadiaReplicate\TableOrView;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Schema\Builder;
|
||||
|
||||
/**
|
||||
* Schéma Oracle : REFP.SOC_DLC_INCO
|
||||
* Type : VIEW
|
||||
* Description : Réplication miroir pour SOC_DLC_INCO
|
||||
*/
|
||||
final class SocDlcIncoView implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'SOC_DLC_INCO';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir VIEW REFP.SOC_DLC_INCO 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('NO_ART')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('ID_SOCIETE')->primary()->comment('Oracle: NUMBER(0, 0) [PK]');
|
||||
$table->smallInteger('DLC_CCIAL')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->smallInteger('DTS')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->smallInteger('UTILISABLE_SITE')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
$table->bigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Database\ArcadiaReplicate\Views\Refp;
|
||||
|
||||
use Database\ArcadiaReplicate\TableOrView;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Schema\Builder;
|
||||
|
||||
/**
|
||||
* Schéma Oracle : REFP.VISUEL_EXPORT_GENFI
|
||||
* Type : VIEW
|
||||
* Description : Réplication miroir pour VISUEL_EXPORT_GENFI
|
||||
*/
|
||||
final class VisuelExportGenfiView implements TableOrView
|
||||
{
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
}
|
||||
|
||||
public static function name(): string
|
||||
{
|
||||
return 'VISUEL_EXPORT_GENFI';
|
||||
}
|
||||
|
||||
public static function isView(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public static function description(): string
|
||||
{
|
||||
return 'Objet miroir VIEW REFP.VISUEL_EXPORT_GENFI 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->unsignedBigInteger('NO_ART')->comment('Oracle: NUMBER(10, 0) [PK]');
|
||||
$table->unsignedBigInteger('CODE_VISUEL')->comment('Oracle: NUMBER(10, 0) [PK]');
|
||||
$table->unsignedBigInteger('CODE_TYPEVUE')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->boolean('COPYRIGHT')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->integer('LANGUE')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->bigInteger('ORDRE')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->text('FILENAME')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->integer('UVERSION')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
$table->primary(['NO_ART', 'CODE_VISUEL']);
|
||||
});
|
||||
}
|
||||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Database\ArcadiaReplicate\Migrator;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Support\Facades\Config;
|
||||
|
||||
return new class () extends Migration
|
||||
{
|
||||
private Migrator $migrator;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$connection = Config::string('database.arcadia_meta_model');
|
||||
$this->migrator = new Migrator($connection);
|
||||
}
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
$this->migrator->up();
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
$this->migrator->down();
|
||||
}
|
||||
};
|
||||
276
database/seeders/ArcadiaReplicateSeeder.php
Normal file
276
database/seeders/ArcadiaReplicateSeeder.php
Normal file
|
|
@ -0,0 +1,276 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Database\ArcadiaReplicate\Factories\Metap\MetaUtilFactory;
|
||||
use Database\ArcadiaReplicate\Factories\Refp\AdditifFactory;
|
||||
use Database\ArcadiaReplicate\Factories\Refp\FamVenteFactory;
|
||||
use Database\ArcadiaReplicate\Factories\Refp\IncoAllegationsFactory;
|
||||
use Database\ArcadiaReplicate\Factories\Refp\IncoAllergeneFactory;
|
||||
use Database\ArcadiaReplicate\Factories\Refp\IncoCompoFactory;
|
||||
use Database\ArcadiaReplicate\Factories\Refp\IncoFactory;
|
||||
use Database\ArcadiaReplicate\Factories\Refp\MarqueFactory;
|
||||
use Database\ArcadiaReplicate\Factories\Refp\RuPersonneSirhFactory;
|
||||
use Database\ArcadiaReplicate\Factories\Refp\ServiceConsoIncoFactory;
|
||||
use Database\ArcadiaReplicate\Tables\Metap\MetaUtilTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\AdditifTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\FamVenteTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\IncoAllegationsTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\IncoAllergeneTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\IncoCompoTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\IncoTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\MarqueTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\RuPersonneSirhTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\ServiceConsoIncoTable;
|
||||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Support\Facades\Config;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
final class ArcadiaReplicateSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Seed the replicated Arcadia Oracle meta-model database.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
$connection = Config::string('database.arcadia_meta_model');
|
||||
|
||||
$this->seedMetaUtil($connection);
|
||||
$this->seedSirh($connection);
|
||||
$this->seedMarques($connection);
|
||||
$this->seedFamVente($connection);
|
||||
$this->seedAdditifs($connection);
|
||||
$this->seedAllergenesAndAllegations($connection);
|
||||
$this->seedServicesConso($connection);
|
||||
$this->seedIncoAndCompo($connection);
|
||||
}
|
||||
|
||||
private function seedMetaUtil(string $connection): void
|
||||
{
|
||||
$users = [
|
||||
['COD_UTIL' => 'RA0706430', 'LIB_UTIL' => 'Responsable Qualité', 'EMAIL' => 'qualite@ldc.fr', 'GROUPE' => 65],
|
||||
['COD_UTIL' => 'BM6501226', 'LIB_UTIL' => 'Chef de Produit Marketing', 'EMAIL' => 'marketing@ldc.fr', 'GROUPE' => 2],
|
||||
['COD_UTIL' => 'SB6501847', 'LIB_UTIL' => 'Responsable Commercial', 'EMAIL' => 'commercial@ldc.fr', 'GROUPE' => 1],
|
||||
['COD_UTIL' => 'ME0101979', 'LIB_UTIL' => 'Administrateur SI', 'EMAIL' => 'admin.si@ldc.fr', 'GROUPE' => 0],
|
||||
['COD_UTIL' => 'SG6501248', 'LIB_UTIL' => 'Chargé R&D Nutrition', 'EMAIL' => 'rd.nutrition@ldc.fr', 'GROUPE' => 1],
|
||||
];
|
||||
|
||||
foreach ($users as $user) {
|
||||
if (! DB::connection($connection)->table(MetaUtilTable::name())->where('COD_UTIL', $user['COD_UTIL'])->exists()) {
|
||||
MetaUtilFactory::new($connection)->create($user);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function seedSirh(string $connection): void
|
||||
{
|
||||
$employees = [
|
||||
['MATRICULE_FIC' => '4300710', 'SITE_FIC' => 'AVIGNO', 'ETAB_FIC' => 'ET29A', 'STATUT_FIC' => 'OUV', 'SERVICE_FIC' => '25'],
|
||||
['5000920', 'SNVSER', 'ET11G', 'OUV', '13'],
|
||||
['3900757', 'EPC', 'ET15', 'AMT', '16'],
|
||||
['109873', 'LDCVOL', 'ET50', 'CAD', '25'],
|
||||
['4911791', 'SNVVOL', 'ET11E', 'OUV', '11'],
|
||||
];
|
||||
|
||||
foreach ($employees as $emp) {
|
||||
$mat = is_array($emp) && isset($emp['MATRICULE_FIC']) ? $emp['MATRICULE_FIC'] : $emp[0];
|
||||
if (! DB::connection($connection)->table(RuPersonneSirhTable::name())->where('MATRICULE_FIC', $mat)->exists()) {
|
||||
if (isset($emp['MATRICULE_FIC'])) {
|
||||
RuPersonneSirhFactory::new($connection)->create($emp);
|
||||
} else {
|
||||
RuPersonneSirhFactory::new($connection)->create([
|
||||
'MATRICULE_FIC' => $emp[0],
|
||||
'COD_PERSONNE' => $emp[0],
|
||||
'SITE_FIC' => $emp[1],
|
||||
'ETAB_FIC' => $emp[2],
|
||||
'ETABLISSEMENT' => $emp[2],
|
||||
'STATUT_FIC' => $emp[3],
|
||||
'SERVICE_FIC' => $emp[4],
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function seedMarques(string $connection): void
|
||||
{
|
||||
$marques = [
|
||||
['COD_MARQ' => 246, 'LIB_MARQ' => 'LE GAULOIS', 'COMMENTAIRE' => 'Marque Le Gaulois (Volailles & Panés)'],
|
||||
['COD_MARQ' => 466, 'LIB_MARQ' => 'LOUE', 'COMMENTAIRE' => 'Fermiers de Loué Label Rouge'],
|
||||
['COD_MARQ' => 565, 'LIB_MARQ' => 'MARIE', 'COMMENTAIRE' => 'Plats cuisinés & surgelés Marie'],
|
||||
['COD_MARQ' => 71, 'LIB_MARQ' => 'ID HALAL', 'COMMENTAIRE' => 'Gamme certifiée Halal'],
|
||||
['COD_MARQ' => 793, 'LIB_MARQ' => 'POPROSTU', 'COMMENTAIRE' => 'Marque MDD pour la Pologne'],
|
||||
['COD_MARQ' => 631, 'LIB_MARQ' => 'LA MAISON DE MAURICE', 'COMMENTAIRE' => 'Marque distributeur Export'],
|
||||
['COD_MARQ' => 179, 'LIB_MARQ' => 'BX FOOD', 'COMMENTAIRE' => 'Marque BX Food'],
|
||||
['COD_MARQ' => 725, 'LIB_MARQ' => 'ALPEKER', 'COMMENTAIRE' => 'Marque Export Italie'],
|
||||
['COD_MARQ' => 740, 'LIB_MARQ' => 'AQUILA', 'COMMENTAIRE' => 'Marque Export Hongrie'],
|
||||
];
|
||||
|
||||
foreach ($marques as $marque) {
|
||||
if (! DB::connection($connection)->table(MarqueTable::name())->where('COD_MARQ', $marque['COD_MARQ'])->exists()) {
|
||||
MarqueFactory::new($connection)->create($marque);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function seedFamVente(string $connection): void
|
||||
{
|
||||
$familles = [
|
||||
['COD_FAMVTE' => 406, 'LIB_FAMVTE' => 'FOURNITURES EXPEDITION'],
|
||||
['COD_FAMVTE' => 31, 'LIB_FAMVTE' => 'PRODUITS CUITS (TVA 20%)'],
|
||||
['COD_FAMVTE' => 94, 'LIB_FAMVTE' => 'DCPE POULET NOIR'],
|
||||
['COD_FAMVTE' => 306, 'LIB_FAMVTE' => 'OIE LOUE'],
|
||||
['COD_FAMVTE' => 319, 'LIB_FAMVTE' => 'DCPE CANARD GRAS ELABORE'],
|
||||
];
|
||||
|
||||
foreach ($familles as $fam) {
|
||||
if (! DB::connection($connection)->table(FamVenteTable::name())->where('COD_FAMVTE', $fam['COD_FAMVTE'])->exists()) {
|
||||
FamVenteFactory::new($connection)->create($fam);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function seedAdditifs(string $connection): void
|
||||
{
|
||||
$additifs = [
|
||||
['COD_EUROPEEN' => 'E250', 'MOLECULE' => 'Nitrite de sodium', 'FONCTION' => 'Conservateur', 'RISQUE' => 2],
|
||||
['COD_EUROPEEN' => 'E316', 'MOLECULE' => 'Érythorbate de sodium', 'FONCTION' => 'Antioxydant', 'RISQUE' => 1],
|
||||
['COD_EUROPEEN' => 'E392', 'MOLECULE' => 'Extrait de romarin', 'FONCTION' => 'Antioxydant', 'RISQUE' => 0],
|
||||
['COD_EUROPEEN' => 'E469', 'MOLECULE' => 'Carboxyméthylcellulose enzymatique', 'FONCTION' => 'Épaississant', 'RISQUE' => 1],
|
||||
['COD_EUROPEEN' => 'E470a', 'MOLECULE' => 'Sels d\'acides gras', 'FONCTION' => 'Émulsifiant', 'RISQUE' => 1],
|
||||
['COD_EUROPEEN' => 'E471', 'MOLECULE' => 'Mono et diglycérides d\'acides gras', 'FONCTION' => 'Émulsifiant', 'RISQUE' => 1],
|
||||
['COD_EUROPEEN' => 'E472a', 'MOLECULE' => 'Esters acétiques de mono/diglycérides', 'FONCTION' => 'Émulsifiant', 'RISQUE' => 1],
|
||||
['COD_EUROPEEN' => 'E472b', 'MOLECULE' => 'Esters lactiques de mono/diglycérides', 'FONCTION' => 'Émulsifiant', 'RISQUE' => 1],
|
||||
];
|
||||
|
||||
foreach ($additifs as $additif) {
|
||||
if (! DB::connection($connection)->table(AdditifTable::name())->where('COD_EUROPEEN', $additif['COD_EUROPEEN'])->exists()) {
|
||||
AdditifFactory::new($connection)->create($additif);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function seedAllergenesAndAllegations(string $connection): void
|
||||
{
|
||||
$allergenes = [
|
||||
['ID' => 1, 'LIB' => 'Gluten'],
|
||||
['ID' => 2, 'LIB' => 'Crustacés'],
|
||||
['ID' => 3, 'LIB' => 'Œufs'],
|
||||
['ID' => 4, 'LIB' => 'Poissons'],
|
||||
['ID' => 5, 'LIB' => 'Arachides'],
|
||||
['ID' => 6, 'LIB' => 'Soja'],
|
||||
['ID' => 7, 'LIB' => 'Lait'],
|
||||
['ID' => 8, 'LIB' => 'Fruits à coque'],
|
||||
['ID' => 9, 'LIB' => 'Céleri'],
|
||||
['ID' => 10, 'LIB' => 'Moutarde'],
|
||||
['ID' => 11, 'LIB' => 'Graines de sésame'],
|
||||
];
|
||||
|
||||
foreach ($allergenes as $allergene) {
|
||||
if (! DB::connection($connection)->table(IncoAllergeneTable::name())->where('ID', $allergene['ID'])->exists()) {
|
||||
IncoAllergeneFactory::new($connection)->create($allergene);
|
||||
}
|
||||
}
|
||||
|
||||
$allegations = [
|
||||
['CODE' => 1, 'LIBELLE' => 'Sans conservateur'],
|
||||
['CODE' => 2, 'LIBELLE' => 'Sans huile de palme'],
|
||||
['CODE' => 3, 'LIBELLE' => 'Volaille 100% française'],
|
||||
['CODE' => 4, 'LIBELLE' => 'Élevé en liberté 84 jours'],
|
||||
['CODE' => 5, 'LIBELLE' => 'Sans arôme artificiel'],
|
||||
];
|
||||
|
||||
foreach ($allegations as $allegation) {
|
||||
if (! DB::connection($connection)->table(IncoAllegationsTable::name())->where('CODE', $allegation['CODE'])->exists()) {
|
||||
IncoAllegationsFactory::new($connection)->create($allegation);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function seedServicesConso(string $connection): void
|
||||
{
|
||||
$services = [
|
||||
[
|
||||
'ID' => 24,
|
||||
'NOM' => 'Service clients - Groupe Auchan',
|
||||
'ADRESSE1' => 'BP 682',
|
||||
'CP' => '59650',
|
||||
'VILLE' => 'Villeneuve d\'Ascq',
|
||||
'TELEPHONE' => '03.59.30.59.30',
|
||||
'MAIL' => 'service.conso@auchan.fr',
|
||||
'MARQUE' => 210,
|
||||
'LIB' => 'Service conso Pouce Auchan',
|
||||
'SITE_INT' => 'www.auchan.fr',
|
||||
],
|
||||
[
|
||||
'ID' => 28,
|
||||
'NOM' => 'Service consommateurs Carrefour',
|
||||
'ADRESSE1' => 'CMI - TSA 91431',
|
||||
'CP' => '91300',
|
||||
'VILLE' => 'Massy',
|
||||
'TELEPHONE' => '06.69.39.70.00',
|
||||
'MAIL' => 'service.conso@carrefour.fr',
|
||||
'MARQUE' => 448,
|
||||
'LIB' => 'Service conso Carrefour',
|
||||
'SITE_INT' => 'www.carrefour.fr',
|
||||
],
|
||||
[
|
||||
'ID' => 30,
|
||||
'NOM' => 'Service clients Intermarché',
|
||||
'ADRESSE1' => '24 rue Auguste Chabrières',
|
||||
'CP' => '75000',
|
||||
'VILLE' => 'Paris',
|
||||
'TELEPHONE' => '08.00.00.81.80',
|
||||
'MAIL' => 'service.conso@intermarche.com',
|
||||
'MARQUE' => 419,
|
||||
'LIB' => 'Service conso Intermarché',
|
||||
'SITE_INT' => 'www.intermarche.com',
|
||||
],
|
||||
[
|
||||
'ID' => 54,
|
||||
'NOM' => 'Service Consommateurs LDC',
|
||||
'ADRESSE1' => 'ZI Saint Laurent - BP 88',
|
||||
'CP' => '72302',
|
||||
'VILLE' => 'Sablé-sur-Sarthe',
|
||||
'TELEPHONE' => '02.43.62.70.00',
|
||||
'MAIL' => 'service.conso@ldc.fr',
|
||||
'MARQUE' => 246,
|
||||
'LIB' => 'Service conso Groupe LDC',
|
||||
'SITE_INT' => 'www.ldc.fr',
|
||||
],
|
||||
];
|
||||
|
||||
foreach ($services as $service) {
|
||||
if (! DB::connection($connection)->table(ServiceConsoIncoTable::name())->where('ID', $service['ID'])->exists()) {
|
||||
ServiceConsoIncoFactory::new($connection)->create($service);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function seedIncoAndCompo(string $connection): void
|
||||
{
|
||||
// 1. Compositions nutritionnelles
|
||||
if (! DB::connection($connection)->table(IncoCompoTable::name())->where('ID', 96504)->exists()) {
|
||||
IncoCompoFactory::new($connection)->steaksDinde()->create();
|
||||
}
|
||||
|
||||
if (! DB::connection($connection)->table(IncoCompoTable::name())->where('ID', 124503)->exists()) {
|
||||
IncoCompoFactory::new($connection)->pouletFermierNoir()->create();
|
||||
}
|
||||
|
||||
// 2. Fiches INCO liées
|
||||
if (! DB::connection($connection)->table(IncoTable::name())->where('NO_ART', 47789)->exists()) {
|
||||
IncoFactory::new($connection)->nuggetsPoulet()->withCompo(96504)->create();
|
||||
}
|
||||
|
||||
if (! DB::connection($connection)->table(IncoTable::name())->where('NO_ART', 47996)->exists()) {
|
||||
IncoFactory::new($connection)->gesiersEtFoies()->withCompo(124503)->create();
|
||||
}
|
||||
|
||||
if (! DB::connection($connection)->table(IncoTable::name())->where('NO_ART', 4)->exists()) {
|
||||
IncoFactory::new($connection)->pouletFermierLoue()->create();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -18,6 +18,7 @@ final class DatabaseSeeder extends Seeder
|
|||
IncoSheetSeeder::class,
|
||||
ApiClientSeeder::class,
|
||||
BrandSeeder::class,
|
||||
ArcadiaReplicateSeeder::class,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,279 +0,0 @@
|
|||
# Classification Inco demandée a TOTO GPT
|
||||
|
||||
Voici une classification des champs en catégories sémantiques cohérentes pour des données nutritionnelles INCO :
|
||||
|
||||
---
|
||||
|
||||
## 🏷️ Classification des champs nutritionnels
|
||||
|
||||
### 1. **Identification / Métadonnées**
|
||||
| Champ PHP | Constante | Description |
|
||||
| --------- | --------- | -------------------- |
|
||||
| `nom` | `NOM` | Nom du produit/fiche |
|
||||
| `numero` | `NUMERO` | Numéro de la fiche |
|
||||
| `source` | `SOURCE` | Source des données |
|
||||
|
||||
---
|
||||
|
||||
### 2. **Valeurs énergétiques - par 100g/100ml (référence `_R`)**
|
||||
| Champ PHP | Constante | Description |
|
||||
| ----------------------- | ------------------ | --------------------------------- |
|
||||
| `tailleReference` | `TAILLE_REF` | Taille de la portion de référence |
|
||||
| `valEnergKjReference` | `VAL_ENERG_KJ_R` | Énergie en kJ / 100g |
|
||||
| `valEnergKcalReference` | `VAL_ENERG_KCAL_R` | Énergie en kcal / 100g |
|
||||
|
||||
---
|
||||
|
||||
### 3. **Macronutriments - par 100g/100ml (`_R`) + précisions (`_PREC`)**
|
||||
| Champ PHP | Constante | Description |
|
||||
| ----------------------------------------------------------- | ------------- | -------------------------- |
|
||||
| `matGrassReference` / `matGrassReferencePrec` | `MAT_GRASS_R` | Matières grasses / 100g |
|
||||
| `acideGrasSatureReference` / `acideGrasSatureReferencePrec` | `AGS_R` | Acides gras saturés / 100g |
|
||||
| `glucidesReference` / `glucidesReferencePrec` | `GLUCIDES_R` | Glucides / 100g |
|
||||
| `sucreReference` / `sucreReferencePrec` | `SUCRE_R` | Sucres / 100g |
|
||||
| `fibAlimReference` / `fibAlimReferencePrec` | `FIB_ALIM_R` | Fibres alimentaires / 100g |
|
||||
| `proteineReference` / `proteineReferencePrec` | `PROTEINE_R` | Protéines / 100g |
|
||||
| `selReference` / `selReferencePrec` | `SEL_R` | Sel / 100g |
|
||||
| `sodiumReference` | `SODIUM_R` | Sodium / 100g |
|
||||
|
||||
---
|
||||
|
||||
### 4. **Fruits, légumes, noix - par 100g/100ml (`_R`)**
|
||||
| Champ PHP | Constante | Description |
|
||||
| -------------------------- | --------------------- | ------------------------------- |
|
||||
| `fruitsReference` | `FRUITS_R` | Teneur en fruits / 100g |
|
||||
| `fruitsCoqueSechReference` | `FRUITS_COQUE_SECH_R` | Fruits à coque et séchés / 100g |
|
||||
| `pourcentFruits` | `POURCENT_FRUITS` | % fruits (global) |
|
||||
|
||||
---
|
||||
|
||||
### 5. **Valeurs nutritionnelles - par portion (`_P`) + précisions (`_PREC`)**
|
||||
| Champ PHP | Constante | Description |
|
||||
| ------------------------------------------------------- | --------------------- | ---------------------------------- |
|
||||
| `taillePortion` | `TAILLE_PORT` | Taille de la portion |
|
||||
| `valEnergKjPortion` | `VAL_ENERG_KJ_P` | Énergie kJ / portion |
|
||||
| `valEnergKcalPortion` | `VAL_ENERG_KCAL_P` | Énergie kcal / portion |
|
||||
| `matGrassPortion` / `matGrassPortionPrec` | `MAT_GRASS_P` | Matières grasses / portion |
|
||||
| `acideGrasSaturePortion` / `acideGrasSaturePortionPrec` | `AGS_P` | Acides gras saturés / portion |
|
||||
| `glucidesPortion` / `glucidesPortionPrec` | `GLUCIDES_P` | Glucides / portion |
|
||||
| `sucrePortion` / `sucrePortionPrec` | `SUCRE_P` | Sucres / portion |
|
||||
| `fibAlimPortion` / `fibAlimPortionPrec` | `FIB_ALIM_P` | Fibres / portion |
|
||||
| `proteinePortion` / `proteinePortionPrec` | `PROTEINE_P` | Protéines / portion |
|
||||
| `sodiumPortion` | `SODIUM_P` | Sodium / portion |
|
||||
| `selPortion` / `selPortionPrec` | `SEL_P` | Sel / portion |
|
||||
| `fruitsPortion` | `FRUITS_P` | Fruits / portion |
|
||||
| `fruitsCoqueSechPortion` | `FRUITS_COQUE_SECH_P` | Fruits à coque et séchés / portion |
|
||||
|
||||
---
|
||||
|
||||
### 6. **Pourcentages des apports de référence (`POURCENT_APPORT_REF_*`)**
|
||||
| Champ PHP | Constante | Description |
|
||||
| -------------------------- | ------------------------------ | -------------------------------- |
|
||||
| `pourcentApportRefE14P` | `POURCENT_APPORT_REF_E14_P` | % AR énergie E14 / portion |
|
||||
| `pourcentApportRefKjoP` | `POURCENT_APPORT_REF_KJO_P` | % AR énergie kJ / portion |
|
||||
| `pourcentApportRefFatP` | `POURCENT_APPORT_REF_FAT_P` | % AR matières grasses / portion |
|
||||
| `pourcentApportRefFatsatP` | `POURCENT_APPORT_REF_FATSAT_P` | % AR graisses saturées / portion |
|
||||
| `pourcentApportRefChovalP` | `POURCENT_APPORT_REF_CHOVAL_P` | % AR glucides / portion |
|
||||
| `pourcentApportRefSugarP` | `POURCENT_APPORT_REF_SUGAR_P` | % AR sucres / portion |
|
||||
| `pourcentApportRefProP` | `POURCENT_APPORT_REF_PRO_P` | % AR protéines / portion |
|
||||
| `pourcentApportRefSalteqP` | `POURCENT_APPORT_REF_SALTEQ_P` | % AR sel / portion |
|
||||
|
||||
---
|
||||
|
||||
### 7. **Nutri-Score**
|
||||
| Champ PHP | Constante | Description |
|
||||
| ----------------- | ------------------- | ---------------------------------------------------- |
|
||||
| `composanteN` | `COMPOSANTE_N` | Composante négative (énergie, graisses, sucres, sel) |
|
||||
| `composanteN2022` | `COMPOSANTE_N_2022` | Composante négative - algorithme 2022 |
|
||||
| `composanteP` | `COMPOSANTE_P` | Composante positive (fibres, protéines, fruits) |
|
||||
| `composanteP2022` | `COMPOSANTE_P_2022` | Composante positive - algorithme 2022 |
|
||||
| `scoreNutri` | `SCORE_NUTRI` | Score Nutri-Score brut |
|
||||
| `scoreNutri2022` | `SCORE_NUTRI_2022` | Score Nutri-Score 2022 |
|
||||
| `classement` | `CLASSEMENT` | Lettre Nutri-Score (A–E) |
|
||||
| `nutriScore2022` | `NUTRI_SCORE_2022` | Nutri-Score lettre - algorithme 2022 |
|
||||
| `nutriAArt` | `NUTRI_A_ART` | Flag article Nutri-Score A |
|
||||
|
||||
---
|
||||
|
||||
### 8. **Points de calcul du Nutri-Score**
|
||||
| Champ PHP | Constante | Description |
|
||||
| ------------------------------ | ------------------ | -------------------------------- |
|
||||
| `pointsEnergie` | `POINTS_ENERGIE` | Points énergie |
|
||||
| `pointsAcideGrasSature` | `POINTS_AGS` | Points acides gras saturés |
|
||||
| `pointsSucres` | `POINTS_SUCRES` | Points sucres |
|
||||
| `pointsSel` | `POINTS_SEL` | Points sel |
|
||||
| `pointsFibres` | `POINTS_FIBRES` | Points fibres |
|
||||
| `pointsProteines` | `POINTS_PROTEINES` | Points protéines |
|
||||
| `pointsFruitsLegumesNoixFrais` | `POINTS_FNL_FRAIS` | Points fruits/noix/légumes frais |
|
||||
|
||||
---
|
||||
|
||||
### 9. **FNL (Fruits, Noix, Légumes)**
|
||||
| Champ PHP | Constante | Description |
|
||||
| -------------------------------- | -------------------- | -------------------------- |
|
||||
| `fruitLegumeNoixFrais` | `FNL_FRAIS` | Teneur FNL frais / 100g |
|
||||
| `fruitLegumeNoixFraisPortion` | `FNL_FRAIS_PORTION` | Teneur FNL frais / portion |
|
||||
| `pourcentFruitsLegumesNoixFrais` | `POURCENT_FNL_FRAIS` | % FNL frais |
|
||||
|
||||
---
|
||||
|
||||
### 10. **Ratio / Indicateurs complémentaires**
|
||||
| Champ PHP | Constante | Description |
|
||||
| ------------- | -------------- | ------------------------------------------- |
|
||||
| `pSurL` | `P_SUR_L` | Ratio P/L (protéines sur lipides) |
|
||||
| `viandeRouge` | `VIANDE_ROUGE` | Flag viande rouge (impact Nutri-Score 2022) |
|
||||
|
||||
---
|
||||
|
||||
### 11. **Micronutriments détaillés (`NUT_*`)**
|
||||
|
||||
Cette famille regroupe les vitamines, minéraux, acides aminés et acides gras détaillés - typiquement issus de bases comme **Ciqual** ou **FoodData Central**.
|
||||
|
||||
#### 11a. Minéraux & Oligo-éléments
|
||||
| Champ PHP | Constante |
|
||||
| ---------- | ---------------------- |
|
||||
| `nutCa` | `NUT_CA` - Calcium |
|
||||
| `nutMg` | `NUT_MG` - Magnésium |
|
||||
| `nutK` | `NUT_K` - Potassium |
|
||||
| `nutP` | `NUT_P` - Phosphore |
|
||||
| `nutCld` | `NUT_CLD` - Chlorure |
|
||||
| `nutFe` | `NUT_FE` - Fer |
|
||||
| `nutZn` | `NUT_ZN` - Zinc |
|
||||
| `nutCu` | `NUT_CU` - Cuivre |
|
||||
| `nutMn` | `NUT_MN` - Manganèse |
|
||||
| `nutSe` | `NUT_SE` - Sélénium |
|
||||
| `nutId` | `NUT_ID` - Iode |
|
||||
| `nutCr` | `NUT_CR` - Chrome |
|
||||
| `nutMo` | `NUT_MO` - Molybdène |
|
||||
| `nutS6` | `NUT_S6` - Soufre |
|
||||
| `nutNitra` | `NUT_NITRA` - Nitrates |
|
||||
|
||||
#### 11b. Vitamines
|
||||
| Champ PHP | Constante |
|
||||
| ----------- | ---------------------------------------- |
|
||||
| `nutVita` | `NUT_VITA` - Vitamine A |
|
||||
| `nutVitb6` | `NUT_VITB6` - Vitamine B6 |
|
||||
| `nutVitb12` | `NUT_VITB12` - Vitamine B12 |
|
||||
| `nutVitc` | `NUT_VITC` - Vitamine C |
|
||||
| `nutVitd` | `NUT_VITD` - Vitamine D |
|
||||
| `nutVite` | `NUT_VITE` - Vitamine E |
|
||||
| `nutVitk` | `NUT_VITK` - Vitamine K |
|
||||
| `nutChocal` | `NUT_CHOCAL` - Cholécalciférol (vit. D3) |
|
||||
| `nutNia` | `NUT_NIA` - Niacine (B3) |
|
||||
| `nutRibf` | `NUT_RIBF` - Riboflavine (B2) |
|
||||
| `nutThia` | `NUT_THIA` - Thiamine (B1) |
|
||||
| `nutPantac` | `NUT_PANTAC` - Acide pantothénique (B5) |
|
||||
| `nutBiot` | `NUT_BIOT` - Biotine (B8) |
|
||||
| `nutFoldfe` | `NUT_FOLDFE` - Folates équivalents (B9) |
|
||||
|
||||
#### 11c. Glucides détaillés
|
||||
| Champ PHP | Constante |
|
||||
| ------------ | ----------------------------------------- |
|
||||
| `nutStarch` | `NUT_STARCH` - Amidon |
|
||||
| `nutMaltdex` | `NUT_MALTDEX` - Maltodextrines |
|
||||
| `nutSucs` | `NUT_SUCS` - Saccharose |
|
||||
| `nutGlus` | `NUT_GLUS` - Glucose |
|
||||
| `nutLacs` | `NUT_LACS` - Lactose |
|
||||
| `nutMals` | `NUT_MALS` - Maltose |
|
||||
| `nutGalfb` | `NUT_GALFB` - Galactose |
|
||||
| `nutGHc` | `NUT_G_HC` - Glucides hydrates de carbone |
|
||||
| `nutFrufb` | `NUT_FRUFB` - Fructose lié (fibre) |
|
||||
| `nutFrus` | `NUT_FRUS` - Fructose libre |
|
||||
| `nutOlsac` | `NUT_OLSAC` - Oligosaccharides |
|
||||
| `nutPolyl` | `NUT_POLYL` - Polyols |
|
||||
| `nutFibsol` | `NUT_FIBSOL` - Fibres solubles |
|
||||
| `nutInotl` | `NUT_INOTL` - Inositol |
|
||||
|
||||
#### 11d. Lipides / Acides gras détaillés
|
||||
> Nomenclature lipidique standard (IUPAC / Ciqual) - `FXXdY` = chaîne carbonée XX, Y insaturations
|
||||
|
||||
| Champ PHP | Constante | Nom usuel |
|
||||
| ----------------------- | ------------------------ | ----------------------------------- |
|
||||
| `nutAgt` | `NUT_AGT` | Acides gras trans |
|
||||
| `nutChol` | `NUT_CHOL` | Cholestérol |
|
||||
| `nutFd` | `NUT_FD` | Lipides totaux |
|
||||
| `nutFpalm` | `NUT_FPALM` | Palmitoleïque (C16:1) |
|
||||
| `nutF16d0` | `NUT_F16D0` | Acide palmitique (C16:0) |
|
||||
| `nutFsteariq` | `NUT_FSTEARIQ` | Acide stéarique (C18:0) |
|
||||
| `nutFoleiq` | `NUT_FOLEIQ` | Acide oléique (C18:1, ω-9) |
|
||||
| `nutF18d` | `NUT_F18D` | C18 insaturé (générique) |
|
||||
| `nutF18d2cn6` | `NUT_F18D2CN6` | Acide linoléique (C18:2, ω-6) |
|
||||
| `nutF18d3n3` | `NUT_F18D3N3` | Acide α-linolénique (C18:3, ω-3) |
|
||||
| `nutF20d4` | `NUT_F20D4` | Acide arachidonique (C20:4) |
|
||||
| `nutF20d5n3` | `NUT_F20D5N3` | EPA (C20:5, ω-3) |
|
||||
| `nutF22d6n3` | `NUT_F22D6N3` | DHA (C22:6, ω-3) |
|
||||
| `nutF11eico` | `NUT_F11EICO` | Acide gondoïque (C20:1) |
|
||||
| `nutFarachidiq` | `NUT_FARACHIDIQ` | Acide arachidique (C20:0) |
|
||||
| `nutFeruciq` | `NUT_FERUCIQ` | Acide érucique (C22:1) |
|
||||
| `nutFlauriq` | `NUT_FLAURIQ` | Acide laurique (C12:0) |
|
||||
| `nutFmyristiq` | `NUT_FMYRISTIQ` | Acide myristique (C14:0) |
|
||||
| `nutFbutyriq` | `NUT_FBUTYRIQ` | Acide butyrique (C4:0) |
|
||||
| `nutFcaproiq` | `NUT_FCAPROIQ` | Acide caproïque (C6:0) |
|
||||
| `nutFcapryliq` | `NUT_FCAPRYLIQ` | Acide caprylique (C8:0) |
|
||||
| `nutFcapriq` | `NUT_FCAPRIQ` | Acide caprique (C10:0) |
|
||||
| `nutFapun3` | `NUT_FAPUN3` | AG polyinsaturés ω-3 |
|
||||
| `nutFapun6` | `NUT_FAPUN6` | AG polyinsaturés ω-6 |
|
||||
| `nutFapun9` | `NUT_FAPUN9` | AG polyinsaturés ω-9 |
|
||||
| `nutFapucis` | `NUT_FAPUCIS` | AG polyinsaturés cis |
|
||||
| `nutFapulc` | `NUT_FAPULC` | AG polyinsaturés longue chaîne |
|
||||
| `nutFamscis` | `NUT_FAMSCIS` | AG monoinsaturés cis |
|
||||
| `nutFacetiq` | `NUT_FACETIQ` | Acide acétique (C2:0) |
|
||||
| `nutFpropioniq` | `NUT_FPROPIONIQ` | Acide propionique (C3:0) |
|
||||
| `nutFvaleriq` | `NUT_FVALERIQ` | Acide valérique (C5:0) |
|
||||
| `nutFcarboceriq` | `NUT_FCARBOCERIQ` | Acide carbocérique (C26:0) |
|
||||
| `nutFbeheniq` | `NUT_FBEHENIQ` | Acide béhénique (C22:0) |
|
||||
| `nutFlignoceriq` | `NUT_FLIGNOCERIQ` | Acide lignocérique (C24:0) |
|
||||
| `nutFnervoniq` | `NUT_FNERVONIQ` | Acide nervonique (C24:1) |
|
||||
| `nutFlaceroiq` | `NUT_FLACEROIQ` | Acide lacéroïque (C32:0) |
|
||||
| `nutFmelissiq` | `NUT_FMELISSIQ` | Acide mélissique (C30:0) |
|
||||
| `nutFmontaniq` | `NUT_FMONTANIQ` | Acide montanique (C28:0) |
|
||||
| `nutFcerotiq` | `NUT_FCEROTIQ` | Acide cérotique (C26:0 alt.) |
|
||||
| `nutFpsylliq` | `NUT_FPSYLLIQ` | Acide psyllique |
|
||||
| `nutFgeddiq` | `NUT_FGEDDIQ` | Acide geddique (C20:1) |
|
||||
| `nutFmargariq` | `NUT_FMARGARIQ` | Acide margarique (C17:0) |
|
||||
| `nutFenatiq` | `NUT_FENATIQ` | Acide énanthique (C7:0) |
|
||||
| `nutFformiq` | `NUT_FFORMIQ` | Acide formique (C1:0) |
|
||||
| `nutFhyeniq` | `NUT_FHYENIQ` | Acide hyénique |
|
||||
| `nutFrufb` | `NUT_FRUFB` | *(déjà classé glucides)* |
|
||||
| `nutFrus` | `NUT_FRUS` | *(déjà classé glucides)* |
|
||||
| `nutFpelargoniq` | `NUT_FPELARGONIQ` | Acide pélargonique (C9:0) |
|
||||
| `nutFundecyliq` | `NUT_FUNDECYLIQ` | Acide undécylique (C11:0) |
|
||||
| `nutFpentadecyliq` | `NUT_FPENTADECYLIQ` | Acide pentadécylique (C15:0) |
|
||||
| `nutFtridecyliq` | `NUT_FTRIDECYLIQ` | Acide tridécylique (C13:0) |
|
||||
| `nutFtricosiliq` | `NUT_FTRICOSILIQ` | Acide tétracosanoïque (C23:0) |
|
||||
| `nutFnonacosyliq` | `NUT_FNONACOSYLIQ` | Acide nonacosylique (C29:0) |
|
||||
| `nutFnonadylique` | `NUT_FNONADYLIQUE` | Acide nonadylique |
|
||||
| `nutFheneicosyliq` | `NUT_FHENEICOSYLIQ` | Acide héneicosylique (C21:0) |
|
||||
| `nutFhentriacontyliq` | `NUT_FHENTRIACONTYLIQ` | C31:0 |
|
||||
| `nutFheptatriacontyliq` | `NUT_FHEPTATRIACONTYLIQ` | C37:0 |
|
||||
| `nutFhextriacontyliq` | `NUT_FHEXTRIACONTYLIQ` | C36:0 |
|
||||
| `nutFoctatriacontyliq` | `NUT_FOCTATRIACONTYLIQ` | C38:0 |
|
||||
| `nutF19d` | `NUT_F19D` | C19 insaturé |
|
||||
| `nutFoldfe` | `NUT_FOLDFE` | *(déjà classé vitamines - folates)* |
|
||||
|
||||
#### 11e. Acides aminés & protéines spécifiques
|
||||
| Champ PHP | Constante | Description |
|
||||
| --------- | ---------- | -------------------------------- |
|
||||
| `nutAae` | `NUT_AAE` | Acides aminés essentiels (total) |
|
||||
| `nutCasn` | `NUT_CASN` | Caséines |
|
||||
| `nutWhey` | `NUT_WHEY` | Protéines de lactosérum |
|
||||
|
||||
#### 11f. Autres composés bioactifs / spéciaux
|
||||
| Champ PHP | Constante | Description |
|
||||
| --------------- | ---------------- | ----------- |
|
||||
| `nutCholn` | `NUT_CHOLN` | Choline |
|
||||
| `nutCarnitine` | `NUT_CARNITINE` | Carnitine |
|
||||
| `nutTau` | `NUT_TAU` | Taurine |
|
||||
| `nutNucleotide` | `NUT_NUCLEOTIDE` | Nucléotides |
|
||||
|
||||
---
|
||||
|
||||
## ⚠️ Points d'attention
|
||||
|
||||
1. **Doublon détecté** : `'acideGrasSaturePortion' => 'AGS_P'` est déclaré **deux fois** - l'une des deux entrées sera silencieusement ignorée par PHP.
|
||||
|
||||
2. **Champs `_PREC`** : Les suffixes `_PREC` semblent indiquer la **précision de mesure** (ex. `<`, `~`, tracé) - à documenter explicitement.
|
||||
|
||||
3. **Champs MISSING** : Nombreux champs présents dans le référentiel INCO mais absents du mapping - notamment toute la série `POURCENT_APPORT_REF_*_R` (apports de référence pour 100g) et certains AG comme `FATSAT_R`, `CHOVAL_R`, `SUGAR_R`.
|
||||
|
||||
4. **`classement` / `nutriscore`** : Vous notez vous-même que `CLASSEMENT` ne devrait pas être dans `INCO_COMPO` - à externaliser dans un objet Nutri-Score dédié.
|
||||
99
documentation/Arcadia/README.md
Normal file
99
documentation/Arcadia/README.md
Normal file
|
|
@ -0,0 +1,99 @@
|
|||
# Métamodèle Arcadia & Intégration Oracle
|
||||
|
||||
Ce document résume les principes d'intégration avec les bases de données Oracle du SI Arcadia (`REFP`, `METAP`, `GCP`).
|
||||
|
||||
---
|
||||
|
||||
## 1. Documentation Vivante des Tables & Vues (Living Documentation)
|
||||
|
||||
La structure complète des 56 tables et vues, leurs types de données réels, clés primaires et commentaires SQL sont maintenus directement dans le code source sous :
|
||||
|
||||
👉 **[`database/arcadia-replicate/`](../../database/arcadia-replicate/)**
|
||||
- **Tables REFP & METAP :** [`database/arcadia-replicate/Tables/`](../../database/arcadia-replicate/Tables/)
|
||||
- **Vues REFP & GCP :** [`database/arcadia-replicate/Views/`](../../database/arcadia-replicate/Views/)
|
||||
- **Orchestrateur & Migrations :** [`database/arcadia-replicate/Migrator.php`](../../database/arcadia-replicate/Migrator.php)
|
||||
|
||||
> [!TIP]
|
||||
> En cas d'évolution du métamodèle Arcadia, modifiez uniquement la classe PHP concernée dans `database/arcadia-replicate/`. Aucun fichier Markdown de structure n'a besoin d'être maintenu manuellement.
|
||||
|
||||
---
|
||||
|
||||
## 2. Requêtes SQL de Référence (Adapters Oracle)
|
||||
|
||||
### A. Fiche Produit INCO & Nutrition (`REFP.INCO` + `REFP.INCO_COMPO`)
|
||||
Liaison principale : `REFP.INCO.REF_COMPO = REFP.INCO_COMPO.ID_INCO`
|
||||
|
||||
```sql
|
||||
SELECT
|
||||
i.NO_ART AS id,
|
||||
i.DENOM_LEG AS name,
|
||||
i.DESCRIPTIF AS description,
|
||||
i.ASTUCES AS tips,
|
||||
i.CONSEIL_PREPA AS preparation_advices,
|
||||
i.ARG_VENTE AS sell_arguments,
|
||||
i.ALLEGATIONS AS allegations,
|
||||
i.ALLEGAT_SANTE AS allegations_health,
|
||||
i.ALLEGAT_NUTRIT AS allegations_nutrition,
|
||||
i.LST_ING AS ingredients,
|
||||
i.NB_PORTION AS portions,
|
||||
i.LST_ALLERGENE AS allergens,
|
||||
i.NUTRISCORE_ON_PACK AS nutriscore,
|
||||
i.PDS_NET_UVC AS pdsNetUvc,
|
||||
i.PDS_BRUT_UVC AS pdsBrutUvc,
|
||||
i.CONDIT_CONSERV AS conditConserv,
|
||||
i.LST_ADDITIF AS lstAdditif,
|
||||
i.PROD_SAISON AS is_seasonal,
|
||||
i.REF_COMPO AS compo,
|
||||
i.DAT_CRE AS created_at,
|
||||
i.DAT_MAJ AS updated_at,
|
||||
c.ID AS compo_id,
|
||||
c.VAL_ENERG_KJ_R AS compo_valEnergKjReference,
|
||||
c.VAL_ENERG_KCAL_R AS compo_valEnergKcalReference,
|
||||
c.MAT_GRASS_R AS compo_matGrassReference,
|
||||
c.AGS_R AS compo_acideGrasSatureReference,
|
||||
c.GLUCIDES_R AS compo_glucidesReference,
|
||||
c.SUCRE_R AS compo_sucreReference,
|
||||
c.FIB_ALIM_R AS compo_fibAlimReference,
|
||||
c.PROTEINE_R AS compo_proteineReference,
|
||||
c.SEL_R AS compo_selReference,
|
||||
c.SCORE_NUTRI_2022 AS compo_scoreNutri2022,
|
||||
c.NUTRI_SCORE_2022 AS compo_nutriScore2022
|
||||
FROM REFP.INCO i
|
||||
LEFT JOIN REFP.INCO_COMPO c
|
||||
ON i.REF_COMPO = c.ID_INCO;
|
||||
```
|
||||
|
||||
### B. Référentiel Salariés SIRH (`REFP.RU_PERSONNE_SIRH`)
|
||||
```sql
|
||||
SELECT
|
||||
e.MATRICULE_FIC AS matricule,
|
||||
e.NOM_FIC AS lastname,
|
||||
e.PRENOM_FIC AS firstname,
|
||||
e.DATE_DEB_FIC AS start_date,
|
||||
e.DATE_FIN_FIC AS end_date,
|
||||
e.ETAB_FIC AS establishment,
|
||||
e.SITE_FIC AS site,
|
||||
e.SERVICE_FIC AS service,
|
||||
e.DAT_CRE AS created_at,
|
||||
e.DAT_MAJ AS updated_at
|
||||
FROM REFP.RU_PERSONNE_SIRH e;
|
||||
```
|
||||
|
||||
### C. Utilisateurs Référents (`METAP.META_UTIL`)
|
||||
```sql
|
||||
SELECT
|
||||
i.NO_ART AS id,
|
||||
i.UTIL_CMCL AS util_cmcl_code,
|
||||
u_cmcl.LIB_UTIL AS util_cmcl_libelle,
|
||||
u_cmcl.EMAIL AS util_cmcl_email,
|
||||
i.UTIL_MKT AS util_mkt_code,
|
||||
u_mkt.LIB_UTIL AS util_mkt_libelle,
|
||||
u_mkt.EMAIL AS util_mkt_email,
|
||||
i.UTIL_QUAL AS util_qual_code,
|
||||
u_qual.LIB_UTIL AS util_qual_libelle,
|
||||
u_qual.EMAIL AS util_qual_email
|
||||
FROM REFP.INCO i
|
||||
LEFT JOIN METAP.META_UTIL u_cmcl ON i.UTIL_CMCL = u_cmcl.COD_UTIL
|
||||
LEFT JOIN METAP.META_UTIL u_mkt ON i.UTIL_MKT = u_mkt.COD_UTIL
|
||||
LEFT JOIN METAP.META_UTIL u_qual ON i.UTIL_QUAL = u_qual.COD_UTIL;
|
||||
```
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Tests\Integration\Database\Seeders;
|
||||
|
||||
use Database\ArcadiaReplicate\Tables\Metap\MetaUtilTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\IncoCompoTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\IncoTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\MarqueTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\RuPersonneSirhTable;
|
||||
use Database\Seeders\ArcadiaReplicateSeeder;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Illuminate\Support\Facades\Config;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Tests\TestCase;
|
||||
|
||||
covers(ArcadiaReplicateSeeder::class);
|
||||
|
||||
uses(TestCase::class, RefreshDatabase::class);
|
||||
|
||||
describe('ArcadiaReplicateSeeder Integration Test', function (): void {
|
||||
it('seeds default replicated Arcadia Oracle records into the database', function (): void {
|
||||
// GIVEN
|
||||
$connection = Config::string('database.arcadia_meta_model');
|
||||
$seeder = new ArcadiaReplicateSeeder();
|
||||
|
||||
// WHEN
|
||||
$seeder->run();
|
||||
|
||||
// THEN
|
||||
expect(DB::connection($connection)->table(MetaUtilTable::name())->count())->toBeGreaterThan(0)
|
||||
->and(DB::connection($connection)->table(RuPersonneSirhTable::name())->count())->toBeGreaterThan(0)
|
||||
->and(DB::connection($connection)->table(MarqueTable::name())->count())->toBeGreaterThan(0)
|
||||
->and(DB::connection($connection)->table(IncoTable::name())->count())->toBeGreaterThan(0)
|
||||
->and(DB::connection($connection)->table(IncoCompoTable::name())->count())->toBeGreaterThan(0);
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Reference in a new issue