From 4756f560098b7d85c625a7696a053457e9d78f9a Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Tue, 25 Oct 2016 15:54:11 +0200 Subject: [PATCH] Add extranet database schema --- Apps/Extranet/schema/aide.sql | 18 +++++++ Apps/Extranet/schema/bilaninput.sql | 19 +++++++ Apps/Extranet/schema/bilansaisie.sql | 22 ++++++++ Apps/Extranet/schema/client_stat.sql | 12 +++++ Apps/Extranet/schema/commandes_erreur.sql | 15 ++++++ Apps/Extranet/schema/commandes_giants.sql | 10 ++++ Apps/Extranet/schema/commandes_statut.sql | 11 ++++ Apps/Extranet/schema/commandes_tarifs.sql | 61 +++++++++++++++++++++++ Apps/Extranet/schema/nouveautes.sql | 8 +++ Apps/Extranet/schema/rapports_giants.sql | 14 ++++++ Apps/Extranet/schema/tabDepartements.sql | 6 +++ Apps/Extranet/schema/tabDevises.sql | 12 +++++ Apps/Extranet/schema/tabEvenements.sql | 7 +++ Apps/Extranet/schema/tabFJur.sql | 7 +++ Apps/Extranet/schema/tabFctDir.sql | 5 ++ Apps/Extranet/schema/tabNaf5.sql | 10 ++++ Apps/Extranet/schema/tabPays.sql | 30 +++++++++++ Apps/Extranet/schema/tabVilles.sql | 6 +++ Apps/Extranet/schema/worldcheck.sql | 12 +++++ Apps/Extranet/schema/worldcheck_a.sql | 10 ++++ Apps/Extranet/schema/worldcheck_list.sql | 9 ++++ 21 files changed, 304 insertions(+) create mode 100755 Apps/Extranet/schema/aide.sql create mode 100755 Apps/Extranet/schema/bilaninput.sql create mode 100755 Apps/Extranet/schema/bilansaisie.sql create mode 100755 Apps/Extranet/schema/client_stat.sql create mode 100755 Apps/Extranet/schema/commandes_erreur.sql create mode 100755 Apps/Extranet/schema/commandes_giants.sql create mode 100755 Apps/Extranet/schema/commandes_statut.sql create mode 100755 Apps/Extranet/schema/commandes_tarifs.sql create mode 100755 Apps/Extranet/schema/nouveautes.sql create mode 100755 Apps/Extranet/schema/rapports_giants.sql create mode 100755 Apps/Extranet/schema/tabDepartements.sql create mode 100755 Apps/Extranet/schema/tabDevises.sql create mode 100755 Apps/Extranet/schema/tabEvenements.sql create mode 100755 Apps/Extranet/schema/tabFJur.sql create mode 100755 Apps/Extranet/schema/tabFctDir.sql create mode 100755 Apps/Extranet/schema/tabNaf5.sql create mode 100755 Apps/Extranet/schema/tabPays.sql create mode 100755 Apps/Extranet/schema/tabVilles.sql create mode 100755 Apps/Extranet/schema/worldcheck.sql create mode 100755 Apps/Extranet/schema/worldcheck_a.sql create mode 100755 Apps/Extranet/schema/worldcheck_list.sql diff --git a/Apps/Extranet/schema/aide.sql b/Apps/Extranet/schema/aide.sql new file mode 100755 index 0000000..379b43e --- /dev/null +++ b/Apps/Extranet/schema/aide.sql @@ -0,0 +1,18 @@ +-- +-- Structure de la table `aide` +-- + +CREATE TABLE IF NOT EXISTS `aide` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `methode` varchar(20) NOT NULL, + `champ` varchar(20) NOT NULL, + `texte` text NOT NULL, + PRIMARY KEY (`id`) +) DEFAULT CHARSET=utf8; + +-- +-- Contenu de la table `aide` +-- + +INSERT INTO `aide` (`id`, `methode`, `champ`, `texte`) VALUES +(1, 'Identite', 'Nom', 'Raison sociale / Nom de l''entreprise (format court avec\r\nabréviations)'); diff --git a/Apps/Extranet/schema/bilaninput.sql b/Apps/Extranet/schema/bilaninput.sql new file mode 100755 index 0000000..8bcfc20 --- /dev/null +++ b/Apps/Extranet/schema/bilaninput.sql @@ -0,0 +1,19 @@ +-- +-- Structure de la table `bilaninput` +-- + +CREATE TABLE IF NOT EXISTS `bilaninput` ( + `file` varchar(255) NOT NULL COMMENT 'Nom du fichier', + `sent` tinyint(1) NOT NULL DEFAULT '0' COMMENT '1 si fichier envoyé', + `dateUpdate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Liste des bilans à transférer pour la saisie'; + +-- +-- Index pour les tables exportées +-- + +-- +-- Index pour la table `bilaninput` +-- +ALTER TABLE `bilaninput` + ADD PRIMARY KEY (`file`), ADD KEY `sent` (`sent`); \ No newline at end of file diff --git a/Apps/Extranet/schema/bilansaisie.sql b/Apps/Extranet/schema/bilansaisie.sql new file mode 100755 index 0000000..175b240 --- /dev/null +++ b/Apps/Extranet/schema/bilansaisie.sql @@ -0,0 +1,22 @@ +-- +-- Structure de la table `bilansaisie` +-- + +CREATE TABLE IF NOT EXISTS `bilansaisie` ( + `ref` int(11) NOT NULL AUTO_INCREMENT, + `clientId` int(11) NOT NULL, + `utilisateurId` int(11) NOT NULL, + `utilisateurLogin` varchar(50) NOT NULL, + `utilisateurEmail` varchar(100) NOT NULL, + `method` varchar(20) NOT NULL, + `confidentiel` int(1) NOT NULL, + `siren` varchar(9) NOT NULL, + `bilanCloture` varchar(10) NOT NULL, + `format` varchar(1) NOT NULL, + `bilanDuree` int(2) NOT NULL, + `fichier` varchar(50) NOT NULL, + `env` varchar(20) NOT NULL, + `dateInsert` datetime NOT NULL, + `dateEnvoi` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + PRIMARY KEY (`ref`) +) DEFAULT CHARSET=utf8; diff --git a/Apps/Extranet/schema/client_stat.sql b/Apps/Extranet/schema/client_stat.sql new file mode 100755 index 0000000..bf39d3b --- /dev/null +++ b/Apps/Extranet/schema/client_stat.sql @@ -0,0 +1,12 @@ +CREATE TABLE IF NOT EXISTS `client_stat` ( + `idStat` int(11) NOT NULL AUTO_INCREMENT, + `idClient` char(5) NOT NULL, + `login` varchar(20) NOT NULL, + `platform` varchar(20) NOT NULL, + `browserName` varchar(22) NOT NULL, + `browserVersion` varchar(15) NOT NULL, + `isMobile` varchar(1) NOT NULL, + `screenSize` varchar(9) NOT NULL, + `dateInsert` datetime NOT NULL, + PRIMARY KEY (`idStat`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='statistique des navigateurs des clients' ; \ No newline at end of file diff --git a/Apps/Extranet/schema/commandes_erreur.sql b/Apps/Extranet/schema/commandes_erreur.sql new file mode 100755 index 0000000..773ead0 --- /dev/null +++ b/Apps/Extranet/schema/commandes_erreur.sql @@ -0,0 +1,15 @@ +-- +-- Structure de la table `commandes_erreur` +-- + +CREATE TABLE IF NOT EXISTS `commandes_erreur` ( + `siren` varchar(9) NOT NULL, + `type` varchar(10) NOT NULL, + `ref` varchar(50) NOT NULL, + `dateCommande` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `dateReception` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `url` text NOT NULL, + `erreur` text NOT NULL, + `status` varchar(100) NOT NULL, + KEY `siren` (`siren`) +) DEFAULT CHARSET=utf8; diff --git a/Apps/Extranet/schema/commandes_giants.sql b/Apps/Extranet/schema/commandes_giants.sql new file mode 100755 index 0000000..f7c0c3a --- /dev/null +++ b/Apps/Extranet/schema/commandes_giants.sql @@ -0,0 +1,10 @@ +CREATE TABLE IF NOT EXISTS `commandes_giants` ( + `id` int(8) NOT NULL AUTO_INCREMENT, + `rapportId` int(8) NOT NULL, + `login` varchar(255) NOT NULL, + `date` date NOT NULL, + `typeReport` enum('FU','CO','CR','FL','NO','UR','FA') NOT NULL, + `price` float NOT NULL, + `pays` varchar(50) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/Apps/Extranet/schema/commandes_statut.sql b/Apps/Extranet/schema/commandes_statut.sql new file mode 100755 index 0000000..f2a9375 --- /dev/null +++ b/Apps/Extranet/schema/commandes_statut.sql @@ -0,0 +1,11 @@ +-- +-- Structure de la table `commandes_statut` +-- + +CREATE TABLE IF NOT EXISTS `commandes_statut` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `libStatut` varchar(200) NOT NULL, + `typeCommande` char(1) NOT NULL, + `ordre` int(11) NOT NULL, + PRIMARY KEY (`id`) +) DEFAULT CHARSET=utf8 ; \ No newline at end of file diff --git a/Apps/Extranet/schema/commandes_tarifs.sql b/Apps/Extranet/schema/commandes_tarifs.sql new file mode 100755 index 0000000..0ac76fc --- /dev/null +++ b/Apps/Extranet/schema/commandes_tarifs.sql @@ -0,0 +1,61 @@ +-- +-- Structure de la table `commandes_tarifs` +-- + +CREATE TABLE IF NOT EXISTS `commandes_tarifs` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `type` varchar(20) NOT NULL, + `codeTribunal` varchar(255) NOT NULL, + `prix` float NOT NULL, + `enveloppe` tinyint(1) NOT NULL, + `ordre` varchar(255) NOT NULL, + `annee` int(4) NOT NULL, + PRIMARY KEY (`id`) +) DEFAULT CHARSET=utf8; + +-- +-- Contenu de la table `commandes_tarifs` +-- + +INSERT INTO `commandes_tarifs` (`id`, `type`, `codeTribunal`, `prix`, `enveloppe`, `ordre`, `annee`) VALUES +(1, 'actes', 'CHARTC', 10.94, 0, '', 2010), +(2, 'bilans', 'CHARTC', 10.94, 0, '', 2010), +(3, 'actes', 'METZG', 10.94, 0, '', 2010), +(4, 'bilans', 'METZG', 10.94, 0, '', 2010), +(5, 'kbis', 'METZG', 3.11, 0, '', 2010), +(6, 'actes', 'COLMAG', 10.94, 0, '', 2010), +(7, 'bilans', 'COLMAG', 10.94, 0, '', 2010), +(8, 'kbis', 'COLMAG', 3.11, 0, '', 2010), +(9, 'privSecu', 'COLMAG', 3.11, 0, '', 2010), +(10, 'privTres', 'COLMAG', 3.11, 0, '', 2010), +(11, 'bilans', 'STRASG', 9.33, 1, 'Trésor Public', 2010), +(12, 'bilans', 'MULHOG', 9.33, 1, 'Trésor Public', 2010), +(13, 'bilans', 'COLMAG', 9.33, 1, 'Trésor Public', 2010), +(14, 'bilans', 'CAYENM', 7.8, 0, 'Régisseur TGI Cayenne', 2010), +(15, 'bilans', 'SARREI', 9.33, 1, 'Trésor Public', 2010), +(16, 'kbis', 'STRASG', 3.11, 1, 'Trésor Public', 2010), +(17, 'kbis', 'THIONG', 3.11, 1, 'Trésor Public', 2010), +(18, 'kbis', 'SAVERG', 3.11, 1, 'Trésor Public', 2010), +(19, 'kbis', 'SARREG', 3.11, 1, 'Trésor Public', 2010), +(20, 'actes', 'CHARTC', 10.94, 0, '', 2011), +(21, 'bilans', 'CHARTC', 10.94, 0, '', 2011), +(22, 'actes', 'METZG', 10.94, 0, '', 2011), +(23, 'bilans', 'METZG', 10.94, 0, '', 2011), +(24, 'kbis', 'METZG', 3.11, 0, '', 2011), +(25, 'actes', 'COLMAG', 10.94, 0, '', 2011), +(26, 'bilans', 'COLMAG', 10.94, 0, '', 2011), +(27, 'kbis', 'COLMAG', 3.11, 0, '', 2011), +(28, 'privSecu', 'COLMAG', 3.11, 0, '', 2011), +(29, 'privTres', 'COLMAG', 3.11, 0, '', 2011), +(30, 'bilans', 'STRASG', 9.33, 1, 'Trésor Public', 2011), +(31, 'bilans', 'MULHOG', 9.33, 1, 'Trésor Public', 2011), +(32, 'bilans', 'COLMAG', 9.33, 1, 'Trésor Public', 2011), +(33, 'bilans', 'CAYENM', 7.8, 0, 'Régisseur TGI Cayenne', 2011), +(34, 'bilans', 'SARREI', 9.33, 1, 'Trésor Public', 2011), +(35, 'kbis', 'STRASG', 3.11, 1, 'Trésor Public', 2011), +(36, 'kbis', 'THIONG', 3.11, 1, 'Trésor Public', 2011), +(37, 'kbis', 'SAVERG', 3.11, 1, 'Trésor Public', 2011), +(38, 'kbis', 'SARREG', 3.11, 1, 'Trésor Public', 2011), +(39, 'kbis', 'MULHOG', 3.11, 1, 'Trésor Public', 2011), +(40, 'kbis', 'FORTFM', 3.11, 0, 'Trésor Public', 2011), +(41, 'kbis', 'STDENM', 2.82, 1, 'TMX ST DENIS DE LA REUNION', 2011); diff --git a/Apps/Extranet/schema/nouveautes.sql b/Apps/Extranet/schema/nouveautes.sql new file mode 100755 index 0000000..f9e1e5c --- /dev/null +++ b/Apps/Extranet/schema/nouveautes.sql @@ -0,0 +1,8 @@ +CREATE TABLE IF NOT EXISTS `nouveautes` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `categorie` varchar(100) NOT NULL, + `intitule` varchar(100) NOT NULL, + `date` date NOT NULL DEFAULT '0000-00-00', + `fichier` varchar(100) NOT NULL, + PRIMARY KEY (`id`) +) DEFAULT CHARSET=utf8; diff --git a/Apps/Extranet/schema/rapports_giants.sql b/Apps/Extranet/schema/rapports_giants.sql new file mode 100755 index 0000000..585787e --- /dev/null +++ b/Apps/Extranet/schema/rapports_giants.sql @@ -0,0 +1,14 @@ +-- +-- Structure de la table `rapports_giants` +-- + +CREATE TABLE IF NOT EXISTS `rapports_giants` ( + `id` int(8) NOT NULL AUTO_INCREMENT, + `companyId` varchar(255) NOT NULL, + `date` date NOT NULL, + `pays` enum('FR','ES','BE','NL','UK','DE') NOT NULL, + `type` enum('FU','CO','CR','FL') DEFAULT NULL, + `lang` varchar(2) CHARACTER SET utf8 NOT NULL, + `report` longtext NOT NULL, + PRIMARY KEY (`id`) +) DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/Apps/Extranet/schema/tabDepartements.sql b/Apps/Extranet/schema/tabDepartements.sql new file mode 100755 index 0000000..54a4300 --- /dev/null +++ b/Apps/Extranet/schema/tabDepartements.sql @@ -0,0 +1,6 @@ +CREATE TABLE IF NOT EXISTS `tabDepartements` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `numdep` char(3) NOT NULL, + `libdep` char(45) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Departements'; \ No newline at end of file diff --git a/Apps/Extranet/schema/tabDevises.sql b/Apps/Extranet/schema/tabDevises.sql new file mode 100755 index 0000000..bc0bc65 --- /dev/null +++ b/Apps/Extranet/schema/tabDevises.sql @@ -0,0 +1,12 @@ +CREATE TABLE IF NOT EXISTS `tabDevises` ( + `devIso` char(3) DEFAULT NULL COMMENT 'Code devise selon la ISO 4217 (3 lettres)', + `devChiffres` smallint(3) unsigned zerofill NOT NULL COMMENT 'Code devise selon la ISO 4217 numérique (3 chiffres)', + `devInpi` smallint(3) unsigned zerofill DEFAULT NULL COMMENT 'Code devise utilisé par l''INPI', + `devNom` char(50) DEFAULT NULL COMMENT 'Nom de la devise', + `devPaysIso` char(255) DEFAULT NULL, + `devNewIso` char(3) DEFAULT NULL COMMENT 'Si ancienne devise, nouvelle devise utilisée', + `dateInsert` datetime NOT NULL, + `dateUpdate` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP, + KEY `devIso` (`devIso`), + KEY `devInpi` (`devInpi`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Liste des devises'; \ No newline at end of file diff --git a/Apps/Extranet/schema/tabEvenements.sql b/Apps/Extranet/schema/tabEvenements.sql new file mode 100755 index 0000000..01185fb --- /dev/null +++ b/Apps/Extranet/schema/tabEvenements.sql @@ -0,0 +1,7 @@ +CREATE TABLE IF NOT EXISTS `tabEvenements` ( + `codEven` smallint(4) unsigned zerofill NOT NULL DEFAULT '0000' COMMENT 'Code évènement du mouvement Bodacc', + `libEven` varchar(101) DEFAULT NULL COMMENT 'Libellé de l''évènement', + `libEvenEn` varchar(200) DEFAULT NULL COMMENT 'Libellé en Anglais', + PRIMARY KEY (`codEven`), + UNIQUE KEY `libEven` (`libEven`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Liste des évènements Scores & Décisions'; diff --git a/Apps/Extranet/schema/tabFJur.sql b/Apps/Extranet/schema/tabFJur.sql new file mode 100755 index 0000000..baabcd0 --- /dev/null +++ b/Apps/Extranet/schema/tabFJur.sql @@ -0,0 +1,7 @@ +CREATE TABLE IF NOT EXISTS `tabFJur` ( + `code` int(4) NOT NULL DEFAULT '0', + `libelle` varchar(100) DEFAULT NULL COMMENT 'Libellé de la forme juridique', + `libelleEn` varchar(100) NOT NULL COMMENT 'Traduction Anglaise', + PRIMARY KEY (`code`), + FULLTEXT KEY `libelle` (`libelle`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Référentiel des Formes Juridiques'; \ No newline at end of file diff --git a/Apps/Extranet/schema/tabFctDir.sql b/Apps/Extranet/schema/tabFctDir.sql new file mode 100755 index 0000000..2aada32 --- /dev/null +++ b/Apps/Extranet/schema/tabFctDir.sql @@ -0,0 +1,5 @@ +CREATE TABLE IF NOT EXISTS `tabFctDir` ( + `codeFct` smallint(4) unsigned zerofill NOT NULL DEFAULT '0000', + `libelle` varchar(255) DEFAULT NULL, + PRIMARY KEY (`codeFct`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Liste des fonctions de direction'; \ No newline at end of file diff --git a/Apps/Extranet/schema/tabNaf5.sql b/Apps/Extranet/schema/tabNaf5.sql new file mode 100755 index 0000000..2d9802b --- /dev/null +++ b/Apps/Extranet/schema/tabNaf5.sql @@ -0,0 +1,10 @@ +CREATE TABLE IF NOT EXISTS `tabNaf5tmp` ( + `codNaf5` char(5) NOT NULL DEFAULT '', + `libNaf5` varchar(255) DEFAULT NULL, + `libNaf5en` varchar(255) DEFAULT NULL, + `codNaf4` char(4) DEFAULT NULL, + `codNaf3` char(3) DEFAULT NULL, + `codNaf2` char(2) DEFAULT NULL, + `codNaf1` char(1) DEFAULT NULL, + PRIMARY KEY (`codNaf5`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Code NAF rév 3 de 2013 (5 positions)'; diff --git a/Apps/Extranet/schema/tabPays.sql b/Apps/Extranet/schema/tabPays.sql new file mode 100755 index 0000000..abdd9d1 --- /dev/null +++ b/Apps/Extranet/schema/tabPays.sql @@ -0,0 +1,30 @@ +CREATE TABLE IF NOT EXISTS `tabPays` ( + `codPays` char(2) NOT NULL COMMENT 'Code Pays ISO 3166-1 alpha-2 sur 2 lettres', + `numPays` smallint(3) unsigned zerofill DEFAULT NULL COMMENT 'Code Pays ISO 3166-1 numeric sur 3 chiffres', + `codPays3` char(3) DEFAULT NULL COMMENT 'Code Pays ISO 3166-1 alpha-3 sur 3 lettres', + `codePaysInpi` smallint(3) unsigned zerofill DEFAULT NULL COMMENT 'Code pays numérique INPI', + `codePaysInsee` smallint(3) unsigned zerofill NOT NULL DEFAULT '000' COMMENT 'COG Insee du pays 3 chiffres', + `codeFips` char(2) DEFAULT NULL COMMENT 'Code standard des USA - FIPS PUB 10-4', + `codeTld` char(4) DEFAULT NULL COMMENT 'National Tol-Level Domain Names (Internet)', + `codeIoc` char(3) DEFAULT NULL COMMENT 'Code Pays du CIO (Comité Inter. Olympique)', + `codeITU` char(3) DEFAULT NULL COMMENT 'Code géré par l''International Telecommunications Union', + `codeDS` char(3) DEFAULT NULL COMMENT 'Distinguishing Signs of vehicles in international traffic (oval bumper sticker codes)', + `codeWMO` char(2) DEFAULT NULL COMMENT 'Code pays dans les rapports météo (World Meteorological Organization)', + `codeGAUL` char(6) DEFAULT NULL COMMENT 'Code Global Administrative Unit Layers (Food and Agriculture Organization)', + `codeMARC` char(5) DEFAULT NULL COMMENT 'Code MAchine-Readable Cataloging (Library of Congress)', + `dependance` char(3) DEFAULT NULL COMMENT 'Souvereneté exercée par ISO3166 trigraph', + `libPaysEN` varchar(50) NOT NULL COMMENT 'Libellé Anglais du pays', + `libPays` varchar(50) NOT NULL COMMENT 'Libellé Français du pays', + `libPaysMajAuto` varchar(50) NOT NULL COMMENT 'Libellé Français du pays en MAJ automatique', + `zone` enum('Afrique','Amérique du Nord','Amérique du Sud et centrale','Antarctique','Antilles, caraïbes','Asie','Europe de l''est','Europe occidentale','Moyen orient','Pacifique') DEFAULT NULL COMMENT 'Zone du monde (Continents ou océans)', + `drapeau` varchar(20) NOT NULL COMMENT 'Fichier drapeau', + `devise` char(3) NOT NULL COMMENT 'Code devise selon la ISO 4217 (3 lettres)', + `indTel` char(20) DEFAULT NULL COMMENT 'Indicatif téléphonique du pays selon ITU-T recommandation E.164 (international dialing code), suivi parfois d''un code géographique. Plusieurs indicatifs possibles (séparateur virgule)', + `remarques` varchar(255) NOT NULL, + `dateInsert` datetime NOT NULL COMMENT 'Date Insertion en base S&D', + `dateUpdate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + PRIMARY KEY (`codPays`), + UNIQUE KEY `codePays3` (`codPays3`), + UNIQUE KEY `numPays` (`numPays`), + UNIQUE KEY `codePaysInpi` (`codePaysInpi`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Liste des pays et correspondances des codes pays'; \ No newline at end of file diff --git a/Apps/Extranet/schema/tabVilles.sql b/Apps/Extranet/schema/tabVilles.sql new file mode 100755 index 0000000..d1e7ae1 --- /dev/null +++ b/Apps/Extranet/schema/tabVilles.sql @@ -0,0 +1,6 @@ +CREATE TABLE IF NOT EXISTS `tabVilles` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `code` mediumint(5) UNSIGNED ZEROFILL DEFAULT NULL, + `libelle` char(45) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Codes Postales'; \ No newline at end of file diff --git a/Apps/Extranet/schema/worldcheck.sql b/Apps/Extranet/schema/worldcheck.sql new file mode 100755 index 0000000..b1a1c70 --- /dev/null +++ b/Apps/Extranet/schema/worldcheck.sql @@ -0,0 +1,12 @@ +CREATE TABLE IF NOT EXISTS `worldcheck` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `idClient` char(5) NOT NULL, + `login` char(25) NOT NULL, + `nameIdentifier` varchar(23) NOT NULL, + `name` varchar(50) NOT NULL, + `siren` varchar(9) DEFAULT NULL, + `nameType` enum('INDIVIDUAL', 'ORGANISATION') NOT NULL, + `matchCount` int(4) DEFAULT NULL, + `dateInsert` date NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='worldcheck v2 2013-09-16'; \ No newline at end of file diff --git a/Apps/Extranet/schema/worldcheck_a.sql b/Apps/Extranet/schema/worldcheck_a.sql new file mode 100755 index 0000000..ac27742 --- /dev/null +++ b/Apps/Extranet/schema/worldcheck_a.sql @@ -0,0 +1,10 @@ +CREATE TABLE IF NOT EXISTS `worldcheck_a` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `entityIdP` varchar(23) NOT NULL, + `entityId` varchar(23) NOT NULL, + `nameType` varchar(30) DEFAULT NULL, + `fullName` varchar(30) DEFAULT NULL, + `givenName` varchar(30) DEFAULT NULL, + `lastName` varchar(30) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='worldcheck associates v1 2014-01-20'; \ No newline at end of file diff --git a/Apps/Extranet/schema/worldcheck_list.sql b/Apps/Extranet/schema/worldcheck_list.sql new file mode 100755 index 0000000..eeeca16 --- /dev/null +++ b/Apps/Extranet/schema/worldcheck_list.sql @@ -0,0 +1,9 @@ +CREATE TABLE IF NOT EXISTS `worldcheck_list` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `entityId` varchar(23) NOT NULL, + `nameType` varchar(30) DEFAULT NULL, + `fullName` varchar(30) DEFAULT NULL, + `givenName` varchar(30) DEFAULT NULL, + `lastName` varchar(30) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='worldcheck list of PP, PM v1 2014-01-20'; \ No newline at end of file