wok-4.x view dolibarr/stuff/dolibarr-3.1.0-mysql.sql @ rev 11794
Add: dolibarr
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Sat Feb 25 00:38:05 2012 +0100 (2012-02-25) |
parents | |
children | e8f8935f9363 |
line source
1 -- MySQL dump 10.13 Distrib 5.1.38, for pc-linux-gnu (i486)
2 --
3 -- Host: localhost Database: doli_default
4 -- ------------------------------------------------------
5 -- Server version 5.1.38-log
7 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
8 /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
9 /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
10 /*!40101 SET NAMES utf8 */;
11 /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
12 /*!40103 SET TIME_ZONE='+00:00' */;
13 /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
14 /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
15 /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
16 /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
18 --
19 -- Table structure for table `llx_accountingaccount`
20 --
22 DROP TABLE IF EXISTS `llx_accountingaccount`;
23 /*!40101 SET @saved_cs_client = @@character_set_client */;
24 /*!40101 SET character_set_client = utf8 */;
25 CREATE TABLE `llx_accountingaccount` (
26 `rowid` int(11) NOT NULL AUTO_INCREMENT,
27 `fk_pcg_version` varchar(12) NOT NULL,
28 `pcg_type` varchar(20) NOT NULL,
29 `pcg_subtype` varchar(20) NOT NULL,
30 `account_number` varchar(20) NOT NULL,
31 `account_parent` varchar(20) DEFAULT NULL,
32 `label` varchar(128) NOT NULL,
33 PRIMARY KEY (`rowid`),
34 KEY `idx_accountingaccount_fk_pcg_version` (`fk_pcg_version`)
35 ) ENGINE=MyISAM AUTO_INCREMENT=103 DEFAULT CHARSET=utf8;
36 /*!40101 SET character_set_client = @saved_cs_client */;
38 --
39 -- Dumping data for table `llx_accountingaccount`
40 --
42 LOCK TABLES `llx_accountingaccount` WRITE;
43 /*!40000 ALTER TABLE `llx_accountingaccount` DISABLE KEYS */;
44 INSERT INTO `llx_accountingaccount` VALUES (1,'PCG99-ABREGE','CAPIT','CAPITAL','101','1','Capital'),(2,'PCG99-ABREGE','CAPIT','XXXXXX','105','1','Ecarts de réévaluation'),(3,'PCG99-ABREGE','CAPIT','XXXXXX','1061','1','Réserve légale'),(4,'PCG99-ABREGE','CAPIT','XXXXXX','1063','1','Réserves statutaires ou contractuelles'),(5,'PCG99-ABREGE','CAPIT','XXXXXX','1064','1','Réserves réglementées'),(6,'PCG99-ABREGE','CAPIT','XXXXXX','1068','1','Autres réserves'),(7,'PCG99-ABREGE','CAPIT','XXXXXX','108','1','Compte de l\'exploitant'),(8,'PCG99-ABREGE','CAPIT','XXXXXX','12','1','Résultat de l\'exercice'),(9,'PCG99-ABREGE','CAPIT','XXXXXX','145','1','Amortissements dérogatoires'),(10,'PCG99-ABREGE','CAPIT','XXXXXX','146','1','Provision spéciale de réévaluation'),(11,'PCG99-ABREGE','CAPIT','XXXXXX','147','1','Plus-values réinvesties'),(12,'PCG99-ABREGE','CAPIT','XXXXXX','148','1','Autres provisions réglementées'),(13,'PCG99-ABREGE','CAPIT','XXXXXX','15','1','Provisions pour risques et charges'),(14,'PCG99-ABREGE','CAPIT','XXXXXX','16','1','Emprunts et dettes assimilees'),(15,'PCG99-ABREGE','IMMO','XXXXXX','20','2','Immobilisations incorporelles'),(16,'PCG99-ABREGE','IMMO','XXXXXX','201','20','Frais d\'établissement'),(17,'PCG99-ABREGE','IMMO','XXXXXX','206','20','Droit au bail'),(18,'PCG99-ABREGE','IMMO','XXXXXX','207','20','Fonds commercial'),(19,'PCG99-ABREGE','IMMO','XXXXXX','208','20','Autres immobilisations incorporelles'),(20,'PCG99-ABREGE','IMMO','XXXXXX','21','2','Immobilisations corporelles'),(21,'PCG99-ABREGE','IMMO','XXXXXX','23','2','Immobilisations en cours'),(22,'PCG99-ABREGE','IMMO','XXXXXX','27','2','Autres immobilisations financieres'),(23,'PCG99-ABREGE','IMMO','XXXXXX','280','2','Amortissements des immobilisations incorporelles'),(24,'PCG99-ABREGE','IMMO','XXXXXX','281','2','Amortissements des immobilisations corporelles'),(25,'PCG99-ABREGE','IMMO','XXXXXX','290','2','Provisions pour dépréciation des immobilisations incorporelles'),(26,'PCG99-ABREGE','IMMO','XXXXXX','291','2','Provisions pour dépréciation des immobilisations corporelles'),(27,'PCG99-ABREGE','IMMO','XXXXXX','297','2','Provisions pour dépréciation des autres immobilisations financières'),(28,'PCG99-ABREGE','STOCK','XXXXXX','31','3','Matieres premières'),(29,'PCG99-ABREGE','STOCK','XXXXXX','32','3','Autres approvisionnements'),(30,'PCG99-ABREGE','STOCK','XXXXXX','33','3','En-cours de production de biens'),(31,'PCG99-ABREGE','STOCK','XXXXXX','34','3','En-cours de production de services'),(32,'PCG99-ABREGE','STOCK','XXXXXX','35','3','Stocks de produits'),(33,'PCG99-ABREGE','STOCK','XXXXXX','37','3','Stocks de marchandises'),(34,'PCG99-ABREGE','STOCK','XXXXXX','391','3','Provisions pour dépréciation des matières premières'),(35,'PCG99-ABREGE','STOCK','XXXXXX','392','3','Provisions pour dépréciation des autres approvisionnements'),(36,'PCG99-ABREGE','STOCK','XXXXXX','393','3','Provisions pour dépréciation des en-cours de production de biens'),(37,'PCG99-ABREGE','STOCK','XXXXXX','394','3','Provisions pour dépréciation des en-cours de production de services'),(38,'PCG99-ABREGE','STOCK','XXXXXX','395','3','Provisions pour dépréciation des stocks de produits'),(39,'PCG99-ABREGE','STOCK','XXXXXX','397','3','Provisions pour dépréciation des stocks de marchandises'),(40,'PCG99-ABREGE','TIERS','SUPPLIER','400','4','Fournisseurs et Comptes rattachés'),(41,'PCG99-ABREGE','TIERS','XXXXXX','409','4','Fournisseurs débiteurs'),(42,'PCG99-ABREGE','TIERS','CUSTOMER','410','4','Clients et Comptes rattachés'),(43,'PCG99-ABREGE','TIERS','XXXXXX','419','4','Clients créditeurs'),(44,'PCG99-ABREGE','TIERS','XXXXXX','421','4','Personnel'),(45,'PCG99-ABREGE','TIERS','XXXXXX','428','4','Personnel'),(46,'PCG99-ABREGE','TIERS','XXXXXX','43','4','Sécurité sociale et autres organismes sociaux'),(47,'PCG99-ABREGE','TIERS','XXXXXX','444','4','Etat - impôts sur bénéfice'),(48,'PCG99-ABREGE','TIERS','XXXXXX','445','4','Etat - Taxes sur chiffre affaire'),(49,'PCG99-ABREGE','TIERS','XXXXXX','447','4','Autres impôts, taxes et versements assimilés'),(50,'PCG99-ABREGE','TIERS','XXXXXX','45','4','Groupe et associes'),(51,'PCG99-ABREGE','TIERS','XXXXXX','455','45','Associés'),(52,'PCG99-ABREGE','TIERS','XXXXXX','46','4','Débiteurs divers et créditeurs divers'),(53,'PCG99-ABREGE','TIERS','XXXXXX','47','4','Comptes transitoires ou d\'attente'),(54,'PCG99-ABREGE','TIERS','XXXXXX','481','4','Charges à répartir sur plusieurs exercices'),(55,'PCG99-ABREGE','TIERS','XXXXXX','486','4','Charges constatées d\'avance'),(56,'PCG99-ABREGE','TIERS','XXXXXX','487','4','Produits constatés d\'avance'),(57,'PCG99-ABREGE','TIERS','XXXXXX','491','4','Provisions pour dépréciation des comptes de clients'),(58,'PCG99-ABREGE','TIERS','XXXXXX','496','4','Provisions pour dépréciation des comptes de débiteurs divers'),(59,'PCG99-ABREGE','FINAN','XXXXXX','50','5','Valeurs mobilières de placement'),(60,'PCG99-ABREGE','FINAN','BANK','51','5','Banques, établissements financiers et assimilés'),(61,'PCG99-ABREGE','FINAN','CASH','53','5','Caisse'),(62,'PCG99-ABREGE','FINAN','XXXXXX','54','5','Régies d\'avance et accréditifs'),(63,'PCG99-ABREGE','FINAN','XXXXXX','58','5','Virements internes'),(64,'PCG99-ABREGE','FINAN','XXXXXX','590','5','Provisions pour dépréciation des valeurs mobilières de placement'),(65,'PCG99-ABREGE','CHARGE','PRODUCT','60','6','Achats'),(66,'PCG99-ABREGE','CHARGE','XXXXXX','603','60','Variations des stocks'),(67,'PCG99-ABREGE','CHARGE','SERVICE','61','6','Services extérieurs'),(68,'PCG99-ABREGE','CHARGE','XXXXXX','62','6','Autres services extérieurs'),(69,'PCG99-ABREGE','CHARGE','XXXXXX','63','6','Impôts, taxes et versements assimiles'),(70,'PCG99-ABREGE','CHARGE','XXXXXX','641','6','Rémunérations du personnel'),(71,'PCG99-ABREGE','CHARGE','XXXXXX','644','6','Rémunération du travail de l\'exploitant'),(72,'PCG99-ABREGE','CHARGE','SOCIAL','645','6','Charges de sécurité sociale et de prévoyance'),(73,'PCG99-ABREGE','CHARGE','XXXXXX','646','6','Cotisations sociales personnelles de l\'exploitant'),(74,'PCG99-ABREGE','CHARGE','XXXXXX','65','6','Autres charges de gestion courante'),(75,'PCG99-ABREGE','CHARGE','XXXXXX','66','6','Charges financières'),(76,'PCG99-ABREGE','CHARGE','XXXXXX','67','6','Charges exceptionnelles'),(77,'PCG99-ABREGE','CHARGE','XXXXXX','681','6','Dotations aux amortissements et aux provisions'),(78,'PCG99-ABREGE','CHARGE','XXXXXX','686','6','Dotations aux amortissements et aux provisions'),(79,'PCG99-ABREGE','CHARGE','XXXXXX','687','6','Dotations aux amortissements et aux provisions'),(80,'PCG99-ABREGE','CHARGE','XXXXXX','691','6','Participation des salariés aux résultats'),(81,'PCG99-ABREGE','CHARGE','XXXXXX','695','6','Impôts sur les bénéfices'),(82,'PCG99-ABREGE','CHARGE','XXXXXX','697','6','Imposition forfaitaire annuelle des sociétés'),(83,'PCG99-ABREGE','CHARGE','XXXXXX','699','6','Produits'),(84,'PCG99-ABREGE','PROD','PRODUCT','701','7','Ventes de produits finis'),(85,'PCG99-ABREGE','PROD','SERVICE','706','7','Prestations de services'),(86,'PCG99-ABREGE','PROD','PRODUCT','707','7','Ventes de marchandises'),(87,'PCG99-ABREGE','PROD','PRODUCT','708','7','Produits des activités annexes'),(88,'PCG99-ABREGE','PROD','XXXXXX','709','7','Rabais, remises et ristournes accordés par l\'entreprise'),(89,'PCG99-ABREGE','PROD','XXXXXX','713','7','Variation des stocks'),(90,'PCG99-ABREGE','PROD','XXXXXX','72','7','Production immobilisée'),(91,'PCG99-ABREGE','PROD','XXXXXX','73','7','Produits nets partiels sur opérations à long terme'),(92,'PCG99-ABREGE','PROD','XXXXXX','74','7','Subventions d\'exploitation'),(93,'PCG99-ABREGE','PROD','XXXXXX','75','7','Autres produits de gestion courante'),(94,'PCG99-ABREGE','PROD','XXXXXX','753','75','Jetons de présence et rémunérations d\'administrateurs, gérants,...'),(95,'PCG99-ABREGE','PROD','XXXXXX','754','75','Ristournes perçues des coopératives'),(96,'PCG99-ABREGE','PROD','XXXXXX','755','75','Quotes-parts de résultat sur opérations faites en commun'),(97,'PCG99-ABREGE','PROD','XXXXXX','76','7','Produits financiers'),(98,'PCG99-ABREGE','PROD','XXXXXX','77','7','Produits exceptionnels'),(99,'PCG99-ABREGE','PROD','XXXXXX','781','7','Reprises sur amortissements et provisions'),(100,'PCG99-ABREGE','PROD','XXXXXX','786','7','Reprises sur provisions pour risques'),(101,'PCG99-ABREGE','PROD','XXXXXX','787','7','Reprises sur provisions'),(102,'PCG99-ABREGE','PROD','XXXXXX','79','7','Transferts de charges');
45 /*!40000 ALTER TABLE `llx_accountingaccount` ENABLE KEYS */;
46 UNLOCK TABLES;
48 --
49 -- Table structure for table `llx_accountingdebcred`
50 --
52 DROP TABLE IF EXISTS `llx_accountingdebcred`;
53 /*!40101 SET @saved_cs_client = @@character_set_client */;
54 /*!40101 SET character_set_client = utf8 */;
55 CREATE TABLE `llx_accountingdebcred` (
56 `fk_transaction` int(11) NOT NULL,
57 `account_number` varchar(20) NOT NULL,
58 `amount` double NOT NULL,
59 `direction` varchar(1) NOT NULL
60 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
61 /*!40101 SET character_set_client = @saved_cs_client */;
63 --
64 -- Dumping data for table `llx_accountingdebcred`
65 --
67 LOCK TABLES `llx_accountingdebcred` WRITE;
68 /*!40000 ALTER TABLE `llx_accountingdebcred` DISABLE KEYS */;
69 /*!40000 ALTER TABLE `llx_accountingdebcred` ENABLE KEYS */;
70 UNLOCK TABLES;
72 --
73 -- Table structure for table `llx_accountingsystem`
74 --
76 DROP TABLE IF EXISTS `llx_accountingsystem`;
77 /*!40101 SET @saved_cs_client = @@character_set_client */;
78 /*!40101 SET character_set_client = utf8 */;
79 CREATE TABLE `llx_accountingsystem` (
80 `pcg_version` varchar(12) NOT NULL,
81 `fk_pays` int(11) NOT NULL,
82 `label` varchar(128) NOT NULL,
83 `datec` varchar(12) NOT NULL,
84 `fk_author` varchar(20) DEFAULT NULL,
85 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
86 `active` smallint(6) DEFAULT '0',
87 PRIMARY KEY (`pcg_version`)
88 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
89 /*!40101 SET character_set_client = @saved_cs_client */;
91 --
92 -- Dumping data for table `llx_accountingsystem`
93 --
95 LOCK TABLES `llx_accountingsystem` WRITE;
96 /*!40000 ALTER TABLE `llx_accountingsystem` DISABLE KEYS */;
97 INSERT INTO `llx_accountingsystem` VALUES ('PCG99-ABREGE',1,'The simple accountancy french plan','2011-07-03',NULL,'2011-07-03 17:32:38',0);
98 /*!40000 ALTER TABLE `llx_accountingsystem` ENABLE KEYS */;
99 UNLOCK TABLES;
101 --
102 -- Table structure for table `llx_accountingtransaction`
103 --
105 DROP TABLE IF EXISTS `llx_accountingtransaction`;
106 /*!40101 SET @saved_cs_client = @@character_set_client */;
107 /*!40101 SET character_set_client = utf8 */;
108 CREATE TABLE `llx_accountingtransaction` (
109 `rowid` int(11) NOT NULL AUTO_INCREMENT,
110 `label` varchar(128) NOT NULL,
111 `datec` date NOT NULL,
112 `fk_author` varchar(20) NOT NULL,
113 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
114 `fk_source` int(11) NOT NULL,
115 `sourcetype` varchar(16) NOT NULL,
116 `url` varchar(255) DEFAULT NULL,
117 PRIMARY KEY (`rowid`)
118 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
119 /*!40101 SET character_set_client = @saved_cs_client */;
121 --
122 -- Dumping data for table `llx_accountingtransaction`
123 --
125 LOCK TABLES `llx_accountingtransaction` WRITE;
126 /*!40000 ALTER TABLE `llx_accountingtransaction` DISABLE KEYS */;
127 /*!40000 ALTER TABLE `llx_accountingtransaction` ENABLE KEYS */;
128 UNLOCK TABLES;
130 --
131 -- Table structure for table `llx_action_def`
132 --
134 DROP TABLE IF EXISTS `llx_action_def`;
135 /*!40101 SET @saved_cs_client = @@character_set_client */;
136 /*!40101 SET character_set_client = utf8 */;
137 CREATE TABLE `llx_action_def` (
138 `rowid` int(11) NOT NULL,
139 `code` varchar(32) NOT NULL,
140 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
141 `titre` varchar(255) NOT NULL,
142 `description` text,
143 `objet_type` varchar(16) NOT NULL,
144 PRIMARY KEY (`rowid`),
145 UNIQUE KEY `code` (`code`)
146 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
147 /*!40101 SET character_set_client = @saved_cs_client */;
149 --
150 -- Dumping data for table `llx_action_def`
151 --
153 LOCK TABLES `llx_action_def` WRITE;
154 /*!40000 ALTER TABLE `llx_action_def` DISABLE KEYS */;
155 INSERT INTO `llx_action_def` VALUES (1,'NOTIFY_VAL_FICHINTER','2011-07-03 17:32:38','Validation fiche intervention','Executed when a intervention is validated','ficheinter'),(2,'NOTIFY_VAL_FAC','2011-07-03 17:32:38','Validation facture client','Executed when a customer invoice is approved','facture'),(3,'NOTIFY_APP_ORDER_SUPPLIER','2011-07-03 17:32:38','Approbation commande fournisseur','Executed when a supplier order is approved','order_supplier'),(4,'NOTIFY_REF_ORDER_SUPPLIER','2011-07-03 17:32:38','Refus commande fournisseur','Executed when a supplier order is refused','order_supplier'),(5,'NOTIFY_VAL_ORDER','2011-07-03 17:32:38','Validation commande client','Executed when a customer order is validated','order'),(6,'NOTIFY_VAL_PROPAL','2011-07-03 17:32:38','Validation proposition client','Executed when a commercial proposal is validated','propal'),(7,'NOTIFY_TRN_WITHDRAW','2011-07-03 17:32:38','Transmission prélèvement','Executed when a withdrawal is transmited','withdraw'),(8,'NOTIFY_CRD_WITHDRAW','2011-07-03 17:32:38','Créditer prélèvement','Executed when a withdrawal is credited','withdraw'),(9,'NOTIFY_EMT_WITHDRAW','2011-07-03 17:32:38','Emission prélèvement','Executed when a withdrawal is emited','withdraw');
156 /*!40000 ALTER TABLE `llx_action_def` ENABLE KEYS */;
157 UNLOCK TABLES;
159 --
160 -- Table structure for table `llx_actioncomm`
161 --
163 DROP TABLE IF EXISTS `llx_actioncomm`;
164 /*!40101 SET @saved_cs_client = @@character_set_client */;
165 /*!40101 SET character_set_client = utf8 */;
166 CREATE TABLE `llx_actioncomm` (
167 `id` int(11) NOT NULL AUTO_INCREMENT,
168 `datep` datetime DEFAULT NULL,
169 `datep2` datetime DEFAULT NULL,
170 `datea` datetime DEFAULT NULL,
171 `datea2` datetime DEFAULT NULL,
172 `fk_action` int(11) DEFAULT NULL,
173 `label` varchar(128) NOT NULL,
174 `datec` datetime DEFAULT NULL,
175 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
176 `fk_user_author` int(11) DEFAULT NULL,
177 `fk_user_mod` int(11) DEFAULT NULL,
178 `fk_project` int(11) DEFAULT NULL,
179 `fk_soc` int(11) DEFAULT NULL,
180 `fk_contact` int(11) DEFAULT NULL,
181 `fk_parent` int(11) NOT NULL DEFAULT '0',
182 `fk_user_action` int(11) DEFAULT NULL,
183 `fk_user_done` int(11) DEFAULT NULL,
184 `priority` smallint(6) DEFAULT NULL,
185 `fulldayevent` smallint(6) NOT NULL DEFAULT '0',
186 `punctual` smallint(6) NOT NULL DEFAULT '1',
187 `percent` smallint(6) NOT NULL DEFAULT '0',
188 `location` varchar(128) DEFAULT NULL,
189 `durationp` double DEFAULT NULL,
190 `durationa` double DEFAULT NULL,
191 `note` text,
192 `propalrowid` int(11) DEFAULT NULL,
193 `fk_commande` int(11) DEFAULT NULL,
194 `fk_facture` int(11) DEFAULT NULL,
195 `fk_contract` int(11) DEFAULT NULL,
196 `fk_supplier_order` int(11) DEFAULT NULL,
197 `fk_supplier_invoice` int(11) DEFAULT NULL,
198 PRIMARY KEY (`id`),
199 KEY `idx_actioncomm_datea` (`datea`),
200 KEY `idx_actioncomm_fk_soc` (`fk_soc`),
201 KEY `idx_actioncomm_fk_contact` (`fk_contact`),
202 KEY `idx_actioncomm_fk_facture` (`fk_facture`),
203 KEY `idx_actioncomm_fk_supplier_order` (`fk_supplier_order`),
204 KEY `idx_actioncomm_fk_supplier_invoice` (`fk_supplier_invoice`)
205 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
206 /*!40101 SET character_set_client = @saved_cs_client */;
208 --
209 -- Dumping data for table `llx_actioncomm`
210 --
212 LOCK TABLES `llx_actioncomm` WRITE;
213 /*!40000 ALTER TABLE `llx_actioncomm` DISABLE KEYS */;
214 /*!40000 ALTER TABLE `llx_actioncomm` ENABLE KEYS */;
215 UNLOCK TABLES;
217 --
218 -- Table structure for table `llx_adherent`
219 --
221 DROP TABLE IF EXISTS `llx_adherent`;
222 /*!40101 SET @saved_cs_client = @@character_set_client */;
223 /*!40101 SET character_set_client = utf8 */;
224 CREATE TABLE `llx_adherent` (
225 `rowid` int(11) NOT NULL AUTO_INCREMENT,
226 `entity` int(11) NOT NULL DEFAULT '1',
227 `civilite` varchar(6) DEFAULT NULL,
228 `nom` varchar(50) DEFAULT NULL,
229 `prenom` varchar(50) DEFAULT NULL,
230 `login` varchar(50) NOT NULL,
231 `pass` varchar(50) DEFAULT NULL,
232 `fk_adherent_type` int(11) NOT NULL,
233 `morphy` varchar(3) NOT NULL,
234 `societe` varchar(50) DEFAULT NULL,
235 `fk_soc` int(11) DEFAULT NULL,
236 `adresse` text,
237 `cp` varchar(30) DEFAULT NULL,
238 `ville` varchar(50) DEFAULT NULL,
239 `fk_departement` int(11) DEFAULT NULL,
240 `pays` int(11) DEFAULT NULL,
241 `email` varchar(255) DEFAULT NULL,
242 `phone` varchar(30) DEFAULT NULL,
243 `phone_perso` varchar(30) DEFAULT NULL,
244 `phone_mobile` varchar(30) DEFAULT NULL,
245 `naiss` date DEFAULT NULL,
246 `photo` varchar(255) DEFAULT NULL,
247 `statut` smallint(6) NOT NULL DEFAULT '0',
248 `public` smallint(6) NOT NULL DEFAULT '0',
249 `datefin` datetime DEFAULT NULL,
250 `note` text,
251 `datevalid` datetime DEFAULT NULL,
252 `datec` datetime DEFAULT NULL,
253 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
254 `fk_user_author` int(11) DEFAULT NULL,
255 `fk_user_mod` int(11) DEFAULT NULL,
256 `fk_user_valid` int(11) DEFAULT NULL,
257 `import_key` varchar(14) DEFAULT NULL,
258 PRIMARY KEY (`rowid`),
259 UNIQUE KEY `uk_adherent_login` (`login`,`entity`),
260 UNIQUE KEY `uk_adherent_fk_soc` (`fk_soc`),
261 KEY `idx_adherent_fk_adherent_type` (`fk_adherent_type`)
262 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
263 /*!40101 SET character_set_client = @saved_cs_client */;
265 --
266 -- Dumping data for table `llx_adherent`
267 --
269 LOCK TABLES `llx_adherent` WRITE;
270 /*!40000 ALTER TABLE `llx_adherent` DISABLE KEYS */;
271 /*!40000 ALTER TABLE `llx_adherent` ENABLE KEYS */;
272 UNLOCK TABLES;
274 --
275 -- Table structure for table `llx_adherent_options`
276 --
278 DROP TABLE IF EXISTS `llx_adherent_options`;
279 /*!40101 SET @saved_cs_client = @@character_set_client */;
280 /*!40101 SET character_set_client = utf8 */;
281 CREATE TABLE `llx_adherent_options` (
282 `rowid` int(11) NOT NULL AUTO_INCREMENT,
283 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
284 `fk_member` int(11) NOT NULL,
285 PRIMARY KEY (`rowid`),
286 KEY `idx_adherent_options` (`fk_member`)
287 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
288 /*!40101 SET character_set_client = @saved_cs_client */;
290 --
291 -- Dumping data for table `llx_adherent_options`
292 --
294 LOCK TABLES `llx_adherent_options` WRITE;
295 /*!40000 ALTER TABLE `llx_adherent_options` DISABLE KEYS */;
296 /*!40000 ALTER TABLE `llx_adherent_options` ENABLE KEYS */;
297 UNLOCK TABLES;
299 --
300 -- Table structure for table `llx_adherent_options_label`
301 --
303 DROP TABLE IF EXISTS `llx_adherent_options_label`;
304 /*!40101 SET @saved_cs_client = @@character_set_client */;
305 /*!40101 SET character_set_client = utf8 */;
306 CREATE TABLE `llx_adherent_options_label` (
307 `rowid` int(11) NOT NULL AUTO_INCREMENT,
308 `name` varchar(64) NOT NULL,
309 `entity` int(11) NOT NULL DEFAULT '1',
310 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
311 `label` varchar(255) NOT NULL,
312 `type` varchar(8) DEFAULT NULL,
313 `size` int(11) DEFAULT '0',
314 `pos` int(11) DEFAULT '0',
315 PRIMARY KEY (`rowid`),
316 UNIQUE KEY `uk_adherent_options_label_name` (`name`,`entity`)
317 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
318 /*!40101 SET character_set_client = @saved_cs_client */;
320 --
321 -- Dumping data for table `llx_adherent_options_label`
322 --
324 LOCK TABLES `llx_adherent_options_label` WRITE;
325 /*!40000 ALTER TABLE `llx_adherent_options_label` DISABLE KEYS */;
326 /*!40000 ALTER TABLE `llx_adherent_options_label` ENABLE KEYS */;
327 UNLOCK TABLES;
329 --
330 -- Table structure for table `llx_adherent_type`
331 --
333 DROP TABLE IF EXISTS `llx_adherent_type`;
334 /*!40101 SET @saved_cs_client = @@character_set_client */;
335 /*!40101 SET character_set_client = utf8 */;
336 CREATE TABLE `llx_adherent_type` (
337 `rowid` int(11) NOT NULL AUTO_INCREMENT,
338 `entity` int(11) NOT NULL DEFAULT '1',
339 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
340 `statut` smallint(6) NOT NULL DEFAULT '0',
341 `libelle` varchar(50) NOT NULL,
342 `cotisation` varchar(3) NOT NULL DEFAULT 'yes',
343 `vote` varchar(3) NOT NULL DEFAULT 'yes',
344 `note` text,
345 `mail_valid` text,
346 PRIMARY KEY (`rowid`),
347 UNIQUE KEY `uk_adherent_type_libelle` (`libelle`,`entity`)
348 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
349 /*!40101 SET character_set_client = @saved_cs_client */;
351 --
352 -- Dumping data for table `llx_adherent_type`
353 --
355 LOCK TABLES `llx_adherent_type` WRITE;
356 /*!40000 ALTER TABLE `llx_adherent_type` DISABLE KEYS */;
357 /*!40000 ALTER TABLE `llx_adherent_type` ENABLE KEYS */;
358 UNLOCK TABLES;
360 --
361 -- Table structure for table `llx_bank`
362 --
364 DROP TABLE IF EXISTS `llx_bank`;
365 /*!40101 SET @saved_cs_client = @@character_set_client */;
366 /*!40101 SET character_set_client = utf8 */;
367 CREATE TABLE `llx_bank` (
368 `rowid` int(11) NOT NULL AUTO_INCREMENT,
369 `datec` datetime DEFAULT NULL,
370 `datev` date DEFAULT NULL,
371 `dateo` date DEFAULT NULL,
372 `amount` double(24,8) NOT NULL DEFAULT '0.00000000',
373 `label` varchar(255) DEFAULT NULL,
374 `fk_account` int(11) DEFAULT NULL,
375 `fk_user_author` int(11) DEFAULT NULL,
376 `fk_user_rappro` int(11) DEFAULT NULL,
377 `fk_type` varchar(6) DEFAULT NULL,
378 `num_releve` varchar(50) DEFAULT NULL,
379 `num_chq` varchar(50) DEFAULT NULL,
380 `rappro` tinyint(4) DEFAULT '0',
381 `note` text,
382 `fk_bordereau` int(11) DEFAULT '0',
383 `banque` varchar(255) DEFAULT NULL,
384 `emetteur` varchar(255) DEFAULT NULL,
385 `author` varchar(40) DEFAULT NULL,
386 PRIMARY KEY (`rowid`),
387 KEY `idx_bank_datev` (`datev`),
388 KEY `idx_bank_dateo` (`dateo`),
389 KEY `idx_bank_fk_account` (`fk_account`),
390 KEY `idx_bank_rappro` (`rappro`)
391 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
392 /*!40101 SET character_set_client = @saved_cs_client */;
394 --
395 -- Dumping data for table `llx_bank`
396 --
398 LOCK TABLES `llx_bank` WRITE;
399 /*!40000 ALTER TABLE `llx_bank` DISABLE KEYS */;
400 /*!40000 ALTER TABLE `llx_bank` ENABLE KEYS */;
401 UNLOCK TABLES;
403 --
404 -- Table structure for table `llx_bank_account`
405 --
407 DROP TABLE IF EXISTS `llx_bank_account`;
408 /*!40101 SET @saved_cs_client = @@character_set_client */;
409 /*!40101 SET character_set_client = utf8 */;
410 CREATE TABLE `llx_bank_account` (
411 `rowid` int(11) NOT NULL AUTO_INCREMENT,
412 `datec` datetime DEFAULT NULL,
413 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
414 `ref` varchar(12) NOT NULL,
415 `label` varchar(30) NOT NULL,
416 `entity` int(11) NOT NULL DEFAULT '1',
417 `bank` varchar(60) DEFAULT NULL,
418 `code_banque` varchar(7) DEFAULT NULL,
419 `code_guichet` varchar(6) DEFAULT NULL,
420 `number` varchar(255) DEFAULT NULL,
421 `cle_rib` varchar(5) DEFAULT NULL,
422 `bic` varchar(11) DEFAULT NULL,
423 `iban_prefix` varchar(34) DEFAULT NULL,
424 `country_iban` varchar(2) DEFAULT NULL,
425 `cle_iban` varchar(2) DEFAULT NULL,
426 `domiciliation` varchar(255) DEFAULT NULL,
427 `fk_departement` int(11) DEFAULT NULL,
428 `fk_pays` int(11) NOT NULL,
429 `proprio` varchar(60) DEFAULT NULL,
430 `adresse_proprio` varchar(255) DEFAULT NULL,
431 `courant` smallint(6) NOT NULL DEFAULT '0',
432 `clos` smallint(6) NOT NULL DEFAULT '0',
433 `rappro` smallint(6) DEFAULT '1',
434 `url` varchar(128) DEFAULT NULL,
435 `account_number` varchar(8) DEFAULT NULL,
436 `currency_code` varchar(3) NOT NULL,
437 `min_allowed` int(11) DEFAULT '0',
438 `min_desired` int(11) DEFAULT '0',
439 `comment` text,
440 PRIMARY KEY (`rowid`),
441 UNIQUE KEY `uk_bank_account_label` (`label`,`entity`)
442 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
443 /*!40101 SET character_set_client = @saved_cs_client */;
445 --
446 -- Dumping data for table `llx_bank_account`
447 --
449 LOCK TABLES `llx_bank_account` WRITE;
450 /*!40000 ALTER TABLE `llx_bank_account` DISABLE KEYS */;
451 /*!40000 ALTER TABLE `llx_bank_account` ENABLE KEYS */;
452 UNLOCK TABLES;
454 --
455 -- Table structure for table `llx_bank_categ`
456 --
458 DROP TABLE IF EXISTS `llx_bank_categ`;
459 /*!40101 SET @saved_cs_client = @@character_set_client */;
460 /*!40101 SET character_set_client = utf8 */;
461 CREATE TABLE `llx_bank_categ` (
462 `rowid` int(11) NOT NULL AUTO_INCREMENT,
463 `label` varchar(255) DEFAULT NULL,
464 `entity` int(11) NOT NULL DEFAULT '1',
465 PRIMARY KEY (`rowid`)
466 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
467 /*!40101 SET character_set_client = @saved_cs_client */;
469 --
470 -- Dumping data for table `llx_bank_categ`
471 --
473 LOCK TABLES `llx_bank_categ` WRITE;
474 /*!40000 ALTER TABLE `llx_bank_categ` DISABLE KEYS */;
475 /*!40000 ALTER TABLE `llx_bank_categ` ENABLE KEYS */;
476 UNLOCK TABLES;
478 --
479 -- Table structure for table `llx_bank_class`
480 --
482 DROP TABLE IF EXISTS `llx_bank_class`;
483 /*!40101 SET @saved_cs_client = @@character_set_client */;
484 /*!40101 SET character_set_client = utf8 */;
485 CREATE TABLE `llx_bank_class` (
486 `lineid` int(11) NOT NULL,
487 `fk_categ` int(11) NOT NULL,
488 UNIQUE KEY `uk_bank_class_lineid` (`lineid`,`fk_categ`)
489 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
490 /*!40101 SET character_set_client = @saved_cs_client */;
492 --
493 -- Dumping data for table `llx_bank_class`
494 --
496 LOCK TABLES `llx_bank_class` WRITE;
497 /*!40000 ALTER TABLE `llx_bank_class` DISABLE KEYS */;
498 /*!40000 ALTER TABLE `llx_bank_class` ENABLE KEYS */;
499 UNLOCK TABLES;
501 --
502 -- Table structure for table `llx_bank_url`
503 --
505 DROP TABLE IF EXISTS `llx_bank_url`;
506 /*!40101 SET @saved_cs_client = @@character_set_client */;
507 /*!40101 SET character_set_client = utf8 */;
508 CREATE TABLE `llx_bank_url` (
509 `rowid` int(11) NOT NULL AUTO_INCREMENT,
510 `fk_bank` int(11) DEFAULT NULL,
511 `url_id` int(11) DEFAULT NULL,
512 `url` varchar(255) DEFAULT NULL,
513 `label` varchar(255) DEFAULT NULL,
514 `type` varchar(20) NOT NULL,
515 PRIMARY KEY (`rowid`),
516 UNIQUE KEY `uk_bank_url` (`fk_bank`,`type`)
517 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
518 /*!40101 SET character_set_client = @saved_cs_client */;
520 --
521 -- Dumping data for table `llx_bank_url`
522 --
524 LOCK TABLES `llx_bank_url` WRITE;
525 /*!40000 ALTER TABLE `llx_bank_url` DISABLE KEYS */;
526 /*!40000 ALTER TABLE `llx_bank_url` ENABLE KEYS */;
527 UNLOCK TABLES;
529 --
530 -- Table structure for table `llx_bookmark`
531 --
533 DROP TABLE IF EXISTS `llx_bookmark`;
534 /*!40101 SET @saved_cs_client = @@character_set_client */;
535 /*!40101 SET character_set_client = utf8 */;
536 CREATE TABLE `llx_bookmark` (
537 `rowid` int(11) NOT NULL AUTO_INCREMENT,
538 `fk_soc` int(11) DEFAULT NULL,
539 `fk_user` int(11) NOT NULL,
540 `dateb` datetime DEFAULT NULL,
541 `url` varchar(128) NOT NULL,
542 `target` varchar(16) DEFAULT NULL,
543 `title` varchar(64) DEFAULT NULL,
544 `favicon` varchar(24) DEFAULT NULL,
545 `position` int(11) DEFAULT '0',
546 PRIMARY KEY (`rowid`),
547 UNIQUE KEY `uk_bookmark_url` (`fk_user`,`url`),
548 UNIQUE KEY `uk_bookmark_title` (`fk_user`,`title`)
549 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
550 /*!40101 SET character_set_client = @saved_cs_client */;
552 --
553 -- Dumping data for table `llx_bookmark`
554 --
556 LOCK TABLES `llx_bookmark` WRITE;
557 /*!40000 ALTER TABLE `llx_bookmark` DISABLE KEYS */;
558 /*!40000 ALTER TABLE `llx_bookmark` ENABLE KEYS */;
559 UNLOCK TABLES;
561 --
562 -- Table structure for table `llx_bordereau_cheque`
563 --
565 DROP TABLE IF EXISTS `llx_bordereau_cheque`;
566 /*!40101 SET @saved_cs_client = @@character_set_client */;
567 /*!40101 SET character_set_client = utf8 */;
568 CREATE TABLE `llx_bordereau_cheque` (
569 `rowid` int(11) NOT NULL AUTO_INCREMENT,
570 `datec` datetime NOT NULL,
571 `date_bordereau` date DEFAULT NULL,
572 `number` varchar(16) NOT NULL,
573 `entity` int(11) NOT NULL DEFAULT '1',
574 `amount` double(24,8) NOT NULL,
575 `nbcheque` smallint(6) NOT NULL,
576 `fk_bank_account` int(11) DEFAULT NULL,
577 `fk_user_author` int(11) DEFAULT NULL,
578 `note` text,
579 `statut` smallint(6) NOT NULL DEFAULT '0',
580 PRIMARY KEY (`rowid`),
581 UNIQUE KEY `uk_bordereau_cheque` (`number`,`entity`)
582 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
583 /*!40101 SET character_set_client = @saved_cs_client */;
585 --
586 -- Dumping data for table `llx_bordereau_cheque`
587 --
589 LOCK TABLES `llx_bordereau_cheque` WRITE;
590 /*!40000 ALTER TABLE `llx_bordereau_cheque` DISABLE KEYS */;
591 /*!40000 ALTER TABLE `llx_bordereau_cheque` ENABLE KEYS */;
592 UNLOCK TABLES;
594 --
595 -- Table structure for table `llx_boxes`
596 --
598 DROP TABLE IF EXISTS `llx_boxes`;
599 /*!40101 SET @saved_cs_client = @@character_set_client */;
600 /*!40101 SET character_set_client = utf8 */;
601 CREATE TABLE `llx_boxes` (
602 `rowid` int(11) NOT NULL AUTO_INCREMENT,
603 `box_id` int(11) NOT NULL,
604 `position` smallint(6) NOT NULL,
605 `box_order` varchar(3) NOT NULL,
606 `fk_user` int(11) NOT NULL DEFAULT '0',
607 PRIMARY KEY (`rowid`),
608 UNIQUE KEY `uk_boxes` (`box_id`,`position`,`fk_user`),
609 KEY `idx_boxes_boxid` (`box_id`),
610 KEY `idx_boxes_fk_user` (`fk_user`)
611 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
612 /*!40101 SET character_set_client = @saved_cs_client */;
614 --
615 -- Dumping data for table `llx_boxes`
616 --
618 LOCK TABLES `llx_boxes` WRITE;
619 /*!40000 ALTER TABLE `llx_boxes` DISABLE KEYS */;
620 /*!40000 ALTER TABLE `llx_boxes` ENABLE KEYS */;
621 UNLOCK TABLES;
623 --
624 -- Table structure for table `llx_boxes_def`
625 --
627 DROP TABLE IF EXISTS `llx_boxes_def`;
628 /*!40101 SET @saved_cs_client = @@character_set_client */;
629 /*!40101 SET character_set_client = utf8 */;
630 CREATE TABLE `llx_boxes_def` (
631 `rowid` int(11) NOT NULL AUTO_INCREMENT,
632 `file` varchar(200) NOT NULL,
633 `entity` int(11) NOT NULL DEFAULT '1',
634 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
635 `note` varchar(130) DEFAULT NULL,
636 PRIMARY KEY (`rowid`),
637 UNIQUE KEY `uk_boxes_def` (`file`,`entity`,`note`)
638 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
639 /*!40101 SET character_set_client = @saved_cs_client */;
641 --
642 -- Dumping data for table `llx_boxes_def`
643 --
645 LOCK TABLES `llx_boxes_def` WRITE;
646 /*!40000 ALTER TABLE `llx_boxes_def` DISABLE KEYS */;
647 /*!40000 ALTER TABLE `llx_boxes_def` ENABLE KEYS */;
648 UNLOCK TABLES;
650 --
651 -- Table structure for table `llx_c_actioncomm`
652 --
654 DROP TABLE IF EXISTS `llx_c_actioncomm`;
655 /*!40101 SET @saved_cs_client = @@character_set_client */;
656 /*!40101 SET character_set_client = utf8 */;
657 CREATE TABLE `llx_c_actioncomm` (
658 `id` int(11) NOT NULL,
659 `code` varchar(12) NOT NULL,
660 `type` varchar(10) NOT NULL DEFAULT 'system',
661 `libelle` varchar(48) NOT NULL,
662 `module` varchar(16) DEFAULT NULL,
663 `active` tinyint(4) NOT NULL DEFAULT '1',
664 `todo` tinyint(4) DEFAULT NULL,
665 PRIMARY KEY (`id`),
666 UNIQUE KEY `code` (`code`)
667 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
668 /*!40101 SET character_set_client = @saved_cs_client */;
670 --
671 -- Dumping data for table `llx_c_actioncomm`
672 --
674 LOCK TABLES `llx_c_actioncomm` WRITE;
675 /*!40000 ALTER TABLE `llx_c_actioncomm` DISABLE KEYS */;
676 INSERT INTO `llx_c_actioncomm` VALUES (1,'AC_TEL','system','Phone call',NULL,1,NULL),(2,'AC_FAX','system','Fax send',NULL,1,NULL),(3,'AC_PROP','system','Send commercial proposal by email','propal',1,NULL),(4,'AC_EMAIL','system','Send Email',NULL,1,NULL),(5,'AC_RDV','system','Rendez-vous',NULL,1,NULL),(8,'AC_COM','system','Send customer order by email','order',1,NULL),(9,'AC_FAC','system','Send customer invoice by email','invoice',1,NULL),(30,'AC_SUP_ORD','system','Send supplier order by email','order_supplier',1,NULL),(31,'AC_SUP_INV','system','Send supplier invoice by email','invoice_supplier',1,NULL),(50,'AC_OTH','system','Other',NULL,1,NULL);
677 /*!40000 ALTER TABLE `llx_c_actioncomm` ENABLE KEYS */;
678 UNLOCK TABLES;
680 --
681 -- Table structure for table `llx_c_barcode_type`
682 --
684 DROP TABLE IF EXISTS `llx_c_barcode_type`;
685 /*!40101 SET @saved_cs_client = @@character_set_client */;
686 /*!40101 SET character_set_client = utf8 */;
687 CREATE TABLE `llx_c_barcode_type` (
688 `rowid` int(11) NOT NULL AUTO_INCREMENT,
689 `code` varchar(16) NOT NULL,
690 `entity` int(11) NOT NULL DEFAULT '1',
691 `libelle` varchar(50) NOT NULL,
692 `coder` varchar(16) NOT NULL,
693 `example` varchar(16) NOT NULL,
694 PRIMARY KEY (`rowid`)
695 ) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
696 /*!40101 SET character_set_client = @saved_cs_client */;
698 --
699 -- Dumping data for table `llx_c_barcode_type`
700 --
702 LOCK TABLES `llx_c_barcode_type` WRITE;
703 /*!40000 ALTER TABLE `llx_c_barcode_type` DISABLE KEYS */;
704 INSERT INTO `llx_c_barcode_type` VALUES (1,'EAN8',1,'EAN8','0','1234567'),(2,'EAN13',1,'EAN13','0','123456789012'),(3,'UPC',1,'UPC','0','123456789012'),(4,'ISBN',1,'ISBN','0','123456789'),(5,'C39',1,'Code 39','0','1234567890'),(6,'C128',1,'Code 128','0','ABCD1234567890');
705 /*!40000 ALTER TABLE `llx_c_barcode_type` ENABLE KEYS */;
706 UNLOCK TABLES;
708 --
709 -- Table structure for table `llx_c_chargesociales`
710 --
712 DROP TABLE IF EXISTS `llx_c_chargesociales`;
713 /*!40101 SET @saved_cs_client = @@character_set_client */;
714 /*!40101 SET character_set_client = utf8 */;
715 CREATE TABLE `llx_c_chargesociales` (
716 `id` int(11) NOT NULL AUTO_INCREMENT,
717 `libelle` varchar(80) DEFAULT NULL,
718 `deductible` smallint(6) NOT NULL DEFAULT '0',
719 `active` tinyint(4) NOT NULL DEFAULT '1',
720 `code` varchar(12) NOT NULL,
721 `fk_pays` int(11) NOT NULL DEFAULT '1',
722 PRIMARY KEY (`id`)
723 ) ENGINE=MyISAM AUTO_INCREMENT=231 DEFAULT CHARSET=utf8;
724 /*!40101 SET character_set_client = @saved_cs_client */;
726 --
727 -- Dumping data for table `llx_c_chargesociales`
728 --
730 LOCK TABLES `llx_c_chargesociales` WRITE;
731 /*!40000 ALTER TABLE `llx_c_chargesociales` DISABLE KEYS */;
732 INSERT INTO `llx_c_chargesociales` VALUES (1,'Allocations familiales',1,1,'TAXFAM',1),(2,'CSG Deductible',1,1,'TAXCSGD',1),(3,'CSG/CRDS NON Deductible',0,1,'TAXCSGND',1),(10,'Taxe apprentissage',0,1,'TAXAPP',1),(11,'Taxe professionnelle',0,1,'TAXPRO',1),(20,'Impots locaux/fonciers',0,1,'TAXFON',1),(25,'Impots revenus',0,1,'TAXREV',1),(30,'Assurance Sante',0,1,'TAXSECU',1),(40,'Mutuelle',0,1,'TAXMUT',1),(50,'Assurance vieillesse',0,1,'TAXRET',1),(60,'Assurance Chomage',0,1,'TAXCHOM',1),(201,'ONSS',1,1,'TAXBEONSS',2),(210,'Precompte professionnel',1,1,'TAXBEPREPRO',2),(220,'Prime d\'existence',1,1,'TAXBEPRIEXI',2),(230,'Precompte immobilier',1,1,'TAXBEPREIMMO',2);
733 /*!40000 ALTER TABLE `llx_c_chargesociales` ENABLE KEYS */;
734 UNLOCK TABLES;
736 --
737 -- Table structure for table `llx_c_civilite`
738 --
740 DROP TABLE IF EXISTS `llx_c_civilite`;
741 /*!40101 SET @saved_cs_client = @@character_set_client */;
742 /*!40101 SET character_set_client = utf8 */;
743 CREATE TABLE `llx_c_civilite` (
744 `rowid` int(11) NOT NULL,
745 `code` varchar(6) NOT NULL,
746 `civilite` varchar(50) DEFAULT NULL,
747 `active` tinyint(4) NOT NULL DEFAULT '1',
748 PRIMARY KEY (`rowid`),
749 UNIQUE KEY `code` (`code`)
750 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
751 /*!40101 SET character_set_client = @saved_cs_client */;
753 --
754 -- Dumping data for table `llx_c_civilite`
755 --
757 LOCK TABLES `llx_c_civilite` WRITE;
758 /*!40000 ALTER TABLE `llx_c_civilite` DISABLE KEYS */;
759 INSERT INTO `llx_c_civilite` VALUES (1,'MME','Madame',1),(3,'MR','Monsieur',1),(5,'MLE','Mademoiselle',1),(7,'MTRE','Maître',1);
760 /*!40000 ALTER TABLE `llx_c_civilite` ENABLE KEYS */;
761 UNLOCK TABLES;
763 --
764 -- Table structure for table `llx_c_currencies`
765 --
767 DROP TABLE IF EXISTS `llx_c_currencies`;
768 /*!40101 SET @saved_cs_client = @@character_set_client */;
769 /*!40101 SET character_set_client = utf8 */;
770 CREATE TABLE `llx_c_currencies` (
771 `code` varchar(2) NOT NULL,
772 `code_iso` varchar(3) NOT NULL,
773 `label` varchar(64) DEFAULT NULL,
774 `labelsing` varchar(64) DEFAULT NULL,
775 `active` tinyint(4) NOT NULL DEFAULT '1',
776 PRIMARY KEY (`code`),
777 UNIQUE KEY `uk_c_currencies_code_iso` (`code_iso`)
778 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
779 /*!40101 SET character_set_client = @saved_cs_client */;
781 --
782 -- Dumping data for table `llx_c_currencies`
783 --
785 LOCK TABLES `llx_c_currencies` WRITE;
786 /*!40000 ALTER TABLE `llx_c_currencies` DISABLE KEYS */;
787 INSERT INTO `llx_c_currencies` VALUES ('BT','THB','Bath thailandais',NULL,1),('CD','DKK','Couronnes dannoises',NULL,1),('CN','NOK','Couronnes norvegiennes',NULL,1),('CS','SEK','Couronnes suedoises',NULL,1),('CZ','CZK','Couronnes tcheques',NULL,1),('TD','TND','Dinar tunisien',NULL,1),('DA','DZD','Dinar algérien',NULL,1),('DH','MAD','Dirham',NULL,1),('AD','AUD','Dollars australiens',NULL,1),('DC','CAD','Dollars canadiens',NULL,1),('HK','HKD','Dollars hong kong',NULL,1),('DS','SGD','Dollars singapour',NULL,1),('DU','USD','Dollars us',NULL,1),('EC','XEU','Ecus',NULL,1),('ES','PTE','Escudos',NULL,0),('FB','BEF','Francs belges',NULL,0),('FF','FRF','Francs francais',NULL,0),('FL','LUF','Francs luxembourgeois',NULL,0),('FO','NLG','Florins',NULL,1),('FS','CHF','Francs suisses',NULL,1),('LI','IEP','Livres irlandaises',NULL,1),('LR','ITL','Lires',NULL,0),('LS','GBP','Livres sterling',NULL,1),('MA','DEM','Deutsch mark',NULL,0),('MF','FIM','Mark finlandais',NULL,1),('MR','MRO','Ouguiya Mauritanien',NULL,1),('PA','ARP','Pesos argentins',NULL,1),('PC','CLP','Pesos chilien',NULL,1),('PE','ESP','Pesete',NULL,1),('PL','PLN','Zlotys polonais',NULL,1),('SA','ATS','Shiliing autrichiens',NULL,1),('TW','TWD','Dollar taiwanais',NULL,1),('YE','JPY','Yens',NULL,1),('ZA','ZAR','Rand africa',NULL,1),('DR','GRD','Drachme (grece)',NULL,1),('EU','EUR','Euros',NULL,1),('RB','BRL','Real bresilien',NULL,1),('SK','SKK','Couronnes slovaques',NULL,1),('YC','CNY','Yuang chinois',NULL,1),('AE','AED','Arabes emirats dirham',NULL,1),('CF','XAF','Francs cfa beac',NULL,1),('EG','EGP','Livre egyptienne',NULL,1),('KR','KRW','Won coree du sud',NULL,1),('NZ','NZD','Dollar neo-zelandais',NULL,1),('TR','TRL','Livre turque',NULL,1),('ID','IDR','Rupiahs d\'indonesie',NULL,1),('IN','INR','Roupie indienne',NULL,1),('LT','LTL','Litas',NULL,1),('RU','SUR','Rouble',NULL,1),('FH','HUF','Forint hongrois',NULL,1),('LK','LKR','Roupies sri lanka',NULL,1),('MU','MUR','Roupies mauritiennes',NULL,1),('SR','SAR','Saudi riyal',NULL,1);
788 /*!40000 ALTER TABLE `llx_c_currencies` ENABLE KEYS */;
789 UNLOCK TABLES;
791 --
792 -- Table structure for table `llx_c_departements`
793 --
795 DROP TABLE IF EXISTS `llx_c_departements`;
796 /*!40101 SET @saved_cs_client = @@character_set_client */;
797 /*!40101 SET character_set_client = utf8 */;
798 CREATE TABLE `llx_c_departements` (
799 `rowid` int(11) NOT NULL AUTO_INCREMENT,
800 `code_departement` varchar(6) NOT NULL,
801 `fk_region` int(11) DEFAULT NULL,
802 `cheflieu` varchar(7) DEFAULT NULL,
803 `tncc` int(11) DEFAULT NULL,
804 `ncc` varchar(50) DEFAULT NULL,
805 `nom` varchar(50) DEFAULT NULL,
806 `active` tinyint(4) NOT NULL DEFAULT '1',
807 PRIMARY KEY (`rowid`),
808 UNIQUE KEY `uk_departements` (`code_departement`,`fk_region`),
809 KEY `idx_departements_fk_region` (`fk_region`)
810 ) ENGINE=MyISAM AUTO_INCREMENT=434 DEFAULT CHARSET=utf8;
811 /*!40101 SET character_set_client = @saved_cs_client */;
813 --
814 -- Dumping data for table `llx_c_departements`
815 --
817 LOCK TABLES `llx_c_departements` WRITE;
818 /*!40000 ALTER TABLE `llx_c_departements` DISABLE KEYS */;
819 INSERT INTO `llx_c_departements` VALUES (1,'0',0,'0',0,'-','-',1),(2,'01',82,'01053',5,'AIN','Ain',1),(3,'02',22,'02408',5,'AISNE','Aisne',1),(4,'03',83,'03190',5,'ALLIER','Allier',1),(5,'04',93,'04070',4,'ALPES-DE-HAUTE-PROVENCE','Alpes-de-Haute-Provence',1),(6,'05',93,'05061',4,'HAUTES-ALPES','Hautes-Alpes',1),(7,'06',93,'06088',4,'ALPES-MARITIMES','Alpes-Maritimes',1),(8,'07',82,'07186',5,'ARDECHE','Ardèche',1),(9,'08',21,'08105',4,'ARDENNES','Ardennes',1),(10,'09',73,'09122',5,'ARIEGE','Ariège',1),(11,'10',21,'10387',5,'AUBE','Aube',1),(12,'11',91,'11069',5,'AUDE','Aude',1),(13,'12',73,'12202',5,'AVEYRON','Aveyron',1),(14,'13',93,'13055',4,'BOUCHES-DU-RHONE','Bouches-du-Rhône',1),(15,'14',25,'14118',2,'CALVADOS','Calvados',1),(16,'15',83,'15014',2,'CANTAL','Cantal',1),(17,'16',54,'16015',3,'CHARENTE','Charente',1),(18,'17',54,'17300',3,'CHARENTE-MARITIME','Charente-Maritime',1),(19,'18',24,'18033',2,'CHER','Cher',1),(20,'19',74,'19272',3,'CORREZE','Corrèze',1),(21,'2A',94,'2A004',3,'CORSE-DU-SUD','Corse-du-Sud',1),(22,'2B',94,'2B033',3,'HAUTE-CORSE','Haute-Corse',1),(23,'21',26,'21231',3,'COTE-D\'OR','Côte-d\'Or',1),(24,'22',53,'22278',4,'COTES-D\'ARMOR','Côtes-d\'Armor',1),(25,'23',74,'23096',3,'CREUSE','Creuse',1),(26,'24',72,'24322',3,'DORDOGNE','Dordogne',1),(27,'25',43,'25056',2,'DOUBS','Doubs',1),(28,'26',82,'26362',3,'DROME','Drôme',1),(29,'27',23,'27229',5,'EURE','Eure',1),(30,'28',24,'28085',1,'EURE-ET-LOIR','Eure-et-Loir',1),(31,'29',53,'29232',2,'FINISTERE','Finistère',1),(32,'30',91,'30189',2,'GARD','Gard',1),(33,'31',73,'31555',3,'HAUTE-GARONNE','Haute-Garonne',1),(34,'32',73,'32013',2,'GERS','Gers',1),(35,'33',72,'33063',3,'GIRONDE','Gironde',1),(36,'34',91,'34172',5,'HERAULT','Hérault',1),(37,'35',53,'35238',1,'ILLE-ET-VILAINE','Ille-et-Vilaine',1),(38,'36',24,'36044',5,'INDRE','Indre',1),(39,'37',24,'37261',1,'INDRE-ET-LOIRE','Indre-et-Loire',1),(40,'38',82,'38185',5,'ISERE','Isère',1),(41,'39',43,'39300',2,'JURA','Jura',1),(42,'40',72,'40192',4,'LANDES','Landes',1),(43,'41',24,'41018',0,'LOIR-ET-CHER','Loir-et-Cher',1),(44,'42',82,'42218',3,'LOIRE','Loire',1),(45,'43',83,'43157',3,'HAUTE-LOIRE','Haute-Loire',1),(46,'44',52,'44109',3,'LOIRE-ATLANTIQUE','Loire-Atlantique',1),(47,'45',24,'45234',2,'LOIRET','Loiret',1),(48,'46',73,'46042',2,'LOT','Lot',1),(49,'47',72,'47001',0,'LOT-ET-GARONNE','Lot-et-Garonne',1),(50,'48',91,'48095',3,'LOZERE','Lozère',1),(51,'49',52,'49007',0,'MAINE-ET-LOIRE','Maine-et-Loire',1),(52,'50',25,'50502',3,'MANCHE','Manche',1),(53,'51',21,'51108',3,'MARNE','Marne',1),(54,'52',21,'52121',3,'HAUTE-MARNE','Haute-Marne',1),(55,'53',52,'53130',3,'MAYENNE','Mayenne',1),(56,'54',41,'54395',0,'MEURTHE-ET-MOSELLE','Meurthe-et-Moselle',1),(57,'55',41,'55029',3,'MEUSE','Meuse',1),(58,'56',53,'56260',2,'MORBIHAN','Morbihan',1),(59,'57',41,'57463',3,'MOSELLE','Moselle',1),(60,'58',26,'58194',3,'NIEVRE','Nièvre',1),(61,'59',31,'59350',2,'NORD','Nord',1),(62,'60',22,'60057',5,'OISE','Oise',1),(63,'61',25,'61001',5,'ORNE','Orne',1),(64,'62',31,'62041',2,'PAS-DE-CALAIS','Pas-de-Calais',1),(65,'63',83,'63113',2,'PUY-DE-DOME','Puy-de-Dôme',1),(66,'64',72,'64445',4,'PYRENEES-ATLANTIQUES','Pyrénées-Atlantiques',1),(67,'65',73,'65440',4,'HAUTES-PYRENEES','Hautes-Pyrénées',1),(68,'66',91,'66136',4,'PYRENEES-ORIENTALES','Pyrénées-Orientales',1),(69,'67',42,'67482',2,'BAS-RHIN','Bas-Rhin',1),(70,'68',42,'68066',2,'HAUT-RHIN','Haut-Rhin',1),(71,'69',82,'69123',2,'RHONE','Rhône',1),(72,'70',43,'70550',3,'HAUTE-SAONE','Haute-Saône',1),(73,'71',26,'71270',0,'SAONE-ET-LOIRE','Saône-et-Loire',1),(74,'72',52,'72181',3,'SARTHE','Sarthe',1),(75,'73',82,'73065',3,'SAVOIE','Savoie',1),(76,'74',82,'74010',3,'HAUTE-SAVOIE','Haute-Savoie',1),(77,'75',11,'75056',0,'PARIS','Paris',1),(78,'76',23,'76540',3,'SEINE-MARITIME','Seine-Maritime',1),(79,'77',11,'77288',0,'SEINE-ET-MARNE','Seine-et-Marne',1),(80,'78',11,'78646',4,'YVELINES','Yvelines',1),(81,'79',54,'79191',4,'DEUX-SEVRES','Deux-Sèvres',1),(82,'80',22,'80021',3,'SOMME','Somme',1),(83,'81',73,'81004',2,'TARN','Tarn',1),(84,'82',73,'82121',0,'TARN-ET-GARONNE','Tarn-et-Garonne',1),(85,'83',93,'83137',2,'VAR','Var',1),(86,'84',93,'84007',0,'VAUCLUSE','Vaucluse',1),(87,'85',52,'85191',3,'VENDEE','Vendée',1),(88,'86',54,'86194',3,'VIENNE','Vienne',1),(89,'87',74,'87085',3,'HAUTE-VIENNE','Haute-Vienne',1),(90,'88',41,'88160',4,'VOSGES','Vosges',1),(91,'89',26,'89024',5,'YONNE','Yonne',1),(92,'90',43,'90010',0,'TERRITOIRE DE BELFORT','Territoire de Belfort',1),(93,'91',11,'91228',5,'ESSONNE','Essonne',1),(94,'92',11,'92050',4,'HAUTS-DE-SEINE','Hauts-de-Seine',1),(95,'93',11,'93008',3,'SEINE-SAINT-DENIS','Seine-Saint-Denis',1),(96,'94',11,'94028',2,'VAL-DE-MARNE','Val-de-Marne',1),(97,'95',11,'95500',2,'VAL-D\'OISE','Val-d\'Oise',1),(98,'971',1,'97105',3,'GUADELOUPE','Guadeloupe',1),(99,'972',2,'97209',3,'MARTINIQUE','Martinique',1),(100,'973',3,'97302',3,'GUYANE','Guyane',1),(101,'974',4,'97411',3,'REUNION','Réunion',1),(102,'01',201,'',1,'ANVERS','Anvers',1),(103,'02',203,'',3,'BRUXELLES-CAPITALE','Bruxelles-Capitale',1),(104,'03',202,'',2,'BRABANT-WALLON','Brabant-Wallon',1),(105,'04',201,'',1,'BRABANT-FLAMAND','Brabant-Flamand',1),(106,'05',201,'',1,'FLANDRE-OCCIDENTALE','Flandre-Occidentale',1),(107,'06',201,'',1,'FLANDRE-ORIENTALE','Flandre-Orientale',1),(108,'07',202,'',2,'HAINAUT','Hainaut',1),(109,'08',201,'',2,'LIEGE','Liège',1),(110,'09',202,'',1,'LIMBOURG','Limbourg',1),(111,'10',202,'',2,'LUXEMBOURG','Luxembourg',1),(112,'11',201,'',2,'NAMUR','Namur',1),(113,'AG',315,NULL,NULL,NULL,'AGRIGENTO',1),(114,'AL',312,NULL,NULL,NULL,'ALESSANDRIA',1),(115,'AN',310,NULL,NULL,NULL,'ANCONA',1),(116,'AO',319,NULL,NULL,NULL,'AOSTA',1),(117,'AR',316,NULL,NULL,NULL,'AREZZO',1),(118,'AP',310,NULL,NULL,NULL,'ASCOLI PICENO',1),(119,'AT',312,NULL,NULL,NULL,'ASTI',1),(120,'AV',304,NULL,NULL,NULL,'AVELLINO',1),(121,'BA',313,NULL,NULL,NULL,'BARI',1),(122,'BT',313,NULL,NULL,NULL,'BARLETTA-ANDRIA-TRANI',1),(123,'BL',320,NULL,NULL,NULL,'BELLUNO',1),(124,'BN',304,NULL,NULL,NULL,'BENEVENTO',1),(125,'BG',309,NULL,NULL,NULL,'BERGAMO',1),(126,'BI',312,NULL,NULL,NULL,'BIELLA',1),(127,'BO',305,NULL,NULL,NULL,'BOLOGNA',1),(128,'BZ',317,NULL,NULL,NULL,'BOLZANO',1),(129,'BS',309,NULL,NULL,NULL,'BRESCIA',1),(130,'BR',313,NULL,NULL,NULL,'BRINDISI',1),(131,'CA',314,NULL,NULL,NULL,'CAGLIARI',1),(132,'CL',315,NULL,NULL,NULL,'CALTANISSETTA',1),(133,'CB',311,NULL,NULL,NULL,'CAMPOBASSO',1),(134,'CI',314,NULL,NULL,NULL,'CARBONIA-IGLESIAS',1),(135,'CE',304,NULL,NULL,NULL,'CASERTA',1),(136,'CT',315,NULL,NULL,NULL,'CATANIA',1),(137,'CZ',303,NULL,NULL,NULL,'CATANZARO',1),(138,'CH',301,NULL,NULL,NULL,'CHIETI',1),(139,'CO',309,NULL,NULL,NULL,'COMO',1),(140,'CS',303,NULL,NULL,NULL,'COSENZA',1),(141,'CR',309,NULL,NULL,NULL,'CREMONA',1),(142,'KR',303,NULL,NULL,NULL,'CROTONE',1),(143,'CN',312,NULL,NULL,NULL,'CUNEO',1),(144,'EN',315,NULL,NULL,NULL,'ENNA',1),(145,'FM',310,NULL,NULL,NULL,'FERMO',1),(146,'FE',305,NULL,NULL,NULL,'FERRARA',1),(147,'FI',316,NULL,NULL,NULL,'FIRENZE',1),(148,'FG',313,NULL,NULL,NULL,'FOGGIA',1),(149,'FC',305,NULL,NULL,NULL,'FORLI-CESENA',1),(150,'FR',307,NULL,NULL,NULL,'FROSINONE',1),(151,'GE',308,NULL,NULL,NULL,'GENOVA',1),(152,'GO',306,NULL,NULL,NULL,'GORIZIA',1),(153,'GR',316,NULL,NULL,NULL,'GROSSETO',1),(154,'IM',308,NULL,NULL,NULL,'IMPERIA',1),(155,'IS',311,NULL,NULL,NULL,'ISERNIA',1),(156,'SP',308,NULL,NULL,NULL,'LA SPEZIA',1),(157,'AQ',301,NULL,NULL,NULL,'L AQUILA',1),(158,'LT',307,NULL,NULL,NULL,'LATINA',1),(159,'LE',313,NULL,NULL,NULL,'LECCE',1),(160,'LC',309,NULL,NULL,NULL,'LECCO',1),(161,'LI',314,NULL,NULL,NULL,'LIVORNO',1),(162,'LO',309,NULL,NULL,NULL,'LODI',1),(163,'LU',316,NULL,NULL,NULL,'LUCCA',1),(164,'MC',310,NULL,NULL,NULL,'MACERATA',1),(165,'MN',309,NULL,NULL,NULL,'MANTOVA',1),(166,'MS',316,NULL,NULL,NULL,'MASSA-CARRARA',1),(167,'MT',302,NULL,NULL,NULL,'MATERA',1),(168,'VS',314,NULL,NULL,NULL,'MEDIO CAMPIDANO',1),(169,'ME',315,NULL,NULL,NULL,'MESSINA',1),(170,'MI',309,NULL,NULL,NULL,'MILANO',1),(171,'MB',309,NULL,NULL,NULL,'MONZA e BRIANZA',1),(172,'MO',305,NULL,NULL,NULL,'MODENA',1),(173,'NA',304,NULL,NULL,NULL,'NAPOLI',1),(174,'NO',312,NULL,NULL,NULL,'NOVARA',1),(175,'NU',314,NULL,NULL,NULL,'NUORO',1),(176,'OG',314,NULL,NULL,NULL,'OGLIASTRA',1),(177,'OT',314,NULL,NULL,NULL,'OLBIA-TEMPIO',1),(178,'OR',314,NULL,NULL,NULL,'ORISTANO',1),(179,'PD',320,NULL,NULL,NULL,'PADOVA',1),(180,'PA',315,NULL,NULL,NULL,'PALERMO',1),(181,'PR',305,NULL,NULL,NULL,'PARMA',1),(182,'PV',309,NULL,NULL,NULL,'PAVIA',1),(183,'PG',318,NULL,NULL,NULL,'PERUGIA',1),(184,'PU',310,NULL,NULL,NULL,'PESARO e URBINO',1),(185,'PE',301,NULL,NULL,NULL,'PESCARA',1),(186,'PC',305,NULL,NULL,NULL,'PIACENZA',1),(187,'PI',316,NULL,NULL,NULL,'PISA',1),(188,'PT',316,NULL,NULL,NULL,'PISTOIA',1),(189,'PN',306,NULL,NULL,NULL,'PORDENONE',1),(190,'PZ',302,NULL,NULL,NULL,'POTENZA',1),(191,'PO',316,NULL,NULL,NULL,'PRATO',1),(192,'RG',315,NULL,NULL,NULL,'RAGUSA',1),(193,'RA',305,NULL,NULL,NULL,'RAVENNA',1),(194,'RC',303,NULL,NULL,NULL,'REGGIO CALABRIA',1),(195,'RE',305,NULL,NULL,NULL,'REGGIO NELL EMILIA',1),(196,'RI',307,NULL,NULL,NULL,'RIETI',1),(197,'RN',305,NULL,NULL,NULL,'RIMINI',1),(198,'RM',307,NULL,NULL,NULL,'ROMA',1),(199,'RO',320,NULL,NULL,NULL,'ROVIGO',1),(200,'SA',304,NULL,NULL,NULL,'SALERNO',1),(201,'SS',314,NULL,NULL,NULL,'SASSARI',1),(202,'SV',308,NULL,NULL,NULL,'SAVONA',1),(203,'SI',316,NULL,NULL,NULL,'SIENA',1),(204,'SR',315,NULL,NULL,NULL,'SIRACUSA',1),(205,'SO',309,NULL,NULL,NULL,'SONDRIO',1),(206,'TA',313,NULL,NULL,NULL,'TARANTO',1),(207,'TE',301,NULL,NULL,NULL,'TERAMO',1),(208,'TR',318,NULL,NULL,NULL,'TERNI',1),(209,'TO',312,NULL,NULL,NULL,'TORINO',1),(210,'TP',315,NULL,NULL,NULL,'TRAPANI',1),(211,'TN',317,NULL,NULL,NULL,'TRENTO',1),(212,'TV',320,NULL,NULL,NULL,'TREVISO',1),(213,'TS',306,NULL,NULL,NULL,'TRIESTE',1),(214,'UD',306,NULL,NULL,NULL,'UDINE',1),(215,'VA',309,NULL,NULL,NULL,'VARESE',1),(216,'VE',320,NULL,NULL,NULL,'VENEZIA',1),(217,'VB',312,NULL,NULL,NULL,'VERBANO-CUSIO-OSSOLA',1),(218,'VC',312,NULL,NULL,NULL,'VERCELLI',1),(219,'VR',320,NULL,NULL,NULL,'VERONA',1),(220,'VV',303,NULL,NULL,NULL,'VIBO VALENTIA',1),(221,'VI',320,NULL,NULL,NULL,'VICENZA',1),(222,'VT',307,NULL,NULL,NULL,'VITERBO',1),(223,'NSW',2801,'',1,'','New South Wales',1),(224,'VIC',2801,'',1,'','Victoria',1),(225,'QLD',2801,'',1,'','Queensland',1),(226,'SA',2801,'',1,'','South Australia',1),(227,'ACT',2801,'',1,'','Australia Capital Territory',1),(228,'TAS',2801,'',1,'','Tasmania',1),(229,'WA',2801,'',1,'','Western Australia',1),(230,'NT',2801,'',1,'','Northern Territory',1),(231,'01',419,'',19,'PAIS VASCO','País Vasco',1),(232,'02',404,'',4,'ALBACETE','Albacete',1),(233,'03',411,'',11,'ALICANTE','Alicante',1),(234,'04',401,'',1,'ALMERIA','Almería',1),(235,'05',403,'',3,'AVILA','Avila',1),(236,'06',412,'',12,'BADAJOZ','Badajoz',1),(237,'07',414,'',14,'ISLAS BALEARES','Islas Baleares',1),(238,'08',406,'',6,'BARCELONA','Barcelona',1),(239,'09',403,'',8,'BURGOS','Burgos',1),(240,'10',412,'',12,'CACERES','Cáceres',1),(241,'11',401,'',1,'CADIz','Cádiz',1),(242,'12',411,'',11,'CASTELLON','Castellón',1),(243,'13',404,'',4,'CIUDAD REAL','Ciudad Real',1),(244,'14',401,'',1,'CORDOBA','Córdoba',1),(245,'15',413,'',13,'LA CORUÑA','La Coruña',1),(246,'16',404,'',4,'CUENCA','Cuenca',1),(247,'17',406,'',6,'GERONA','Gerona',1),(248,'18',401,'',1,'GRANADA','Granada',1),(249,'19',404,'',4,'GUADALAJARA','Guadalajara',1),(250,'20',419,'',19,'GUIPUZCOA','Guipúzcoa',1),(251,'21',401,'',1,'HUELVA','Huelva',1),(252,'22',402,'',2,'HUESCA','Huesca',1),(253,'23',401,'',1,'JAEN','Jaén',1),(254,'24',403,'',3,'LEON','León',1),(255,'25',406,'',6,'LERIDA','Lérida',1),(256,'26',415,'',15,'LA RIOJA','La Rioja',1),(257,'27',413,'',13,'LUGO','Lugo',1),(258,'28',416,'',16,'MADRID','Madrid',1),(259,'29',401,'',1,'MALAGA','Málaga',1),(260,'30',417,'',17,'MURCIA','Murcia',1),(261,'31',408,'',8,'NAVARRA','Navarra',1),(262,'32',413,'',13,'ORENSE','Orense',1),(263,'33',418,'',18,'ASTURIAS','Asturias',1),(264,'34',403,'',3,'PALENCIA','Palencia',1),(265,'35',405,'',5,'LAS PALMAS','Las Palmas',1),(266,'36',413,'',13,'PONTEVEDRA','Pontevedra',1),(267,'37',403,'',3,'SALAMANCA','Salamanca',1),(268,'38',405,'',5,'STA. CRUZ DE TENERIFE','Sta. Cruz de Tenerife',1),(269,'39',410,'',10,'CANTABRIA','Cantabria',1),(270,'40',403,'',3,'SEGOVIA','Segovia',1),(271,'41',401,'',1,'SEVILLA','Sevilla',1),(272,'42',403,'',3,'SORIA','Soria',1),(273,'43',406,'',6,'TARRAGONA','Tarragona',1),(274,'44',402,'',2,'TERUEL','Teruel',1),(275,'45',404,'',5,'TOLEDO','Toledo',1),(276,'46',411,'',11,'VALENCIA','Valencia',1),(277,'47',403,'',3,'VALLADOLID','Valladolid',1),(278,'48',419,'',19,'VIZCAYA','Vizcaya',1),(279,'49',403,'',3,'ZAMORA','Zamora',1),(280,'50',402,'',1,'ZARAGOZA','Zaragoza',1),(281,'51',407,'',7,'CEUTA','Ceuta',1),(282,'52',409,'',9,'MELILLA','Melilla',1),(283,'53',420,'',20,'OTROS','Otros',1),(284,'AG',601,NULL,NULL,'ARGOVIE','Argovie',1),(285,'AI',601,NULL,NULL,'APPENZELL RHODES INTERIEURES','Appenzell Rhodes intérieures',1),(286,'AR',601,NULL,NULL,'APPENZELL RHODES EXTERIEURES','Appenzell Rhodes extérieures',1),(287,'BE',601,NULL,NULL,'BERNE','Berne',1),(288,'BL',601,NULL,NULL,'BALE CAMPAGNE','Bâle Campagne',1),(289,'BS',601,NULL,NULL,'BALE VILLE','Bâle Ville',1),(290,'FR',601,NULL,NULL,'FRIBOURG','Fribourg',1),(291,'GE',601,NULL,NULL,'GENEVE','Genève',1),(292,'GL',601,NULL,NULL,'GLARIS','Glaris',1),(293,'GR',601,NULL,NULL,'GRISONS','Grisons',1),(294,'JU',601,NULL,NULL,'JURA','Jura',1),(295,'LU',601,NULL,NULL,'LUCERNE','Lucerne',1),(296,'NE',601,NULL,NULL,'NEUCHATEL','Neuchâtel',1),(297,'NW',601,NULL,NULL,'NIDWALD','Nidwald',1),(298,'OW',601,NULL,NULL,'OBWALD','Obwald',1),(299,'SG',601,NULL,NULL,'SAINT-GALL','Saint-Gall',1),(300,'SH',601,NULL,NULL,'SCHAFFHOUSE','Schaffhouse',1),(301,'SO',601,NULL,NULL,'SOLEURE','Soleure',1),(302,'SZ',601,NULL,NULL,'SCHWYZ','Schwyz',1),(303,'TG',601,NULL,NULL,'THURGOVIE','Thurgovie',1),(304,'TI',601,NULL,NULL,'TESSIN','Tessin',1),(305,'UR',601,NULL,NULL,'URI','Uri',1),(306,'VD',601,NULL,NULL,'VAUD','Vaud',1),(307,'VS',601,NULL,NULL,'VALAIS','Valais',1),(308,'ZG',601,NULL,NULL,'ZUG','Zug',1),(309,'ZH',601,NULL,NULL,'ZURICH','Zürich',1),(310,'AL',1101,'',0,'ALABAMA','Alabama',1),(311,'AK',1101,'',0,'ALASKA','Alaska',1),(312,'AZ',1101,'',0,'ARIZONA','Arizona',1),(313,'AR',1101,'',0,'ARKANSAS','Arkansas',1),(314,'CA',1101,'',0,'CALIFORNIA','California',1),(315,'CO',1101,'',0,'COLORADO','Colorado',1),(316,'CT',1101,'',0,'CONNECTICUT','Connecticut',1),(317,'DE',1101,'',0,'DELAWARE','Delaware',1),(318,'FL',1101,'',0,'FLORIDA','Florida',1),(319,'GA',1101,'',0,'GEORGIA','Georgia',1),(320,'HI',1101,'',0,'HAWAII','Hawaii',1),(321,'ID',1101,'',0,'IDAHO','Idaho',1),(322,'IL',1101,'',0,'ILLINOIS','Illinois',1),(323,'IN',1101,'',0,'INDIANA','Indiana',1),(324,'IA',1101,'',0,'IOWA','Iowa',1),(325,'KS',1101,'',0,'KANSAS','Kansas',1),(326,'KY',1101,'',0,'KENTUCKY','Kentucky',1),(327,'LA',1101,'',0,'LOUISIANA','Louisiana',1),(328,'ME',1101,'',0,'MAINE','Maine',1),(329,'MD',1101,'',0,'MARYLAND','Maryland',1),(330,'MA',1101,'',0,'MASSACHUSSETTS','Massachusetts',1),(331,'MI',1101,'',0,'MICHIGAN','Michigan',1),(332,'MN',1101,'',0,'MINNESOTA','Minnesota',1),(333,'MS',1101,'',0,'MISSISSIPPI','Mississippi',1),(334,'MO',1101,'',0,'MISSOURI','Missouri',1),(335,'MT',1101,'',0,'MONTANA','Montana',1),(336,'NE',1101,'',0,'NEBRASKA','Nebraska',1),(337,'NV',1101,'',0,'NEVADA','Nevada',1),(338,'NH',1101,'',0,'NEW HAMPSHIRE','New Hampshire',1),(339,'NJ',1101,'',0,'NEW JERSEY','New Jersey',1),(340,'NM',1101,'',0,'NEW MEXICO','New Mexico',1),(341,'NY',1101,'',0,'NEW YORK','New York',1),(342,'NC',1101,'',0,'NORTH CAROLINA','North Carolina',1),(343,'ND',1101,'',0,'NORTH DAKOTA','North Dakota',1),(344,'OH',1101,'',0,'OHIO','Ohio',1),(345,'OK',1101,'',0,'OKLAHOMA','Oklahoma',1),(346,'OR',1101,'',0,'OREGON','Oregon',1),(347,'PA',1101,'',0,'PENNSYLVANIA','Pennsylvania',1),(348,'RI',1101,'',0,'RHODE ISLAND','Rhode Island',1),(349,'SC',1101,'',0,'SOUTH CAROLINA','South Carolina',1),(350,'SD',1101,'',0,'SOUTH DAKOTA','South Dakota',1),(351,'TN',1101,'',0,'TENNESSEE','Tennessee',1),(352,'TX',1101,'',0,'TEXAS','Texas',1),(353,'UT',1101,'',0,'UTAH','Utah',1),(354,'VT',1101,'',0,'VERMONT','Vermont',1),(355,'VA',1101,'',0,'VIRGINIA','Virginia',1),(356,'WA',1101,'',0,'WASHINGTON','Washington',1),(357,'WV',1101,'',0,'WEST VIRGINIA','West Virginia',1),(358,'WI',1101,'',0,'WISCONSIN','Wisconsin',1),(359,'WY',1101,'',0,'WYOMING','Wyoming',1),(360,'SS',8601,NULL,NULL,NULL,'San Salvador',1),(361,'SA',8603,NULL,NULL,NULL,'Santa Ana',1),(362,'AH',8603,NULL,NULL,NULL,'Ahuachapan',1),(363,'SO',8603,NULL,NULL,NULL,'Sonsonate',1),(364,'US',8602,NULL,NULL,NULL,'Usulutan',1),(365,'SM',8602,NULL,NULL,NULL,'San Miguel',1),(366,'MO',8602,NULL,NULL,NULL,'Morazan',1),(367,'LU',8602,NULL,NULL,NULL,'La Union',1),(368,'LL',8601,NULL,NULL,NULL,'La Libertad',1),(369,'CH',8601,NULL,NULL,NULL,'Chalatenango',1),(370,'CA',8601,NULL,NULL,NULL,'Cabañas',1),(371,'LP',8601,NULL,NULL,NULL,'La Paz',1),(372,'SV',8601,NULL,NULL,NULL,'San Vicente',1),(373,'CU',8601,NULL,NULL,NULL,'Cuscatlan',1),(374,'2301',2301,'',0,'CATAMARCA','Catamarca',1),(375,'2302',2301,'',0,'YUJUY','Yujuy',1),(376,'2303',2301,'',0,'TUCAMAN','Tucamán',1),(377,'2304',2301,'',0,'SANTIAGO DEL ESTERO','Santiago del Estero',1),(378,'2305',2301,'',0,'SALTA','Salta',1),(379,'2306',2302,'',0,'CHACO','Chaco',1),(380,'2307',2302,'',0,'CORRIENTES','Corrientes',1),(381,'2308',2302,'',0,'ENTRE RIOS','Entre Ríos',1),(382,'2309',2302,'',0,'FORMOSA MISIONES','Formosa Misiones',1),(383,'2310',2302,'',0,'SANTA FE','Santa Fe',1),(384,'2311',2303,'',0,'LA RIOJA','La Rioja',1),(385,'2312',2303,'',0,'MENDOZA','Mendoza',1),(386,'2313',2303,'',0,'SAN JUAN','San Juan',1),(387,'2314',2303,'',0,'SAN LUIS','San Luis',1),(388,'2315',2304,'',0,'CORDOBA','Córdoba',1),(389,'2316',2304,'',0,'BUENOS AIRES','Buenos Aires',1),(390,'2317',2304,'',0,'CABA','Caba',1),(391,'2318',2305,'',0,'LA PAMPA','La Pampa',1),(392,'2319',2305,'',0,'NEUQUEN','Neuquén',1),(393,'2320',2305,'',0,'RIO NEGRO','Río Negro',1),(394,'2321',2305,'',0,'CHUBUT','Chubut',1),(395,'2322',2305,'',0,'SANTA CRUZ','Santa Cruz',1),(396,'2323',2305,'',0,'TIERRA DEL FUEGO','Tierra del Fuego',1),(397,'2324',2305,'',0,'ISLAS MALVINAS','Islas Malvinas',1),(398,'2325',2305,'',0,'ANTARTIDA','Antártida',1),(399,'AN',11701,NULL,0,'AN','Andaman & Nicobar',1),(400,'AP',11701,NULL,0,'AP','Andhra Pradesh',1),(401,'AR',11701,NULL,0,'AR','Arunachal Pradesh',1),(402,'AS',11701,NULL,0,'AS','Assam',1),(403,'BR',11701,NULL,0,'BR','Bihar',1),(404,'CG',11701,NULL,0,'CG','Chattisgarh',1),(405,'CH',11701,NULL,0,'CH','Chandigarh',1),(406,'DD',11701,NULL,0,'DD','Daman & Diu',1),(407,'DL',11701,NULL,0,'DL','Delhi',1),(408,'DN',11701,NULL,0,'DN','Dadra and Nagar Haveli',1),(409,'GA',11701,NULL,0,'GA','Goa',1),(410,'GJ',11701,NULL,0,'GJ','Gujarat',1),(411,'HP',11701,NULL,0,'HP','Himachal Pradesh',1),(412,'HR',11701,NULL,0,'HR','Haryana',1),(413,'JH',11701,NULL,0,'JH','Jharkhand',1),(414,'JK',11701,NULL,0,'JK','Jammu & Kashmir',1),(415,'KA',11701,NULL,0,'KA','Karnataka',1),(416,'KL',11701,NULL,0,'KL','Kerala',1),(417,'LD',11701,NULL,0,'LD','Lakshadweep',1),(418,'MH',11701,NULL,0,'MH','Maharashtra',1),(419,'ML',11701,NULL,0,'ML','Meghalaya',1),(420,'MN',11701,NULL,0,'MN','Manipur',1),(421,'MP',11701,NULL,0,'MP','Madhya Pradesh',1),(422,'MZ',11701,NULL,0,'MZ','Mizoram',1),(423,'NL',11701,NULL,0,'NL','Nagaland',1),(424,'OR',11701,NULL,0,'OR','Orissa',1),(425,'PB',11701,NULL,0,'PB','Punjab',1),(426,'PY',11701,NULL,0,'PY','Puducherry',1),(427,'RJ',11701,NULL,0,'RJ','Rajasthan',1),(428,'SK',11701,NULL,0,'SK','Sikkim',1),(429,'TN',11701,NULL,0,'TN','Tamil Nadu',1),(430,'TR',11701,NULL,0,'TR','Tripura',1),(431,'UL',11701,NULL,0,'UL','Uttarakhand',1),(432,'UP',11701,NULL,0,'UP','Uttar Pradesh',1),(433,'WB',11701,NULL,0,'WB','West Bengal',1);
820 /*!40000 ALTER TABLE `llx_c_departements` ENABLE KEYS */;
821 UNLOCK TABLES;
823 --
824 -- Table structure for table `llx_c_ecotaxe`
825 --
827 DROP TABLE IF EXISTS `llx_c_ecotaxe`;
828 /*!40101 SET @saved_cs_client = @@character_set_client */;
829 /*!40101 SET character_set_client = utf8 */;
830 CREATE TABLE `llx_c_ecotaxe` (
831 `rowid` int(11) NOT NULL AUTO_INCREMENT,
832 `code` varchar(64) NOT NULL,
833 `libelle` varchar(255) DEFAULT NULL,
834 `price` double(24,8) DEFAULT NULL,
835 `organization` varchar(255) DEFAULT NULL,
836 `fk_pays` int(11) NOT NULL,
837 `active` tinyint(4) NOT NULL DEFAULT '1',
838 PRIMARY KEY (`rowid`),
839 UNIQUE KEY `uk_c_ecotaxe` (`code`)
840 ) ENGINE=MyISAM AUTO_INCREMENT=39 DEFAULT CHARSET=utf8;
841 /*!40101 SET character_set_client = @saved_cs_client */;
843 --
844 -- Dumping data for table `llx_c_ecotaxe`
845 --
847 LOCK TABLES `llx_c_ecotaxe` WRITE;
848 /*!40000 ALTER TABLE `llx_c_ecotaxe` DISABLE KEYS */;
849 INSERT INTO `llx_c_ecotaxe` VALUES (1,'ER-A-A','Materiels electriques < 0,2kg',0.01000000,'ERP',1,1),(2,'ER-A-B','Materiels electriques >= 0,2 kg et < 0,5 kg',0.03000000,'ERP',1,1),(3,'ER-A-C','Materiels electriques >= 0,5 kg et < 1 kg',0.04000000,'ERP',1,1),(4,'ER-A-D','Materiels electriques >= 1 kg et < 2 kg',0.13000000,'ERP',1,1),(5,'ER-A-E','Materiels electriques >= 2 kg et < 4kg',0.21000000,'ERP',1,1),(6,'ER-A-F','Materiels electriques >= 4 kg et < 8 kg',0.42000000,'ERP',1,1),(7,'ER-A-G','Materiels electriques >= 8 kg et < 15 kg',0.84000000,'ERP',1,1),(8,'ER-A-H','Materiels electriques >= 15 kg et < 20 kg',1.25000000,'ERP',1,1),(9,'ER-A-I','Materiels electriques >= 20 kg et < 30 kg',1.88000000,'ERP',1,1),(10,'ER-A-J','Materiels electriques >= 30 kg',3.34000000,'ERP',1,1),(11,'ER-M-1','TV, Moniteurs < 9kg',0.84000000,'ERP',1,1),(12,'ER-M-2','TV, Moniteurs >= 9kg et < 15kg',1.67000000,'ERP',1,1),(13,'ER-M-3','TV, Moniteurs >= 15kg et < 30kg',3.34000000,'ERP',1,1),(14,'ER-M-4','TV, Moniteurs >= 30 kg',6.69000000,'ERP',1,1),(15,'EC-A-A','Materiels electriques 0,2 kg max',0.00840000,'Ecologic',1,1),(16,'EC-A-B','Materiels electriques 0,21 kg min - 0,50 kg max',0.02500000,'Ecologic',1,1),(17,'EC-A-C','Materiels electriques 0,51 kg min - 1 kg max',0.04000000,'Ecologic',1,1),(18,'EC-A-D','Materiels electriques 1,01 kg min - 2,5 kg max',0.13000000,'Ecologic',1,1),(19,'EC-A-E','Materiels electriques 2,51 kg min - 4 kg max',0.21000000,'Ecologic',1,1),(20,'EC-A-F','Materiels electriques 4,01 kg min - 8 kg max',0.42000000,'Ecologic',1,1),(21,'EC-A-G','Materiels electriques 8,01 kg min - 12 kg max',0.63000000,'Ecologic',1,1),(22,'EC-A-H','Materiels electriques 12,01 kg min - 20 kg max',1.05000000,'Ecologic',1,1),(23,'EC-A-I','Materiels electriques 20,01 kg min',1.88000000,'Ecologic',1,1),(24,'EC-M-1','TV, Moniteurs 9 kg max',0.84000000,'Ecologic',1,1),(25,'EC-M-2','TV, Moniteurs 9,01 kg min - 18 kg max',1.67000000,'Ecologic',1,1),(26,'EC-M-3','TV, Moniteurs 18,01 kg min - 36 kg max',3.34000000,'Ecologic',1,1),(27,'EC-M-4','TV, Moniteurs 36,01 kg min',6.69000000,'Ecologic',1,1),(28,'ES-M-1','TV, Moniteurs <= 20 pouces',0.84000000,'Eco-systemes',1,1),(29,'ES-M-2','TV, Moniteurs > 20 pouces et <= 32 pouces',3.34000000,'Eco-systemes',1,1),(30,'ES-M-3','TV, Moniteurs > 32 pouces et autres grands ecrans',6.69000000,'Eco-systemes',1,1),(31,'ES-A-A','Ordinateur fixe, Audio home systems (HIFI), elements hifi separes',0.84000000,'Eco-systemes',1,1),(32,'ES-A-B','Ordinateur portable, CD-RCR, VCR, lecteurs et enregistreurs DVD, instruments de musique et caisses de resonance, haut parleurs...',0.25000000,'Eco-systemes',1,1),(33,'ES-A-C','Imprimante, photocopieur, telecopieur',0.42000000,'Eco-systemes',1,1),(34,'ES-A-D','Accessoires, clavier, souris, PDA, imprimante photo, appareil photo, gps, telephone, repondeur, telephone sans fil, modem, telecommande, casque, camescope, baladeur mp3, radio portable, radio K7 et CD portable, radio reveil',0.08400000,'Eco-systemes',1,1),(35,'ES-A-E','GSM',0.00840000,'Eco-systemes',1,1),(36,'ES-A-F','Jouets et equipements de loisirs et de sports < 0,5 kg',0.04200000,'Eco-systemes',1,1),(37,'ES-A-G','Jouets et equipements de loisirs et de sports > 0,5 kg',0.17000000,'Eco-systemes',1,1),(38,'ES-A-H','Jouets et equipements de loisirs et de sports > 10 kg',1.25000000,'Eco-systemes',1,1);
850 /*!40000 ALTER TABLE `llx_c_ecotaxe` ENABLE KEYS */;
851 UNLOCK TABLES;
853 --
854 -- Table structure for table `llx_c_effectif`
855 --
857 DROP TABLE IF EXISTS `llx_c_effectif`;
858 /*!40101 SET @saved_cs_client = @@character_set_client */;
859 /*!40101 SET character_set_client = utf8 */;
860 CREATE TABLE `llx_c_effectif` (
861 `id` int(11) NOT NULL,
862 `code` varchar(12) NOT NULL,
863 `libelle` varchar(30) DEFAULT NULL,
864 `active` tinyint(4) NOT NULL DEFAULT '1',
865 PRIMARY KEY (`id`),
866 UNIQUE KEY `code` (`code`)
867 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
868 /*!40101 SET character_set_client = @saved_cs_client */;
870 --
871 -- Dumping data for table `llx_c_effectif`
872 --
874 LOCK TABLES `llx_c_effectif` WRITE;
875 /*!40000 ALTER TABLE `llx_c_effectif` DISABLE KEYS */;
876 INSERT INTO `llx_c_effectif` VALUES (0,'EF0','-',1),(1,'EF1-5','1 - 5',1),(2,'EF6-10','6 - 10',1),(3,'EF11-50','11 - 50',1),(4,'EF51-100','51 - 100',1),(5,'EF100-500','100 - 500',1),(6,'EF500-','> 500',1);
877 /*!40000 ALTER TABLE `llx_c_effectif` ENABLE KEYS */;
878 UNLOCK TABLES;
880 --
881 -- Table structure for table `llx_c_field_list`
882 --
884 DROP TABLE IF EXISTS `llx_c_field_list`;
885 /*!40101 SET @saved_cs_client = @@character_set_client */;
886 /*!40101 SET character_set_client = utf8 */;
887 CREATE TABLE `llx_c_field_list` (
888 `rowid` int(11) NOT NULL AUTO_INCREMENT,
889 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
890 `element` varchar(64) NOT NULL,
891 `entity` int(11) NOT NULL DEFAULT '1',
892 `name` varchar(32) NOT NULL,
893 `alias` varchar(32) NOT NULL,
894 `title` varchar(32) NOT NULL,
895 `align` varchar(6) DEFAULT 'left',
896 `sort` tinyint(4) NOT NULL DEFAULT '1',
897 `search` tinyint(4) NOT NULL DEFAULT '0',
898 `enabled` varchar(255) DEFAULT '1',
899 `rang` int(11) DEFAULT '0',
900 PRIMARY KEY (`rowid`)
901 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
902 /*!40101 SET character_set_client = @saved_cs_client */;
904 --
905 -- Dumping data for table `llx_c_field_list`
906 --
908 LOCK TABLES `llx_c_field_list` WRITE;
909 /*!40000 ALTER TABLE `llx_c_field_list` DISABLE KEYS */;
910 /*!40000 ALTER TABLE `llx_c_field_list` ENABLE KEYS */;
911 UNLOCK TABLES;
913 --
914 -- Table structure for table `llx_c_forme_juridique`
915 --
917 DROP TABLE IF EXISTS `llx_c_forme_juridique`;
918 /*!40101 SET @saved_cs_client = @@character_set_client */;
919 /*!40101 SET character_set_client = utf8 */;
920 CREATE TABLE `llx_c_forme_juridique` (
921 `rowid` int(11) NOT NULL AUTO_INCREMENT,
922 `code` int(11) NOT NULL,
923 `fk_pays` int(11) NOT NULL,
924 `libelle` varchar(255) DEFAULT NULL,
925 `isvatexempted` tinyint(4) NOT NULL DEFAULT '0',
926 `active` tinyint(4) NOT NULL DEFAULT '1',
927 PRIMARY KEY (`rowid`),
928 UNIQUE KEY `uk_c_forme_juridique` (`code`)
929 ) ENGINE=MyISAM AUTO_INCREMENT=125 DEFAULT CHARSET=utf8;
930 /*!40101 SET character_set_client = @saved_cs_client */;
932 --
933 -- Dumping data for table `llx_c_forme_juridique`
934 --
936 LOCK TABLES `llx_c_forme_juridique` WRITE;
937 /*!40000 ALTER TABLE `llx_c_forme_juridique` DISABLE KEYS */;
938 INSERT INTO `llx_c_forme_juridique` VALUES (1,0,0,'-',0,1),(2,11,1,'Artisan Commerçant (EI)',0,1),(3,12,1,'Commerçant (EI)',0,1),(4,13,1,'Artisan (EI)',0,1),(5,14,1,'Officier public ou ministériel',0,1),(6,15,1,'Profession libérale (EI)',0,1),(7,16,1,'Exploitant agricole',0,1),(8,17,1,'Agent commercial',0,1),(9,18,1,'Associé Gérant de société',0,1),(10,19,1,'Personne physique',0,1),(11,21,1,'Indivision',0,1),(12,22,1,'Société créée de fait',0,1),(13,23,1,'Société en participation',0,1),(14,27,1,'Paroisse hors zone concordataire',0,1),(15,29,1,'Groupement de droit privé non doté de la personnalité morale',0,1),(16,31,1,'Personne morale de droit étranger, immatriculée au RCS',0,1),(17,32,1,'Personne morale de droit étranger, non immatriculée au RCS',0,1),(18,35,1,'Régime auto-entrepreneur',0,1),(19,41,1,'Établissement public ou régie à caractère industriel ou commercial',0,1),(20,51,1,'Société coopérative commerciale particulière',0,1),(21,52,1,'Société en nom collectif',0,1),(22,53,1,'Société en commandite',0,1),(23,54,1,'Société à responsabilité limitée (SARL)',0,1),(24,55,1,'Société anonyme à conseil d administration',0,1),(25,56,1,'Société anonyme à directoire',0,1),(26,57,1,'Société par actions simplifiée',0,1),(27,58,1,'Entreprise Unipersonnelle à Responsabilité Limitée (EURL)',0,1),(28,61,1,'Caisse d\'épargne et de prévoyance',0,1),(29,62,1,'Groupement d\'intérêt économique (GIE)',0,1),(30,63,1,'Société coopérative agricole',0,1),(31,64,1,'Société non commerciale d assurances',0,1),(32,65,1,'Société civile',0,1),(33,69,1,'Personnes de droit privé inscrites au RCS',0,1),(34,71,1,'Administration de l état',0,1),(35,72,1,'Collectivité territoriale',0,1),(36,73,1,'Établissement public administratif',0,1),(37,74,1,'Personne morale de droit public administratif',0,1),(38,81,1,'Organisme gérant régime de protection social à adhésion obligatoire',0,1),(39,82,1,'Organisme mutualiste',0,1),(40,83,1,'Comité d entreprise',0,1),(41,84,1,'Organisme professionnel',0,1),(42,85,1,'Organisme de retraite à adhésion non obligatoire',0,1),(43,91,1,'Syndicat de propriétaires',0,1),(44,92,1,'Association loi 1901 ou assimilé',0,1),(45,93,1,'Fondation',0,1),(46,99,1,'Personne morale de droit privé',0,1),(47,200,2,'Indépendant',0,1),(48,201,2,'SPRL - Société à responsabilité limitée',0,1),(49,202,2,'SA - Société Anonyme',0,1),(50,203,2,'SCRL - Société coopérative à responsabilité limitée',0,1),(51,204,2,'ASBL - Association sans but Lucratif',0,1),(52,205,2,'SCRI - Société coopérative à responsabilité illimitée',0,1),(53,206,2,'SCS - Société en commandite simple',0,1),(54,207,2,'SCA - Société en commandite par action',0,1),(55,208,2,'SNC - Société en nom collectif',0,1),(56,209,2,'GIE - Groupement d intérêt économique',0,1),(57,210,2,'GEIE - Groupement européen d intérêt économique',0,1),(58,500,5,'Limited liability corporation (GmbH)',0,1),(59,501,5,'Stock corporation (AG)',0,1),(60,502,5,'Partnerships general or limited (GmbH & CO. KG)',0,1),(61,503,5,'Sole proprietor / Private business',0,1),(62,600,6,'Raison Individuelle',0,1),(63,601,6,'Société Simple',0,1),(64,602,6,'Société en nom collectif',0,1),(65,603,6,'Société en commandite',0,1),(66,604,6,'Société anonyme (SA)',0,1),(67,605,6,'Société en commandite par actions',0,1),(68,606,6,'Société à responsabilité limitée (SARL)',0,1),(69,607,6,'Société coopérative',0,1),(70,608,6,'Association',0,1),(71,609,6,'Fondation',0,1),(72,700,7,'Sole Trader',0,1),(73,701,7,'Partnership',0,1),(74,702,7,'Private Limited Company by shares (LTD)',0,1),(75,703,7,'Public Limited Company',0,1),(76,704,7,'Workers Cooperative',0,1),(77,705,7,'Limited Liability Partnership',0,1),(78,706,7,'Franchise',0,1),(79,1000,10,'Société à responsabilité limitée (SARL)',0,1),(80,1001,10,'Société en Nom Collectif (SNC)',0,1),(81,1002,10,'Société en Commandite Simple (SCS)',0,1),(82,1003,10,'société en participation',0,1),(83,1004,10,'Société Anonyme (SA)',0,1),(84,1005,10,'Société Unipersonnelle à Responsabilité Limitée (SUARL)',0,1),(85,1006,10,'Groupement d\'intérêt économique (GEI)',0,1),(86,1007,10,'Groupe de sociétés',0,1),(87,401,4,'Empresario Individual',0,1),(88,402,4,'Comunidad de Bienes',0,1),(89,403,4,'Sociedad Civil',0,1),(90,404,4,'Sociedad Colectiva',0,1),(91,405,4,'Sociedad Limitada',0,1),(92,406,4,'Sociedad Anónima',0,1),(93,407,4,'Sociedad Comandataria por Acciones',0,1),(94,408,4,'Sociedad Comandataria Simple',0,1),(95,409,4,'Sociedad Laboral',0,1),(96,410,4,'Sociedad Cooperativa',0,1),(97,411,4,'Sociedad de Garantía Recíproca',0,1),(98,412,4,'Entidad de Capital-Riesgo',0,1),(99,413,4,'Agrupación de Interés Económico',0,1),(100,414,4,'Sociedad de Inversión Mobiliaria',0,1),(101,415,4,'Agrupación sin Ánimo de Lucro',0,1),(102,15201,152,'Mauritius Private Company Limited By Shares',0,1),(103,15202,152,'Mauritius Company Limited By Guarantee',0,1),(104,15203,152,'Mauritius Public Company Limited By Shares',0,1),(105,15204,152,'Mauritius Foreign Company',0,1),(106,15205,152,'Mauritius GBC1 (Offshore Company)',0,1),(107,15206,152,'Mauritius GBC2 (International Company)',0,1),(108,15207,152,'Mauritius General Partnership',0,1),(109,15208,152,'Mauritius Limited Partnership',0,1),(110,15209,152,'Mauritius Sole Proprietorship',0,1),(111,15210,152,'Mauritius Trusts',0,1),(112,2301,23,'Monotributista',0,1),(113,2302,23,'Sociedad Civil',0,1),(114,2303,23,'Sociedades Comerciales',0,1),(115,2304,23,'Sociedades de Hecho',0,1),(116,2305,23,'Sociedades Irregulares',0,1),(117,2306,23,'Sociedad Colectiva',0,1),(118,2307,23,'Sociedad en Comandita Simple',0,1),(119,2308,23,'Sociedad de Capital e Industria',0,1),(120,2309,23,'Sociedad Accidental o en participación',0,1),(121,2310,23,'Sociedad de Responsabilidad Limitada',0,1),(122,2311,23,'Sociedad Anónima',0,1),(123,2312,23,'Sociedad Anónima con Participación Estatal Mayoritaria',0,1),(124,2313,23,'Sociedad en Comandita por Acciones (arts. 315 a 324, LSC)',0,1);
939 /*!40000 ALTER TABLE `llx_c_forme_juridique` ENABLE KEYS */;
940 UNLOCK TABLES;
942 --
943 -- Table structure for table `llx_c_methode_commande_fournisseur`
944 --
946 DROP TABLE IF EXISTS `llx_c_methode_commande_fournisseur`;
947 /*!40101 SET @saved_cs_client = @@character_set_client */;
948 /*!40101 SET character_set_client = utf8 */;
949 CREATE TABLE `llx_c_methode_commande_fournisseur` (
950 `rowid` int(11) NOT NULL AUTO_INCREMENT,
951 `code` varchar(30) DEFAULT NULL,
952 `libelle` varchar(60) DEFAULT NULL,
953 `active` tinyint(4) NOT NULL DEFAULT '1',
954 PRIMARY KEY (`rowid`),
955 UNIQUE KEY `uk_c_methode_commande_fournisseur` (`code`)
956 ) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
957 /*!40101 SET character_set_client = @saved_cs_client */;
959 --
960 -- Dumping data for table `llx_c_methode_commande_fournisseur`
961 --
963 LOCK TABLES `llx_c_methode_commande_fournisseur` WRITE;
964 /*!40000 ALTER TABLE `llx_c_methode_commande_fournisseur` DISABLE KEYS */;
965 INSERT INTO `llx_c_methode_commande_fournisseur` VALUES (1,'OrderByMail','Courrier',1),(2,'OrderByFax','Fax',1),(3,'OrderByEMail','EMail',1),(4,'OrderByPhone','Téléphone',1),(5,'OrderByWWW','En ligne',1);
966 /*!40000 ALTER TABLE `llx_c_methode_commande_fournisseur` ENABLE KEYS */;
967 UNLOCK TABLES;
969 --
970 -- Table structure for table `llx_c_paiement`
971 --
973 DROP TABLE IF EXISTS `llx_c_paiement`;
974 /*!40101 SET @saved_cs_client = @@character_set_client */;
975 /*!40101 SET character_set_client = utf8 */;
976 CREATE TABLE `llx_c_paiement` (
977 `id` int(11) NOT NULL,
978 `code` varchar(6) NOT NULL,
979 `libelle` varchar(30) DEFAULT NULL,
980 `type` smallint(6) DEFAULT NULL,
981 `active` tinyint(4) NOT NULL DEFAULT '1',
982 PRIMARY KEY (`id`),
983 UNIQUE KEY `code` (`code`)
984 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
985 /*!40101 SET character_set_client = @saved_cs_client */;
987 --
988 -- Dumping data for table `llx_c_paiement`
989 --
991 LOCK TABLES `llx_c_paiement` WRITE;
992 /*!40000 ALTER TABLE `llx_c_paiement` DISABLE KEYS */;
993 INSERT INTO `llx_c_paiement` VALUES (0,'','-',3,1),(1,'TIP','TIP',2,1),(2,'VIR','Virement',2,1),(3,'PRE','Prélèvement',2,1),(4,'LIQ','Espèces',2,1),(5,'VAD','Paiement en ligne',2,0),(6,'CB','Carte Bancaire',2,1),(7,'CHQ','Chèque',2,1),(8,'TRA','Traite',2,0),(9,'LCR','LCR',2,0),(10,'FAC','Factor',2,0),(11,'PRO','Proforma',2,0);
994 /*!40000 ALTER TABLE `llx_c_paiement` ENABLE KEYS */;
995 UNLOCK TABLES;
997 --
998 -- Table structure for table `llx_c_paper_format`
999 --
1001 DROP TABLE IF EXISTS `llx_c_paper_format`;
1002 /*!40101 SET @saved_cs_client = @@character_set_client */;
1003 /*!40101 SET character_set_client = utf8 */;
1004 CREATE TABLE `llx_c_paper_format` (
1005 `rowid` int(11) NOT NULL AUTO_INCREMENT,
1006 `code` varchar(16) NOT NULL,
1007 `label` varchar(50) NOT NULL,
1008 `width` float(6,2) DEFAULT '0.00',
1009 `height` float(6,2) DEFAULT '0.00',
1010 `unit` varchar(5) NOT NULL,
1011 `active` tinyint(4) NOT NULL DEFAULT '1',
1012 PRIMARY KEY (`rowid`)
1013 ) ENGINE=MyISAM AUTO_INCREMENT=226 DEFAULT CHARSET=utf8;
1014 /*!40101 SET character_set_client = @saved_cs_client */;
1016 --
1017 -- Dumping data for table `llx_c_paper_format`
1018 --
1020 LOCK TABLES `llx_c_paper_format` WRITE;
1021 /*!40000 ALTER TABLE `llx_c_paper_format` DISABLE KEYS */;
1022 INSERT INTO `llx_c_paper_format` VALUES (1,'4A0','Format 4A0',1682.00,2378.00,'mm',1),(2,'2A0','Format 2A0',1189.00,1682.00,'mm',1),(3,'A0','Format A0',840.00,1189.00,'mm',1),(4,'A1','Format A1',594.00,840.00,'mm',1),(5,'A2','Format A2',420.00,594.00,'mm',1),(6,'A3','Format A3',297.00,420.00,'mm',1),(7,'A4','Format A4',210.00,297.00,'mm',1),(8,'A5','Format A5',148.00,210.00,'mm',1),(9,'A6','Format A6',105.00,148.00,'mm',1),(100,'USLetter','Format Letter (A)',216.00,279.00,'mm',0),(105,'USLegal','Format Legal',216.00,356.00,'mm',0),(110,'USExecutive','Format Executive',190.00,254.00,'mm',0),(115,'USLedger','Format Ledger/Tabloid (B)',279.00,432.00,'mm',0),(200,'Canadian P1','Format Canadian P1',560.00,860.00,'mm',0),(205,'Canadian P2','Format Canadian P2',430.00,560.00,'mm',0),(210,'Canadian P3','Format Canadian P3',280.00,430.00,'mm',0),(215,'Canadian P4','Format Canadian P4',215.00,280.00,'mm',0),(220,'Canadian P5','Format Canadian P5',140.00,215.00,'mm',0),(225,'Canadian P6','Format Canadian P6',107.00,140.00,'mm',0);
1023 /*!40000 ALTER TABLE `llx_c_paper_format` ENABLE KEYS */;
1024 UNLOCK TABLES;
1026 --
1027 -- Table structure for table `llx_c_payment_term`
1028 --
1030 DROP TABLE IF EXISTS `llx_c_payment_term`;
1031 /*!40101 SET @saved_cs_client = @@character_set_client */;
1032 /*!40101 SET character_set_client = utf8 */;
1033 CREATE TABLE `llx_c_payment_term` (
1034 `rowid` int(11) NOT NULL,
1035 `code` varchar(16) DEFAULT NULL,
1036 `sortorder` smallint(6) DEFAULT NULL,
1037 `active` tinyint(4) DEFAULT '1',
1038 `libelle` varchar(255) DEFAULT NULL,
1039 `libelle_facture` text,
1040 `fdm` tinyint(4) DEFAULT NULL,
1041 `nbjour` smallint(6) DEFAULT NULL,
1042 `decalage` smallint(6) DEFAULT NULL,
1043 PRIMARY KEY (`rowid`)
1044 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
1045 /*!40101 SET character_set_client = @saved_cs_client */;
1047 --
1048 -- Dumping data for table `llx_c_payment_term`
1049 --
1051 LOCK TABLES `llx_c_payment_term` WRITE;
1052 /*!40000 ALTER TABLE `llx_c_payment_term` DISABLE KEYS */;
1053 INSERT INTO `llx_c_payment_term` VALUES (1,'RECEP',1,1,'A réception','Réception de facture',0,0,NULL),(2,'30D',2,1,'30 jours','Réglement à 30 jours',0,30,NULL),(3,'30DENDMONTH',3,1,'30 jours fin de mois','Réglement à 30 jours fin de mois',1,30,NULL),(4,'60D',4,1,'60 jours','Réglement à 60 jours',0,60,NULL),(5,'60DENDMONTH',5,1,'60 jours fin de mois','Réglement à 60 jours fin de mois',1,60,NULL);
1054 /*!40000 ALTER TABLE `llx_c_payment_term` ENABLE KEYS */;
1055 UNLOCK TABLES;
1057 --
1058 -- Table structure for table `llx_c_pays`
1059 --
1061 DROP TABLE IF EXISTS `llx_c_pays`;
1062 /*!40101 SET @saved_cs_client = @@character_set_client */;
1063 /*!40101 SET character_set_client = utf8 */;
1064 CREATE TABLE `llx_c_pays` (
1065 `rowid` int(11) NOT NULL,
1066 `code` varchar(2) NOT NULL,
1067 `code_iso` varchar(3) DEFAULT NULL,
1068 `libelle` varchar(50) NOT NULL,
1069 `active` tinyint(4) NOT NULL DEFAULT '1',
1070 PRIMARY KEY (`rowid`),
1071 UNIQUE KEY `idx_c_pays_code` (`code`),
1072 UNIQUE KEY `idx_c_pays_libelle` (`libelle`),
1073 UNIQUE KEY `idx_c_pays_code_iso` (`code_iso`)
1074 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
1075 /*!40101 SET character_set_client = @saved_cs_client */;
1077 --
1078 -- Dumping data for table `llx_c_pays`
1079 --
1081 LOCK TABLES `llx_c_pays` WRITE;
1082 /*!40000 ALTER TABLE `llx_c_pays` DISABLE KEYS */;
1083 INSERT INTO `llx_c_pays` VALUES (0,'',NULL,'-',1),(1,'FR',NULL,'France',1),(2,'BE',NULL,'Belgium',1),(3,'IT',NULL,'Italy',1),(4,'ES',NULL,'Spain',1),(5,'DE',NULL,'Germany',1),(6,'CH',NULL,'Suisse',1),(7,'GB',NULL,'United Kingdom',1),(8,'IE',NULL,'Irland',1),(9,'CN',NULL,'China',1),(10,'TN',NULL,'Tunisie',1),(11,'US',NULL,'United States',1),(12,'MA',NULL,'Maroc',1),(13,'DZ',NULL,'Algérie',1),(14,'CA',NULL,'Canada',1),(15,'TG',NULL,'Togo',1),(16,'GA',NULL,'Gabon',1),(17,'NL',NULL,'Nerderland',1),(18,'HU',NULL,'Hongrie',1),(19,'RU',NULL,'Russia',1),(20,'SE',NULL,'Sweden',1),(21,'CI',NULL,'Côte d\'Ivoire',1),(22,'SN',NULL,'Sénégal',1),(23,'AR',NULL,'Argentine',1),(24,'CM',NULL,'Cameroun',1),(25,'PT',NULL,'Portugal',1),(26,'SA',NULL,'Arabie Saoudite',1),(27,'MC',NULL,'Monaco',1),(28,'AU',NULL,'Australia',1),(29,'SG',NULL,'Singapour',1),(30,'AF',NULL,'Afghanistan',1),(31,'AX',NULL,'Iles Aland',1),(32,'AL',NULL,'Albanie',1),(33,'AS',NULL,'Samoa américaines',1),(34,'AD',NULL,'Andorre',1),(35,'AO',NULL,'Angola',1),(36,'AI',NULL,'Anguilla',1),(37,'AQ',NULL,'Antarctique',1),(38,'AG',NULL,'Antigua-et-Barbuda',1),(39,'AM',NULL,'Arménie',1),(40,'AW',NULL,'Aruba',1),(41,'AT',NULL,'Autriche',1),(42,'AZ',NULL,'Azerbaïdjan',1),(43,'BS',NULL,'Bahamas',1),(44,'BH',NULL,'Bahreïn',1),(45,'BD',NULL,'Bangladesh',1),(46,'BB',NULL,'Barbade',1),(47,'BY',NULL,'Biélorussie',1),(48,'BZ',NULL,'Belize',1),(49,'BJ',NULL,'Bénin',1),(50,'BM',NULL,'Bermudes',1),(51,'BT',NULL,'Bhoutan',1),(52,'BO',NULL,'Bolivie',1),(53,'BA',NULL,'Bosnie-Herzégovine',1),(54,'BW',NULL,'Botswana',1),(55,'BV',NULL,'Ile Bouvet',1),(56,'BR',NULL,'Brésil',1),(57,'IO',NULL,'Territoire britannique de l\'Océan Indien',1),(58,'BN',NULL,'Brunei',1),(59,'BG',NULL,'Bulgarie',1),(60,'BF',NULL,'Burkina Faso',1),(61,'BI',NULL,'Burundi',1),(62,'KH',NULL,'Cambodge',1),(63,'CV',NULL,'Cap-Vert',1),(64,'KY',NULL,'Iles Cayman',1),(65,'CF',NULL,'République centrafricaine',1),(66,'TD',NULL,'Tchad',1),(67,'CL',NULL,'Chili',1),(68,'CX',NULL,'Ile Christmas',1),(69,'CC',NULL,'Iles des Cocos (Keeling)',1),(70,'CO',NULL,'Colombie',1),(71,'KM',NULL,'Comores',1),(72,'CG',NULL,'Congo',1),(73,'CD',NULL,'République démocratique du Congo',1),(74,'CK',NULL,'Iles Cook',1),(75,'CR',NULL,'Costa Rica',1),(76,'HR',NULL,'Croatie',1),(77,'CU',NULL,'Cuba',1),(78,'CY',NULL,'Chypre',1),(79,'CZ',NULL,'République Tchèque',1),(80,'DK',NULL,'Danemark',1),(81,'DJ',NULL,'Djibouti',1),(82,'DM',NULL,'Dominique',1),(83,'DO',NULL,'République Dominicaine',1),(84,'EC',NULL,'Equateur',1),(85,'EG',NULL,'Egypte',1),(86,'SV',NULL,'Salvador',1),(87,'GQ',NULL,'Guinée Equatoriale',1),(88,'ER',NULL,'Erythrée',1),(89,'EE',NULL,'Estonie',1),(90,'ET',NULL,'Ethiopie',1),(91,'FK',NULL,'Iles Falkland',1),(92,'FO',NULL,'Iles Féroé',1),(93,'FJ',NULL,'Iles Fidji',1),(94,'FI',NULL,'Finlande',1),(95,'GF',NULL,'Guyane française',1),(96,'PF',NULL,'Polynésie française',1),(97,'TF',NULL,'Terres australes françaises',1),(98,'GM',NULL,'Gambie',1),(99,'GE',NULL,'Géorgie',1),(100,'GH',NULL,'Ghana',1),(101,'GI',NULL,'Gibraltar',1),(102,'GR',NULL,'Grèce',1),(103,'GL',NULL,'Groenland',1),(104,'GD',NULL,'Grenade',1),(106,'GU',NULL,'Guam',1),(107,'GT',NULL,'Guatemala',1),(108,'GN',NULL,'Guinée',1),(109,'GW',NULL,'Guinée-Bissao',1),(111,'HT',NULL,'Haiti',1),(112,'HM',NULL,'Iles Heard et McDonald',1),(113,'VA',NULL,'Saint-Siège (Vatican)',1),(114,'HN',NULL,'Honduras',1),(115,'HK',NULL,'Hong Kong',1),(116,'IS',NULL,'Islande',1),(117,'IN',NULL,'India',1),(118,'ID',NULL,'Indonésie',1),(119,'IR',NULL,'Iran',1),(120,'IQ',NULL,'Iraq',1),(121,'IL',NULL,'Israel',1),(122,'JM',NULL,'Jamaïque',1),(123,'JP',NULL,'Japon',1),(124,'JO',NULL,'Jordanie',1),(125,'KZ',NULL,'Kazakhstan',1),(126,'KE',NULL,'Kenya',1),(127,'KI',NULL,'Kiribati',1),(128,'KP',NULL,'Corée du Nord',1),(129,'KR',NULL,'Corée du Sud',1),(130,'KW',NULL,'Koweït',1),(131,'KG',NULL,'Kirghizistan',1),(132,'LA',NULL,'Laos',1),(133,'LV',NULL,'Lettonie',1),(134,'LB',NULL,'Liban',1),(135,'LS',NULL,'Lesotho',1),(136,'LR',NULL,'Liberia',1),(137,'LY',NULL,'Libye',1),(138,'LI',NULL,'Liechtenstein',1),(139,'LT',NULL,'Lituanie',1),(140,'LU',NULL,'Luxembourg',1),(141,'MO',NULL,'Macao',1),(142,'MK',NULL,'ex-République yougoslave de Macédoine',1),(143,'MG',NULL,'Madagascar',1),(144,'MW',NULL,'Malawi',1),(145,'MY',NULL,'Malaisie',1),(146,'MV',NULL,'Maldives',1),(147,'ML',NULL,'Mali',1),(148,'MT',NULL,'Malte',1),(149,'MH',NULL,'Iles Marshall',1),(151,'MR',NULL,'Mauritanie',1),(152,'MU',NULL,'Maurice',1),(153,'YT',NULL,'Mayotte',1),(154,'MX',NULL,'Mexique',1),(155,'FM',NULL,'Micronésie',1),(156,'MD',NULL,'Moldavie',1),(157,'MN',NULL,'Mongolie',1),(158,'MS',NULL,'Monserrat',1),(159,'MZ',NULL,'Mozambique',1),(160,'MM',NULL,'Birmanie (Myanmar)',1),(161,'NA',NULL,'Namibie',1),(162,'NR',NULL,'Nauru',1),(163,'NP',NULL,'Népal',1),(164,'AN',NULL,'Antilles néerlandaises',1),(165,'NC',NULL,'Nouvelle-Calédonie',1),(166,'NZ',NULL,'Nouvelle-Zélande',1),(167,'NI',NULL,'Nicaragua',1),(168,'NE',NULL,'Niger',1),(169,'NG',NULL,'Nigeria',1),(170,'NU',NULL,'Nioué',1),(171,'NF',NULL,'Ile Norfolk',1),(172,'MP',NULL,'Mariannes du Nord',1),(173,'NO',NULL,'Norvège',1),(174,'OM',NULL,'Oman',1),(175,'PK',NULL,'Pakistan',1),(176,'PW',NULL,'Palaos',1),(177,'PS',NULL,'Territoire Palestinien Occupé',1),(178,'PA',NULL,'Panama',1),(179,'PG',NULL,'Papouasie-Nouvelle-Guinée',1),(180,'PY',NULL,'Paraguay',1),(181,'PE',NULL,'Pérou',1),(182,'PH',NULL,'Philippines',1),(183,'PN',NULL,'Iles Pitcairn',1),(184,'PL',NULL,'Pologne',1),(185,'PR',NULL,'Porto Rico',1),(186,'QA',NULL,'Qatar',1),(188,'RO',NULL,'Roumanie',1),(189,'RW',NULL,'Rwanda',1),(190,'SH',NULL,'Sainte-Hélène',1),(191,'KN',NULL,'Saint-Christophe-et-Niévès',1),(192,'LC',NULL,'Sainte-Lucie',1),(193,'PM',NULL,'Saint-Pierre-et-Miquelon',1),(194,'VC',NULL,'Saint-Vincent-et-les-Grenadines',1),(195,'WS',NULL,'Samoa',1),(196,'SM',NULL,'Saint-Marin',1),(197,'ST',NULL,'Sao Tomé-et-Principe',1),(198,'RS',NULL,'Serbie',1),(199,'SC',NULL,'Seychelles',1),(200,'SL',NULL,'Sierra Leone',1),(201,'SK',NULL,'Slovaquie',1),(202,'SI',NULL,'Slovénie',1),(203,'SB',NULL,'Iles Salomon',1),(204,'SO',NULL,'Somalie',1),(205,'ZA',NULL,'Afrique du Sud',1),(206,'GS',NULL,'Iles Géorgie du Sud et Sandwich du Sud',1),(207,'LK',NULL,'Sri Lanka',1),(208,'SD',NULL,'Soudan',1),(209,'SR',NULL,'Suriname',1),(210,'SJ',NULL,'Iles Svalbard et Jan Mayen',1),(211,'SZ',NULL,'Swaziland',1),(212,'SY',NULL,'Syrie',1),(213,'TW',NULL,'Taïwan',1),(214,'TJ',NULL,'Tadjikistan',1),(215,'TZ',NULL,'Tanzanie',1),(216,'TH',NULL,'Thaïlande',1),(217,'TL',NULL,'Timor Oriental',1),(218,'TK',NULL,'Tokélaou',1),(219,'TO',NULL,'Tonga',1),(220,'TT',NULL,'Trinité-et-Tobago',1),(221,'TR',NULL,'Turquie',1),(222,'TM',NULL,'Turkménistan',1),(223,'TC',NULL,'Iles Turks-et-Caicos',1),(224,'TV',NULL,'Tuvalu',1),(225,'UG',NULL,'Ouganda',1),(226,'UA',NULL,'Ukraine',1),(227,'AE',NULL,'Émirats arabes unis',1),(228,'UM',NULL,'Iles mineures éloignées des États-Unis',1),(229,'UY',NULL,'Uruguay',1),(230,'UZ',NULL,'Ouzbékistan',1),(231,'VU',NULL,'Vanuatu',1),(232,'VE',NULL,'Vénézuela',1),(233,'VN',NULL,'Viêt Nam',1),(234,'VG',NULL,'Iles Vierges britanniques',1),(235,'VI',NULL,'Iles Vierges américaines',1),(236,'WF',NULL,'Wallis-et-Futuna',1),(237,'EH',NULL,'Sahara occidental',1),(238,'YE',NULL,'Yémen',1),(239,'ZM',NULL,'Zambie',1),(240,'ZW',NULL,'Zimbabwe',1),(241,'GG',NULL,'Guernesey',1),(242,'IM',NULL,'Ile de Man',1),(243,'JE',NULL,'Jersey',1),(244,'ME',NULL,'Monténégro',1),(245,'BL',NULL,'Saint-Barthélemy',1),(246,'MF',NULL,'Saint-Martin',1);
1084 /*!40000 ALTER TABLE `llx_c_pays` ENABLE KEYS */;
1085 UNLOCK TABLES;
1087 --
1088 -- Table structure for table `llx_c_propalst`
1089 --
1091 DROP TABLE IF EXISTS `llx_c_propalst`;
1092 /*!40101 SET @saved_cs_client = @@character_set_client */;
1093 /*!40101 SET character_set_client = utf8 */;
1094 CREATE TABLE `llx_c_propalst` (
1095 `id` smallint(6) NOT NULL,
1096 `code` varchar(12) NOT NULL,
1097 `label` varchar(30) DEFAULT NULL,
1098 `active` tinyint(4) NOT NULL DEFAULT '1',
1099 PRIMARY KEY (`id`),
1100 UNIQUE KEY `code` (`code`)
1101 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
1102 /*!40101 SET character_set_client = @saved_cs_client */;
1104 --
1105 -- Dumping data for table `llx_c_propalst`
1106 --
1108 LOCK TABLES `llx_c_propalst` WRITE;
1109 /*!40000 ALTER TABLE `llx_c_propalst` DISABLE KEYS */;
1110 INSERT INTO `llx_c_propalst` VALUES (0,'PR_DRAFT','Brouillon',1),(1,'PR_OPEN','Ouverte',1),(2,'PR_SIGNED','Signée',1),(3,'PR_NOTSIGNED','Non Signée',1),(4,'PR_FAC','Facturée',1);
1111 /*!40000 ALTER TABLE `llx_c_propalst` ENABLE KEYS */;
1112 UNLOCK TABLES;
1114 --
1115 -- Table structure for table `llx_c_prospectlevel`
1116 --
1118 DROP TABLE IF EXISTS `llx_c_prospectlevel`;
1119 /*!40101 SET @saved_cs_client = @@character_set_client */;
1120 /*!40101 SET character_set_client = utf8 */;
1121 CREATE TABLE `llx_c_prospectlevel` (
1122 `code` varchar(12) NOT NULL,
1123 `label` varchar(30) DEFAULT NULL,
1124 `sortorder` smallint(6) DEFAULT NULL,
1125 `active` smallint(6) NOT NULL DEFAULT '1',
1126 PRIMARY KEY (`code`)
1127 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
1128 /*!40101 SET character_set_client = @saved_cs_client */;
1130 --
1131 -- Dumping data for table `llx_c_prospectlevel`
1132 --
1134 LOCK TABLES `llx_c_prospectlevel` WRITE;
1135 /*!40000 ALTER TABLE `llx_c_prospectlevel` DISABLE KEYS */;
1136 INSERT INTO `llx_c_prospectlevel` VALUES ('PL_NONE','None',1,1),('PL_LOW','Low',2,1),('PL_MEDIUM','Medium',3,1),('PL_HIGH','High',4,1);
1137 /*!40000 ALTER TABLE `llx_c_prospectlevel` ENABLE KEYS */;
1138 UNLOCK TABLES;
1140 --
1141 -- Table structure for table `llx_c_regions`
1142 --
1144 DROP TABLE IF EXISTS `llx_c_regions`;
1145 /*!40101 SET @saved_cs_client = @@character_set_client */;
1146 /*!40101 SET character_set_client = utf8 */;
1147 CREATE TABLE `llx_c_regions` (
1148 `rowid` int(11) NOT NULL AUTO_INCREMENT,
1149 `code_region` int(11) NOT NULL,
1150 `fk_pays` int(11) NOT NULL,
1151 `cheflieu` varchar(7) DEFAULT NULL,
1152 `tncc` int(11) DEFAULT NULL,
1153 `nom` varchar(50) DEFAULT NULL,
1154 `active` tinyint(4) NOT NULL DEFAULT '1',
1155 PRIMARY KEY (`rowid`),
1156 UNIQUE KEY `code_region` (`code_region`),
1157 KEY `idx_c_regions_fk_pays` (`fk_pays`)
1158 ) ENGINE=MyISAM AUTO_INCREMENT=15213 DEFAULT CHARSET=utf8;
1159 /*!40101 SET character_set_client = @saved_cs_client */;
1161 --
1162 -- Dumping data for table `llx_c_regions`
1163 --
1165 LOCK TABLES `llx_c_regions` WRITE;
1166 /*!40000 ALTER TABLE `llx_c_regions` DISABLE KEYS */;
1167 INSERT INTO `llx_c_regions` VALUES (1,0,0,'0',0,'-',1),(101,1,1,'97105',3,'Guadeloupe',1),(102,2,1,'97209',3,'Martinique',1),(103,3,1,'97302',3,'Guyane',1),(104,4,1,'97411',3,'Réunion',1),(105,11,1,'75056',1,'Île-de-France',1),(106,21,1,'51108',0,'Champagne-Ardenne',1),(107,22,1,'80021',0,'Picardie',1),(108,23,1,'76540',0,'Haute-Normandie',1),(109,24,1,'45234',2,'Centre',1),(110,25,1,'14118',0,'Basse-Normandie',1),(111,26,1,'21231',0,'Bourgogne',1),(112,31,1,'59350',2,'Nord-Pas-de-Calais',1),(113,41,1,'57463',0,'Lorraine',1),(114,42,1,'67482',1,'Alsace',1),(115,43,1,'25056',0,'Franche-Comté',1),(116,52,1,'44109',4,'Pays de la Loire',1),(117,53,1,'35238',0,'Bretagne',1),(118,54,1,'86194',2,'Poitou-Charentes',1),(119,72,1,'33063',1,'Aquitaine',1),(120,73,1,'31555',0,'Midi-Pyrénées',1),(121,74,1,'87085',2,'Limousin',1),(122,82,1,'69123',2,'Rhône-Alpes',1),(123,83,1,'63113',1,'Auvergne',1),(124,91,1,'34172',2,'Languedoc-Roussillon',1),(125,93,1,'13055',0,'Provence-Alpes-Côte d\'Azur',1),(126,94,1,'2A004',0,'Corse',1),(201,201,2,'',1,'Flandre',1),(202,202,2,'',2,'Wallonie',1),(203,203,2,'',3,'Bruxelles-Capitale',1),(301,301,3,NULL,1,'Abruzzo',1),(302,302,3,NULL,1,'Basilicata',1),(303,303,3,NULL,1,'Calabria',1),(304,304,3,NULL,1,'Campania',1),(305,305,3,NULL,1,'Emilia-Romagna',1),(306,306,3,NULL,1,'Friuli-Venezia Giulia',1),(307,307,3,NULL,1,'Lazio',1),(308,308,3,NULL,1,'Liguria',1),(309,309,3,NULL,1,'Lombardia',1),(310,310,3,NULL,1,'Marche',1),(311,311,3,NULL,1,'Molise',1),(312,312,3,NULL,1,'Piemonte',1),(313,313,3,NULL,1,'Puglia',1),(314,314,3,NULL,1,'Sardegna',1),(315,315,3,NULL,1,'Sicilia',1),(316,316,3,NULL,1,'Toscana',1),(317,317,3,NULL,1,'Trentino-Alto Adige',1),(318,318,3,NULL,1,'Umbria',1),(319,319,3,NULL,1,'Valle d Aosta',1),(320,320,3,NULL,1,'Veneto',1),(401,401,4,'',0,'Andalucia',1),(402,402,4,'',0,'Aragón',1),(403,403,4,'',0,'Castilla y León',1),(404,404,4,'',0,'Castilla la Mancha',1),(405,405,4,'',0,'Canarias',1),(406,406,4,'',0,'Cataluña',1),(407,407,4,'',0,'Comunidad de Ceuta',1),(408,408,4,'',0,'Comunidad Foral de Navarra',1),(409,409,4,'',0,'Comunidad de Melilla',1),(410,410,4,'',0,'Cantabria',1),(411,411,4,'',0,'Comunidad Valenciana',1),(412,412,4,'',0,'Extemadura',1),(413,413,4,'',0,'Galicia',1),(414,414,4,'',0,'Islas Baleares',1),(415,415,4,'',0,'La Rioja',1),(416,416,4,'',0,'Comunidad de Madrid',1),(417,417,4,'',0,'Región de Murcia',1),(418,418,4,'',0,'Principado de Asturias',1),(419,419,4,'',0,'Pais Vasco',1),(420,420,4,'',0,'Otros',1),(601,601,6,'',1,'Cantons',1),(1001,1001,10,'',0,'Ariana',1),(1002,1002,10,'',0,'Béja',1),(1003,1003,10,'',0,'Ben Arous',1),(1004,1004,10,'',0,'Bizerte',1),(1005,1005,10,'',0,'Gabès',1),(1006,1006,10,'',0,'Gafsa',1),(1007,1007,10,'',0,'Jendouba',1),(1008,1008,10,'',0,'Kairouan',1),(1009,1009,10,'',0,'Kasserine',1),(1010,1010,10,'',0,'Kébili',1),(1011,1011,10,'',0,'La Manouba',1),(1012,1012,10,'',0,'Le Kef',1),(1013,1013,10,'',0,'Mahdia',1),(1014,1014,10,'',0,'Médenine',1),(1015,1015,10,'',0,'Monastir',1),(1016,1016,10,'',0,'Nabeul',1),(1017,1017,10,'',0,'Sfax',1),(1018,1018,10,'',0,'Sidi Bouzid',1),(1019,1019,10,'',0,'Siliana',1),(1020,1020,10,'',0,'Sousse',1),(1021,1021,10,'',0,'Tataouine',1),(1022,1022,10,'',0,'Tozeur',1),(1023,1023,10,'',0,'Tunis',1),(1024,1024,10,'',0,'Zaghouan',1),(1101,1101,11,'',0,'United-States',1),(2301,2301,23,'',0,'Norte',1),(2302,2302,23,'',0,'Litoral',1),(2303,2303,23,'',0,'Cuyana',1),(2304,2304,23,'',0,'Central',1),(2305,2305,23,'',0,'Patagonia',1),(2801,2801,28,'',0,'Australia',1),(8601,8601,86,NULL,NULL,'Central',1),(8602,8602,86,NULL,NULL,'Oriental',1),(8603,8603,86,NULL,NULL,'Occidental',1),(11701,11701,117,'',0,'India',1),(15201,15201,152,'',0,'Rivière Noire',1),(15202,15202,152,'',0,'Flacq',1),(15203,15203,152,'',0,'Grand Port',1),(15204,15204,152,'',0,'Moka',1),(15205,15205,152,'',0,'Pamplemousses',1),(15206,15206,152,'',0,'Plaines Wilhems',1),(15207,15207,152,'',0,'Port-Louis',1),(15208,15208,152,'',0,'Rivière du Rempart',1),(15209,15209,152,'',0,'Savanne',1),(15210,15210,152,'',0,'Rodrigues',1),(15211,15211,152,'',0,'Les îles Agaléga',1),(15212,15212,152,'',0,'Les écueils des Cargados Carajos',1);
1168 /*!40000 ALTER TABLE `llx_c_regions` ENABLE KEYS */;
1169 UNLOCK TABLES;
1171 --
1172 -- Table structure for table `llx_c_shipment_mode`
1173 --
1175 DROP TABLE IF EXISTS `llx_c_shipment_mode`;
1176 /*!40101 SET @saved_cs_client = @@character_set_client */;
1177 /*!40101 SET character_set_client = utf8 */;
1178 CREATE TABLE `llx_c_shipment_mode` (
1179 `rowid` int(11) NOT NULL,
1180 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
1181 `code` varchar(30) NOT NULL,
1182 `libelle` varchar(50) NOT NULL,
1183 `description` text,
1184 `active` tinyint(4) DEFAULT '0',
1185 PRIMARY KEY (`rowid`)
1186 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
1187 /*!40101 SET character_set_client = @saved_cs_client */;
1189 --
1190 -- Dumping data for table `llx_c_shipment_mode`
1191 --
1193 LOCK TABLES `llx_c_shipment_mode` WRITE;
1194 /*!40000 ALTER TABLE `llx_c_shipment_mode` DISABLE KEYS */;
1195 INSERT INTO `llx_c_shipment_mode` VALUES (1,'2011-07-03 17:32:38','CATCH','Catch','Catch by client',1),(2,'2011-07-03 17:32:38','TRANS','Transporter','Generic transporter',1),(3,'2011-07-03 17:32:38','COLSUI','Colissimo Suivi','Colissimo Suivi',0);
1196 /*!40000 ALTER TABLE `llx_c_shipment_mode` ENABLE KEYS */;
1197 UNLOCK TABLES;
1199 --
1200 -- Table structure for table `llx_c_stcomm`
1201 --
1203 DROP TABLE IF EXISTS `llx_c_stcomm`;
1204 /*!40101 SET @saved_cs_client = @@character_set_client */;
1205 /*!40101 SET character_set_client = utf8 */;
1206 CREATE TABLE `llx_c_stcomm` (
1207 `id` int(11) NOT NULL,
1208 `code` varchar(12) NOT NULL,
1209 `libelle` varchar(30) DEFAULT NULL,
1210 `active` tinyint(4) NOT NULL DEFAULT '1',
1211 PRIMARY KEY (`id`),
1212 UNIQUE KEY `code` (`code`)
1213 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
1214 /*!40101 SET character_set_client = @saved_cs_client */;
1216 --
1217 -- Dumping data for table `llx_c_stcomm`
1218 --
1220 LOCK TABLES `llx_c_stcomm` WRITE;
1221 /*!40000 ALTER TABLE `llx_c_stcomm` DISABLE KEYS */;
1222 INSERT INTO `llx_c_stcomm` VALUES (-1,'ST_NO','Ne pas contacter',1),(0,'ST_NEVER','Jamais contacté',1),(1,'ST_TODO','A contacter',1),(2,'ST_PEND','Contact en cours',1),(3,'ST_DONE','Contactée',1);
1223 /*!40000 ALTER TABLE `llx_c_stcomm` ENABLE KEYS */;
1224 UNLOCK TABLES;
1226 --
1227 -- Table structure for table `llx_c_tva`
1228 --
1230 DROP TABLE IF EXISTS `llx_c_tva`;
1231 /*!40101 SET @saved_cs_client = @@character_set_client */;
1232 /*!40101 SET character_set_client = utf8 */;
1233 CREATE TABLE `llx_c_tva` (
1234 `rowid` int(11) NOT NULL AUTO_INCREMENT,
1235 `fk_pays` int(11) NOT NULL,
1236 `taux` double NOT NULL,
1237 `localtax1` double NOT NULL DEFAULT '0',
1238 `localtax2` double NOT NULL DEFAULT '0',
1239 `recuperableonly` int(11) NOT NULL DEFAULT '0',
1240 `note` varchar(128) DEFAULT NULL,
1241 `active` tinyint(4) NOT NULL DEFAULT '1',
1242 `accountancy_code` varchar(15) DEFAULT NULL,
1243 PRIMARY KEY (`rowid`)
1244 ) ENGINE=MyISAM AUTO_INCREMENT=2462 DEFAULT CHARSET=utf8;
1245 /*!40101 SET character_set_client = @saved_cs_client */;
1247 --
1248 -- Dumping data for table `llx_c_tva`
1249 --
1251 LOCK TABLES `llx_c_tva` WRITE;
1252 /*!40000 ALTER TABLE `llx_c_tva` DISABLE KEYS */;
1253 INSERT INTO `llx_c_tva` VALUES (231,23,21,0,0,0,'IVA standard rate',1,NULL),(232,23,10.5,0,0,0,'IVA reduced rate',1,NULL),(233,23,0,0,0,0,'IVA Rate 0',1,NULL),(281,28,10,0,0,0,'VAT standard rate',1,NULL),(282,28,0,0,0,0,'VAT Rate 0',1,NULL),(411,41,20,0,0,0,'VAT standard rate',1,NULL),(412,41,10,0,0,0,'VAT reduced rate',1,NULL),(413,41,0,0,0,0,'VAT Rate 0',1,NULL),(591,59,20,0,0,0,'VAT standard rate',1,NULL),(592,59,7,0,0,0,'VAT reduced rate',1,NULL),(593,59,0,0,0,0,'VAT Rate 0',1,NULL),(21,2,21,0,0,0,'VAT standard rate',1,NULL),(22,2,6,0,0,0,'VAT reduced rate',1,NULL),(23,2,0,0,0,0,'VAT Rate 0 ou non applicable',1,NULL),(24,2,12,0,0,0,'VAT reduced rate',1,NULL),(141,14,7,0,0,0,'VAT standard rate',1,NULL),(142,14,0,0,0,0,'VAT Rate 0',1,NULL),(671,67,19,0,0,0,'VAT standard rate',1,NULL),(672,67,0,0,0,0,'VAT Rate 0',1,NULL),(91,9,17,0,0,0,'VAT standard rate',1,NULL),(92,9,13,0,0,0,'VAT reduced rate 0',1,NULL),(93,9,3,0,0,0,'VAT super reduced rate 0',1,NULL),(94,9,0,0,0,0,'VAT Rate 0',1,NULL),(801,80,25,0,0,0,'VAT standard rate',1,NULL),(802,80,0,0,0,0,'VAT Rate 0',1,NULL),(11,1,19.6,0,0,0,'VAT standard rate (France hors DOM-TOM)',1,NULL),(12,1,8.5,0,0,0,'VAT standard rate (DOM sauf Guyane et Saint-Martin)',0,NULL),(13,1,8.5,0,0,1,'VAT standard rate (DOM sauf Guyane et Saint-Martin), non perçu par le vendeur mais récupérable par acheteur',0,NULL),(14,1,5.5,0,0,0,'VAT reduced rate (France hors DOM-TOM)',1,NULL),(15,1,0,0,0,0,'VAT Rate 0 ou non applicable',1,NULL),(16,1,2.1,0,0,0,'VAT super-reduced rate',1,NULL),(51,5,19,0,0,0,'VAT standard rate',1,NULL),(52,5,7,0,0,0,'VAT reduced rate',1,NULL),(53,5,0,0,0,0,'VAT Rate 0',1,NULL),(1161,116,25.5,0,0,0,'VAT standard rate',1,NULL),(1162,116,7,0,0,0,'VAT reduced rate',1,NULL),(1163,116,0,0,0,0,'VAT rate 0',1,NULL),(31,3,20,0,0,0,'VAT standard rate',1,NULL),(32,3,10,0,0,0,'VAT reduced rate',1,NULL),(33,3,4,0,0,0,'VAT super-reduced rate',1,NULL),(34,3,0,0,0,0,'VAT Rate 0',1,NULL),(1171,117,12.5,0,0,0,'VAT standard rate',1,NULL),(1172,117,4,0,0,0,'VAT reduced rate',1,NULL),(1173,117,1,0,0,0,'VAT super-reduced rate',1,NULL),(1174,117,0,0,0,0,'VAT Rate 0',1,NULL),(1231,123,0,0,0,0,'VAT Rate 0',1,NULL),(1232,123,5,0,0,0,'VAT Rate 5',1,NULL),(1401,140,15,0,0,0,'VAT standard rate',1,NULL),(1402,140,12,0,0,0,'VAT reduced rate',1,NULL),(1403,140,6,0,0,0,'VAT reduced rate',1,NULL),(1404,140,3,0,0,0,'VAT super-reduced rate',1,NULL),(1405,140,0,0,0,0,'VAT Rate 0',1,NULL),(121,12,20,0,0,0,'VAT standard rate',1,NULL),(122,12,14,0,0,0,'VAT reduced rate',1,NULL),(123,12,10,0,0,0,'VAT reduced rate',1,NULL),(124,12,7,0,0,0,'VAT super-reduced rate',1,NULL),(125,12,0,0,0,0,'VAT Rate 0',1,NULL),(171,17,19,0,0,0,'VAT standard rate',1,NULL),(172,17,6,0,0,0,'VAT reduced rate',1,NULL),(173,17,0,0,0,0,'VAT Rate 0',1,NULL),(1662,166,15,0,0,0,'VAT standard rate',1,NULL),(1663,166,0,0,0,0,'VAT Rate 0',1,NULL),(1841,184,20,0,0,0,'VAT standard rate',1,NULL),(1842,184,7,0,0,0,'VAT reduced rate',1,NULL),(1843,184,3,0,0,0,'VAT reduced rate',1,NULL),(1844,184,0,0,0,0,'VAT Rate 0',1,NULL),(251,25,20,0,0,0,'VAT standard rate',1,NULL),(252,25,12,0,0,0,'VAT reduced rate',1,NULL),(253,25,0,0,0,0,'VAT Rate 0',1,NULL),(254,25,5,0,0,0,'VAT reduced rate',1,NULL),(1881,188,24,0,0,0,'VAT standard rate',1,NULL),(1882,188,9,0,0,0,'VAT reduced rate',1,NULL),(1884,188,5,0,0,0,'VAT reduced rate',1,NULL),(1883,188,0,0,0,0,'VAT Rate 0',1,NULL),(861,86,13,0,0,0,'IVA 13',1,NULL),(862,86,0,0,0,0,'SIN IVA',1,NULL),(2011,201,19,0,0,0,'VAT standard rate',1,NULL),(2012,201,10,0,0,0,'VAT reduced rate',1,NULL),(2013,201,0,0,0,0,'VAT Rate 0',1,NULL),(2021,202,20,0,0,0,'VAT standard rate',1,NULL),(2022,202,8.5,0,0,0,'VAT reduced rate',1,NULL),(2023,202,0,0,0,0,'VAT Rate 0',1,NULL),(41,4,18,4,0,0,'VAT standard rate',1,NULL),(42,4,8,1,0,0,'VAT reduced rate',1,NULL),(43,4,4,0.5,0,0,'VAT super-reduced rate',1,NULL),(44,4,0,0,0,0,'VAT Rate 0',1,NULL),(201,20,25,0,0,0,'VAT standard rate',1,NULL),(202,20,12,0,0,0,'VAT reduced rate',1,NULL),(203,20,6,0,0,0,'VAT super-reduced rate',1,NULL),(204,20,0,0,0,0,'VAT Rate 0',1,NULL),(61,6,7.6,0,0,0,'VAT standard rate',1,NULL),(62,6,3.6,0,0,0,'VAT reduced rate',1,NULL),(63,6,2.4,0,0,0,'VAT super-reduced rate',1,NULL),(64,6,0,0,0,0,'VAT Rate 0',1,NULL),(101,10,6,0,0,0,'VAT 6%',1,NULL),(102,10,12,0,0,0,'VAT 12%',1,NULL),(103,10,18,0,0,0,'VAT 18%',1,NULL),(104,10,7.5,0,0,0,'VAT 6% Majoré à 25% (7.5%)',1,NULL),(105,10,15,0,0,0,'VAT 12% Majoré à 25% (15%)',1,NULL),(106,10,22.5,0,0,0,'VAT 18% Majoré à 25% (22.5%)',1,NULL),(107,10,0,0,0,0,'VAT Rate 0',1,NULL),(71,7,20,0,0,0,'VAT standard rate',1,NULL),(72,7,17.5,0,0,0,'VAT standard rate before 2011',1,NULL),(73,7,5,0,0,0,'VAT reduced rate',1,NULL),(74,7,0,0,0,0,'VAT Rate 0',1,NULL),(111,11,0,0,0,0,'No Sales Tax',1,NULL),(112,11,4,0,0,0,'Sales Tax 4%',1,NULL),(113,11,6,0,0,0,'Sales Tax 6%',1,NULL),(1931,193,0,0,0,0,'No VAT in SPM',1,NULL),(2461,246,0,0,0,0,'VAT Rate 0',1,NULL),(1521,152,0,0,0,0,'VAT Rate 0',1,NULL),(1522,152,15,0,0,0,'VAT Rate 15',1,NULL);
1254 /*!40000 ALTER TABLE `llx_c_tva` ENABLE KEYS */;
1255 UNLOCK TABLES;
1257 --
1258 -- Table structure for table `llx_c_type_contact`
1259 --
1261 DROP TABLE IF EXISTS `llx_c_type_contact`;
1262 /*!40101 SET @saved_cs_client = @@character_set_client */;
1263 /*!40101 SET character_set_client = utf8 */;
1264 CREATE TABLE `llx_c_type_contact` (
1265 `rowid` int(11) NOT NULL,
1266 `element` varchar(30) NOT NULL,
1267 `source` varchar(8) NOT NULL DEFAULT 'external',
1268 `code` varchar(16) NOT NULL,
1269 `libelle` varchar(64) NOT NULL,
1270 `active` tinyint(4) NOT NULL DEFAULT '1',
1271 PRIMARY KEY (`rowid`),
1272 UNIQUE KEY `idx_c_type_contact_uk` (`element`,`source`,`code`)
1273 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
1274 /*!40101 SET character_set_client = @saved_cs_client */;
1276 --
1277 -- Dumping data for table `llx_c_type_contact`
1278 --
1280 LOCK TABLES `llx_c_type_contact` WRITE;
1281 /*!40000 ALTER TABLE `llx_c_type_contact` DISABLE KEYS */;
1282 INSERT INTO `llx_c_type_contact` VALUES (10,'contrat','internal','SALESREPSIGN','Commercial signataire du contrat',1),(11,'contrat','internal','SALESREPFOLL','Commercial suivi du contrat',1),(20,'contrat','external','BILLING','Contact client facturation contrat',1),(21,'contrat','external','CUSTOMER','Contact client suivi contrat',1),(22,'contrat','external','SALESREPSIGN','Contact client signataire contrat',1),(31,'propal','internal','SALESREPFOLL','Commercial à l\'origine de la propale',1),(40,'propal','external','BILLING','Contact client facturation propale',1),(41,'propal','external','CUSTOMER','Contact client suivi propale',1),(50,'facture','internal','SALESREPFOLL','Responsable suivi du paiement',1),(60,'facture','external','BILLING','Contact client facturation',1),(61,'facture','external','SHIPPING','Contact client livraison',1),(62,'facture','external','SERVICE','Contact client prestation',1),(70,'invoice_supplier','internal','SALESREPFOLL','Responsable suivi du paiement',1),(71,'invoice_supplier','external','BILLING','Contact fournisseur facturation',1),(72,'invoice_supplier','external','SHIPPING','Contact fournisseur livraison',1),(73,'invoice_supplier','external','SERVICE','Contact fournisseur prestation',1),(91,'commande','internal','SALESREPFOLL','Responsable suivi de la commande',1),(100,'commande','external','BILLING','Contact client facturation commande',1),(101,'commande','external','CUSTOMER','Contact client suivi commande',1),(102,'commande','external','SHIPPING','Contact client livraison commande',1),(120,'fichinter','internal','INTERREPFOLL','Responsable suivi de l\'intervention',1),(121,'fichinter','internal','INTERVENING','Intervenant',1),(130,'fichinter','external','BILLING','Contact client facturation intervention',1),(131,'fichinter','external','CUSTOMER','Contact client suivi de l\'intervention',1),(140,'order_supplier','internal','SALESREPFOLL','Responsable suivi de la commande',1),(141,'order_supplier','internal','SHIPPING','Responsable réception de la commande',1),(142,'order_supplier','external','BILLING','Contact fournisseur facturation commande',1),(143,'order_supplier','external','CUSTOMER','Contact fournisseur suivi commande',1),(145,'order_supplier','external','SHIPPING','Contact fournisseur livraison commande',1),(160,'project','internal','PROJECTLEADER','Chef de Projet',1),(161,'project','internal','CONTRIBUTOR','Intervenant',1),(170,'project','external','PROJECTLEADER','Chef de Projet',1),(171,'project','external','CONTRIBUTOR','Intervenant',1),(180,'project_task','internal','TASKEXECUTIVE','Responsable',1),(181,'project_task','internal','CONTRIBUTOR','Intervenant',1),(190,'project_task','external','TASKEXECUTIVE','Responsable',1),(191,'project_task','external','CONTRIBUTOR','Intervenant',1);
1283 /*!40000 ALTER TABLE `llx_c_type_contact` ENABLE KEYS */;
1284 UNLOCK TABLES;
1286 --
1287 -- Table structure for table `llx_c_type_fees`
1288 --
1290 DROP TABLE IF EXISTS `llx_c_type_fees`;
1291 /*!40101 SET @saved_cs_client = @@character_set_client */;
1292 /*!40101 SET character_set_client = utf8 */;
1293 CREATE TABLE `llx_c_type_fees` (
1294 `id` int(11) NOT NULL AUTO_INCREMENT,
1295 `code` varchar(12) NOT NULL,
1296 `libelle` varchar(30) DEFAULT NULL,
1297 `active` tinyint(4) NOT NULL DEFAULT '1',
1298 PRIMARY KEY (`id`),
1299 UNIQUE KEY `code` (`code`)
1300 ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
1301 /*!40101 SET character_set_client = @saved_cs_client */;
1303 --
1304 -- Dumping data for table `llx_c_type_fees`
1305 --
1307 LOCK TABLES `llx_c_type_fees` WRITE;
1308 /*!40000 ALTER TABLE `llx_c_type_fees` DISABLE KEYS */;
1309 INSERT INTO `llx_c_type_fees` VALUES (1,'TF_OTHER','Other',1),(2,'TF_TRIP','Trip',1),(3,'TF_LUNCH','Lunch',1);
1310 /*!40000 ALTER TABLE `llx_c_type_fees` ENABLE KEYS */;
1311 UNLOCK TABLES;
1313 --
1314 -- Table structure for table `llx_c_typent`
1315 --
1317 DROP TABLE IF EXISTS `llx_c_typent`;
1318 /*!40101 SET @saved_cs_client = @@character_set_client */;
1319 /*!40101 SET character_set_client = utf8 */;
1320 CREATE TABLE `llx_c_typent` (
1321 `id` int(11) NOT NULL,
1322 `code` varchar(12) NOT NULL,
1323 `libelle` varchar(30) DEFAULT NULL,
1324 `active` tinyint(4) NOT NULL DEFAULT '1',
1325 PRIMARY KEY (`id`),
1326 UNIQUE KEY `code` (`code`)
1327 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
1328 /*!40101 SET character_set_client = @saved_cs_client */;
1330 --
1331 -- Dumping data for table `llx_c_typent`
1332 --
1334 LOCK TABLES `llx_c_typent` WRITE;
1335 /*!40000 ALTER TABLE `llx_c_typent` DISABLE KEYS */;
1336 INSERT INTO `llx_c_typent` VALUES (0,'TE_UNKNOWN','-',1),(1,'TE_STARTUP','Start-up',0),(2,'TE_GROUP','Grand groupe',1),(3,'TE_MEDIUM','PME/PMI',1),(4,'TE_SMALL','TPE',1),(5,'TE_ADMIN','Administration',1),(6,'TE_WHOLE','Grossiste',0),(7,'TE_RETAIL','Revendeur',0),(8,'TE_PRIVATE','Particulier',1),(100,'TE_OTHER','Autres',1);
1337 /*!40000 ALTER TABLE `llx_c_typent` ENABLE KEYS */;
1338 UNLOCK TABLES;
1340 --
1341 -- Table structure for table `llx_c_ziptown`
1342 --
1344 DROP TABLE IF EXISTS `llx_c_ziptown`;
1345 /*!40101 SET @saved_cs_client = @@character_set_client */;
1346 /*!40101 SET character_set_client = utf8 */;
1347 CREATE TABLE `llx_c_ziptown` (
1348 `rowid` int(11) NOT NULL AUTO_INCREMENT,
1349 `code` varchar(5) DEFAULT NULL,
1350 `fk_county` int(11) NOT NULL,
1351 `zip` varchar(10) NOT NULL,
1352 `town` varchar(255) NOT NULL,
1353 `active` tinyint(4) NOT NULL DEFAULT '1',
1354 PRIMARY KEY (`rowid`),
1355 KEY `idx_c_ziptown_fk_county` (`fk_county`)
1356 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
1357 /*!40101 SET character_set_client = @saved_cs_client */;
1359 --
1360 -- Dumping data for table `llx_c_ziptown`
1361 --
1363 LOCK TABLES `llx_c_ziptown` WRITE;
1364 /*!40000 ALTER TABLE `llx_c_ziptown` DISABLE KEYS */;
1365 /*!40000 ALTER TABLE `llx_c_ziptown` ENABLE KEYS */;
1366 UNLOCK TABLES;
1368 --
1369 -- Table structure for table `llx_categorie`
1370 --
1372 DROP TABLE IF EXISTS `llx_categorie`;
1373 /*!40101 SET @saved_cs_client = @@character_set_client */;
1374 /*!40101 SET character_set_client = utf8 */;
1375 CREATE TABLE `llx_categorie` (
1376 `rowid` int(11) NOT NULL AUTO_INCREMENT,
1377 `label` varchar(255) DEFAULT NULL,
1378 `type` tinyint(4) NOT NULL DEFAULT '1',
1379 `entity` int(11) NOT NULL DEFAULT '1',
1380 `description` text,
1381 `fk_soc` int(11) DEFAULT NULL,
1382 `visible` tinyint(4) NOT NULL DEFAULT '1',
1383 `import_key` varchar(14) DEFAULT NULL,
1384 PRIMARY KEY (`rowid`),
1385 UNIQUE KEY `uk_categorie_ref` (`label`,`type`,`entity`),
1386 KEY `idx_categorie_type` (`type`)
1387 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
1388 /*!40101 SET character_set_client = @saved_cs_client */;
1390 --
1391 -- Dumping data for table `llx_categorie`
1392 --
1394 LOCK TABLES `llx_categorie` WRITE;
1395 /*!40000 ALTER TABLE `llx_categorie` DISABLE KEYS */;
1396 /*!40000 ALTER TABLE `llx_categorie` ENABLE KEYS */;
1397 UNLOCK TABLES;
1399 --
1400 -- Table structure for table `llx_categorie_association`
1401 --
1403 DROP TABLE IF EXISTS `llx_categorie_association`;
1404 /*!40101 SET @saved_cs_client = @@character_set_client */;
1405 /*!40101 SET character_set_client = utf8 */;
1406 CREATE TABLE `llx_categorie_association` (
1407 `fk_categorie_mere` int(11) NOT NULL,
1408 `fk_categorie_fille` int(11) NOT NULL,
1409 UNIQUE KEY `uk_categorie_association` (`fk_categorie_mere`,`fk_categorie_fille`),
1410 UNIQUE KEY `uk_categorie_association_fk_categorie_fille` (`fk_categorie_fille`)
1411 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
1412 /*!40101 SET character_set_client = @saved_cs_client */;
1414 --
1415 -- Dumping data for table `llx_categorie_association`
1416 --
1418 LOCK TABLES `llx_categorie_association` WRITE;
1419 /*!40000 ALTER TABLE `llx_categorie_association` DISABLE KEYS */;
1420 /*!40000 ALTER TABLE `llx_categorie_association` ENABLE KEYS */;
1421 UNLOCK TABLES;
1423 --
1424 -- Table structure for table `llx_categorie_fournisseur`
1425 --
1427 DROP TABLE IF EXISTS `llx_categorie_fournisseur`;
1428 /*!40101 SET @saved_cs_client = @@character_set_client */;
1429 /*!40101 SET character_set_client = utf8 */;
1430 CREATE TABLE `llx_categorie_fournisseur` (
1431 `fk_categorie` int(11) NOT NULL,
1432 `fk_societe` int(11) NOT NULL,
1433 UNIQUE KEY `fk_categorie` (`fk_categorie`,`fk_societe`)
1434 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
1435 /*!40101 SET character_set_client = @saved_cs_client */;
1437 --
1438 -- Dumping data for table `llx_categorie_fournisseur`
1439 --
1441 LOCK TABLES `llx_categorie_fournisseur` WRITE;
1442 /*!40000 ALTER TABLE `llx_categorie_fournisseur` DISABLE KEYS */;
1443 /*!40000 ALTER TABLE `llx_categorie_fournisseur` ENABLE KEYS */;
1444 UNLOCK TABLES;
1446 --
1447 -- Table structure for table `llx_categorie_member`
1448 --
1450 DROP TABLE IF EXISTS `llx_categorie_member`;
1451 /*!40101 SET @saved_cs_client = @@character_set_client */;
1452 /*!40101 SET character_set_client = utf8 */;
1453 CREATE TABLE `llx_categorie_member` (
1454 `fk_categorie` int(11) NOT NULL,
1455 `fk_member` int(11) NOT NULL,
1456 PRIMARY KEY (`fk_categorie`,`fk_member`),
1457 KEY `idx_categorie_member_fk_categorie` (`fk_categorie`),
1458 KEY `idx_categorie_member_fk_member` (`fk_member`)
1459 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
1460 /*!40101 SET character_set_client = @saved_cs_client */;
1462 --
1463 -- Dumping data for table `llx_categorie_member`
1464 --
1466 LOCK TABLES `llx_categorie_member` WRITE;
1467 /*!40000 ALTER TABLE `llx_categorie_member` DISABLE KEYS */;
1468 /*!40000 ALTER TABLE `llx_categorie_member` ENABLE KEYS */;
1469 UNLOCK TABLES;
1471 --
1472 -- Table structure for table `llx_categorie_product`
1473 --
1475 DROP TABLE IF EXISTS `llx_categorie_product`;
1476 /*!40101 SET @saved_cs_client = @@character_set_client */;
1477 /*!40101 SET character_set_client = utf8 */;
1478 CREATE TABLE `llx_categorie_product` (
1479 `fk_categorie` int(11) NOT NULL,
1480 `fk_product` int(11) NOT NULL,
1481 PRIMARY KEY (`fk_categorie`,`fk_product`),
1482 KEY `idx_categorie_product_fk_categorie` (`fk_categorie`),
1483 KEY `idx_categorie_product_fk_product` (`fk_product`)
1484 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
1485 /*!40101 SET character_set_client = @saved_cs_client */;
1487 --
1488 -- Dumping data for table `llx_categorie_product`
1489 --
1491 LOCK TABLES `llx_categorie_product` WRITE;
1492 /*!40000 ALTER TABLE `llx_categorie_product` DISABLE KEYS */;
1493 /*!40000 ALTER TABLE `llx_categorie_product` ENABLE KEYS */;
1494 UNLOCK TABLES;
1496 --
1497 -- Table structure for table `llx_categorie_societe`
1498 --
1500 DROP TABLE IF EXISTS `llx_categorie_societe`;
1501 /*!40101 SET @saved_cs_client = @@character_set_client */;
1502 /*!40101 SET character_set_client = utf8 */;
1503 CREATE TABLE `llx_categorie_societe` (
1504 `fk_categorie` int(11) NOT NULL,
1505 `fk_societe` int(11) NOT NULL,
1506 PRIMARY KEY (`fk_categorie`,`fk_societe`),
1507 KEY `idx_categorie_societe_fk_categorie` (`fk_categorie`),
1508 KEY `idx_categorie_societe_fk_societe` (`fk_societe`)
1509 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
1510 /*!40101 SET character_set_client = @saved_cs_client */;
1512 --
1513 -- Dumping data for table `llx_categorie_societe`
1514 --
1516 LOCK TABLES `llx_categorie_societe` WRITE;
1517 /*!40000 ALTER TABLE `llx_categorie_societe` DISABLE KEYS */;
1518 /*!40000 ALTER TABLE `llx_categorie_societe` ENABLE KEYS */;
1519 UNLOCK TABLES;
1521 --
1522 -- Table structure for table `llx_chargesociales`
1523 --
1525 DROP TABLE IF EXISTS `llx_chargesociales`;
1526 /*!40101 SET @saved_cs_client = @@character_set_client */;
1527 /*!40101 SET character_set_client = utf8 */;
1528 CREATE TABLE `llx_chargesociales` (
1529 `rowid` int(11) NOT NULL AUTO_INCREMENT,
1530 `date_ech` datetime NOT NULL,
1531 `libelle` varchar(80) NOT NULL,
1532 `entity` int(11) NOT NULL DEFAULT '1',
1533 `fk_type` int(11) NOT NULL,
1534 `amount` double NOT NULL DEFAULT '0',
1535 `paye` smallint(6) NOT NULL DEFAULT '0',
1536 `periode` date DEFAULT NULL,
1537 PRIMARY KEY (`rowid`)
1538 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
1539 /*!40101 SET character_set_client = @saved_cs_client */;
1541 --
1542 -- Dumping data for table `llx_chargesociales`
1543 --
1545 LOCK TABLES `llx_chargesociales` WRITE;
1546 /*!40000 ALTER TABLE `llx_chargesociales` DISABLE KEYS */;
1547 /*!40000 ALTER TABLE `llx_chargesociales` ENABLE KEYS */;
1548 UNLOCK TABLES;
1550 --
1551 -- Table structure for table `llx_commande`
1552 --
1554 DROP TABLE IF EXISTS `llx_commande`;
1555 /*!40101 SET @saved_cs_client = @@character_set_client */;
1556 /*!40101 SET character_set_client = utf8 */;
1557 CREATE TABLE `llx_commande` (
1558 `rowid` int(11) NOT NULL AUTO_INCREMENT,
1559 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
1560 `fk_soc` int(11) NOT NULL,
1561 `fk_projet` int(11) DEFAULT '0',
1562 `ref` varchar(30) NOT NULL,
1563 `entity` int(11) NOT NULL DEFAULT '1',
1564 `ref_ext` varchar(30) DEFAULT NULL,
1565 `ref_client` varchar(30) DEFAULT NULL,
1566 `date_creation` datetime DEFAULT NULL,
1567 `date_valid` datetime DEFAULT NULL,
1568 `date_cloture` datetime DEFAULT NULL,
1569 `date_commande` date DEFAULT NULL,
1570 `fk_user_author` int(11) DEFAULT NULL,
1571 `fk_user_valid` int(11) DEFAULT NULL,
1572 `fk_user_cloture` int(11) DEFAULT NULL,
1573 `source` smallint(6) DEFAULT NULL,
1574 `fk_statut` smallint(6) DEFAULT '0',
1575 `amount_ht` double DEFAULT '0',
1576 `remise_percent` double DEFAULT '0',
1577 `remise_absolue` double DEFAULT '0',
1578 `remise` double DEFAULT '0',
1579 `tva` double(24,8) DEFAULT '0.00000000',
1580 `localtax1` double(24,8) DEFAULT '0.00000000',
1581 `localtax2` double(24,8) DEFAULT '0.00000000',
1582 `total_ht` double(24,8) DEFAULT '0.00000000',
1583 `total_ttc` double(24,8) DEFAULT '0.00000000',
1584 `note` text,
1585 `note_public` text,
1586 `model_pdf` varchar(50) DEFAULT NULL,
1587 `facture` tinyint(4) DEFAULT '0',
1588 `fk_cond_reglement` int(11) DEFAULT NULL,
1589 `fk_mode_reglement` int(11) DEFAULT NULL,
1590 `date_livraison` date DEFAULT NULL,
1591 `fk_adresse_livraison` int(11) DEFAULT NULL,
1592 `import_key` varchar(14) DEFAULT NULL,
1593 PRIMARY KEY (`rowid`),
1594 UNIQUE KEY `uk_commande_ref` (`ref`,`entity`),
1595 KEY `idx_commande_fk_soc` (`fk_soc`)
1596 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
1597 /*!40101 SET character_set_client = @saved_cs_client */;
1599 --
1600 -- Dumping data for table `llx_commande`
1601 --
1603 LOCK TABLES `llx_commande` WRITE;
1604 /*!40000 ALTER TABLE `llx_commande` DISABLE KEYS */;
1605 /*!40000 ALTER TABLE `llx_commande` ENABLE KEYS */;
1606 UNLOCK TABLES;
1608 --
1609 -- Table structure for table `llx_commande_fournisseur`
1610 --
1612 DROP TABLE IF EXISTS `llx_commande_fournisseur`;
1613 /*!40101 SET @saved_cs_client = @@character_set_client */;
1614 /*!40101 SET character_set_client = utf8 */;
1615 CREATE TABLE `llx_commande_fournisseur` (
1616 `rowid` int(11) NOT NULL AUTO_INCREMENT,
1617 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
1618 `fk_soc` int(11) NOT NULL,
1619 `ref` varchar(30) NOT NULL,
1620 `entity` int(11) NOT NULL DEFAULT '1',
1621 `ref_supplier` varchar(30) DEFAULT NULL,
1622 `fk_projet` int(11) DEFAULT '0',
1623 `date_creation` datetime DEFAULT NULL,
1624 `date_valid` datetime DEFAULT NULL,
1625 `date_cloture` datetime DEFAULT NULL,
1626 `date_commande` date DEFAULT NULL,
1627 `fk_user_author` int(11) DEFAULT NULL,
1628 `fk_user_valid` int(11) DEFAULT NULL,
1629 `fk_user_cloture` int(11) DEFAULT NULL,
1630 `source` smallint(6) NOT NULL,
1631 `fk_statut` smallint(6) DEFAULT '0',
1632 `amount_ht` double DEFAULT '0',
1633 `remise_percent` double DEFAULT '0',
1634 `remise` double DEFAULT '0',
1635 `tva` double(24,8) DEFAULT '0.00000000',
1636 `localtax1` double(24,8) DEFAULT '0.00000000',
1637 `localtax2` double(24,8) DEFAULT '0.00000000',
1638 `total_ht` double(24,8) DEFAULT '0.00000000',
1639 `total_ttc` double(24,8) DEFAULT '0.00000000',
1640 `note` text,
1641 `note_public` text,
1642 `model_pdf` varchar(50) DEFAULT NULL,
1643 `fk_methode_commande` int(11) DEFAULT '0',
1644 PRIMARY KEY (`rowid`),
1645 UNIQUE KEY `uk_commande_fournisseur_ref` (`ref`,`fk_soc`,`entity`),
1646 KEY `idx_commande_fournisseur_fk_soc` (`fk_soc`)
1647 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
1648 /*!40101 SET character_set_client = @saved_cs_client */;
1650 --
1651 -- Dumping data for table `llx_commande_fournisseur`
1652 --
1654 LOCK TABLES `llx_commande_fournisseur` WRITE;
1655 /*!40000 ALTER TABLE `llx_commande_fournisseur` DISABLE KEYS */;
1656 /*!40000 ALTER TABLE `llx_commande_fournisseur` ENABLE KEYS */;
1657 UNLOCK TABLES;
1659 --
1660 -- Table structure for table `llx_commande_fournisseur_dispatch`
1661 --
1663 DROP TABLE IF EXISTS `llx_commande_fournisseur_dispatch`;
1664 /*!40101 SET @saved_cs_client = @@character_set_client */;
1665 /*!40101 SET character_set_client = utf8 */;
1666 CREATE TABLE `llx_commande_fournisseur_dispatch` (
1667 `rowid` int(11) NOT NULL AUTO_INCREMENT,
1668 `fk_commande` int(11) DEFAULT NULL,
1669 `fk_product` int(11) DEFAULT NULL,
1670 `qty` float DEFAULT NULL,
1671 `fk_entrepot` int(11) DEFAULT NULL,
1672 `fk_user` int(11) DEFAULT NULL,
1673 `datec` datetime DEFAULT NULL,
1674 PRIMARY KEY (`rowid`),
1675 KEY `idx_commande_fournisseur_dispatch_fk_commande` (`fk_commande`)
1676 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
1677 /*!40101 SET character_set_client = @saved_cs_client */;
1679 --
1680 -- Dumping data for table `llx_commande_fournisseur_dispatch`
1681 --
1683 LOCK TABLES `llx_commande_fournisseur_dispatch` WRITE;
1684 /*!40000 ALTER TABLE `llx_commande_fournisseur_dispatch` DISABLE KEYS */;
1685 /*!40000 ALTER TABLE `llx_commande_fournisseur_dispatch` ENABLE KEYS */;
1686 UNLOCK TABLES;
1688 --
1689 -- Table structure for table `llx_commande_fournisseur_log`
1690 --
1692 DROP TABLE IF EXISTS `llx_commande_fournisseur_log`;
1693 /*!40101 SET @saved_cs_client = @@character_set_client */;
1694 /*!40101 SET character_set_client = utf8 */;
1695 CREATE TABLE `llx_commande_fournisseur_log` (
1696 `rowid` int(11) NOT NULL AUTO_INCREMENT,
1697 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
1698 `datelog` datetime NOT NULL,
1699 `fk_commande` int(11) NOT NULL,
1700 `fk_statut` smallint(6) NOT NULL,
1701 `fk_user` int(11) NOT NULL,
1702 `comment` varchar(255) DEFAULT NULL,
1703 PRIMARY KEY (`rowid`)
1704 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
1705 /*!40101 SET character_set_client = @saved_cs_client */;
1707 --
1708 -- Dumping data for table `llx_commande_fournisseur_log`
1709 --
1711 LOCK TABLES `llx_commande_fournisseur_log` WRITE;
1712 /*!40000 ALTER TABLE `llx_commande_fournisseur_log` DISABLE KEYS */;
1713 /*!40000 ALTER TABLE `llx_commande_fournisseur_log` ENABLE KEYS */;
1714 UNLOCK TABLES;
1716 --
1717 -- Table structure for table `llx_commande_fournisseurdet`
1718 --
1720 DROP TABLE IF EXISTS `llx_commande_fournisseurdet`;
1721 /*!40101 SET @saved_cs_client = @@character_set_client */;
1722 /*!40101 SET character_set_client = utf8 */;
1723 CREATE TABLE `llx_commande_fournisseurdet` (
1724 `rowid` int(11) NOT NULL AUTO_INCREMENT,
1725 `fk_commande` int(11) NOT NULL,
1726 `fk_product` int(11) DEFAULT NULL,
1727 `ref` varchar(50) DEFAULT NULL,
1728 `label` varchar(255) DEFAULT NULL,
1729 `description` text,
1730 `tva_tx` double(6,3) DEFAULT '0.000',
1731 `localtax1_tx` double(6,3) DEFAULT '0.000',
1732 `localtax2_tx` double(6,3) DEFAULT '0.000',
1733 `qty` double DEFAULT NULL,
1734 `remise_percent` double DEFAULT '0',
1735 `remise` double DEFAULT '0',
1736 `subprice` double(24,8) DEFAULT '0.00000000',
1737 `total_ht` double(24,8) DEFAULT '0.00000000',
1738 `total_tva` double(24,8) DEFAULT '0.00000000',
1739 `total_localtax1` double(24,8) DEFAULT '0.00000000',
1740 `total_localtax2` double(24,8) DEFAULT '0.00000000',
1741 `total_ttc` double(24,8) DEFAULT '0.00000000',
1742 `product_type` int(11) DEFAULT '0',
1743 `date_start` datetime DEFAULT NULL,
1744 `date_end` datetime DEFAULT NULL,
1745 `info_bits` int(11) DEFAULT '0',
1746 PRIMARY KEY (`rowid`)
1747 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
1748 /*!40101 SET character_set_client = @saved_cs_client */;
1750 --
1751 -- Dumping data for table `llx_commande_fournisseurdet`
1752 --
1754 LOCK TABLES `llx_commande_fournisseurdet` WRITE;
1755 /*!40000 ALTER TABLE `llx_commande_fournisseurdet` DISABLE KEYS */;
1756 /*!40000 ALTER TABLE `llx_commande_fournisseurdet` ENABLE KEYS */;
1757 UNLOCK TABLES;
1759 --
1760 -- Table structure for table `llx_commandedet`
1761 --
1763 DROP TABLE IF EXISTS `llx_commandedet`;
1764 /*!40101 SET @saved_cs_client = @@character_set_client */;
1765 /*!40101 SET character_set_client = utf8 */;
1766 CREATE TABLE `llx_commandedet` (
1767 `rowid` int(11) NOT NULL AUTO_INCREMENT,
1768 `fk_commande` int(11) NOT NULL,
1769 `fk_parent_line` int(11) DEFAULT NULL,
1770 `fk_product` int(11) DEFAULT NULL,
1771 `description` text,
1772 `tva_tx` double(6,3) DEFAULT NULL,
1773 `localtax1_tx` double(6,3) DEFAULT NULL,
1774 `localtax2_tx` double(6,3) DEFAULT NULL,
1775 `qty` double DEFAULT NULL,
1776 `remise_percent` double DEFAULT '0',
1777 `remise` double DEFAULT '0',
1778 `fk_remise_except` int(11) DEFAULT NULL,
1779 `price` double DEFAULT NULL,
1780 `subprice` double(24,8) DEFAULT '0.00000000',
1781 `total_ht` double(24,8) DEFAULT '0.00000000',
1782 `total_tva` double(24,8) DEFAULT '0.00000000',
1783 `total_localtax1` double(24,8) DEFAULT '0.00000000',
1784 `total_localtax2` double(24,8) DEFAULT '0.00000000',
1785 `total_ttc` double(24,8) DEFAULT '0.00000000',
1786 `product_type` int(11) DEFAULT '0',
1787 `date_start` datetime DEFAULT NULL,
1788 `date_end` datetime DEFAULT NULL,
1789 `info_bits` int(11) DEFAULT '0',
1790 `marge_tx` double(6,3) DEFAULT '0.000',
1791 `marque_tx` double(6,3) DEFAULT '0.000',
1792 `special_code` int(10) unsigned DEFAULT '0',
1793 `rang` int(11) DEFAULT '0',
1794 `import_key` varchar(14) DEFAULT NULL,
1795 PRIMARY KEY (`rowid`),
1796 KEY `idx_commandedet_fk_commande` (`fk_commande`)
1797 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
1798 /*!40101 SET character_set_client = @saved_cs_client */;
1800 --
1801 -- Dumping data for table `llx_commandedet`
1802 --
1804 LOCK TABLES `llx_commandedet` WRITE;
1805 /*!40000 ALTER TABLE `llx_commandedet` DISABLE KEYS */;
1806 /*!40000 ALTER TABLE `llx_commandedet` ENABLE KEYS */;
1807 UNLOCK TABLES;
1809 --
1810 -- Table structure for table `llx_compta`
1811 --
1813 DROP TABLE IF EXISTS `llx_compta`;
1814 /*!40101 SET @saved_cs_client = @@character_set_client */;
1815 /*!40101 SET character_set_client = utf8 */;
1816 CREATE TABLE `llx_compta` (
1817 `rowid` int(11) NOT NULL AUTO_INCREMENT,
1818 `datec` datetime DEFAULT NULL,
1819 `datev` date DEFAULT NULL,
1820 `amount` double NOT NULL DEFAULT '0',
1821 `label` varchar(255) DEFAULT NULL,
1822 `fk_compta_account` int(11) DEFAULT NULL,
1823 `fk_user_author` int(11) DEFAULT NULL,
1824 `fk_user_valid` int(11) DEFAULT NULL,
1825 `valid` tinyint(4) DEFAULT '0',
1826 `note` text,
1827 PRIMARY KEY (`rowid`)
1828 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
1829 /*!40101 SET character_set_client = @saved_cs_client */;
1831 --
1832 -- Dumping data for table `llx_compta`
1833 --
1835 LOCK TABLES `llx_compta` WRITE;
1836 /*!40000 ALTER TABLE `llx_compta` DISABLE KEYS */;
1837 /*!40000 ALTER TABLE `llx_compta` ENABLE KEYS */;
1838 UNLOCK TABLES;
1840 --
1841 -- Table structure for table `llx_compta_account`
1842 --
1844 DROP TABLE IF EXISTS `llx_compta_account`;
1845 /*!40101 SET @saved_cs_client = @@character_set_client */;
1846 /*!40101 SET character_set_client = utf8 */;
1847 CREATE TABLE `llx_compta_account` (
1848 `rowid` int(11) NOT NULL AUTO_INCREMENT,
1849 `datec` datetime DEFAULT NULL,
1850 `number` varchar(12) DEFAULT NULL,
1851 `label` varchar(255) DEFAULT NULL,
1852 `fk_user_author` int(11) DEFAULT NULL,
1853 `note` text,
1854 PRIMARY KEY (`rowid`)
1855 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
1856 /*!40101 SET character_set_client = @saved_cs_client */;
1858 --
1859 -- Dumping data for table `llx_compta_account`
1860 --
1862 LOCK TABLES `llx_compta_account` WRITE;
1863 /*!40000 ALTER TABLE `llx_compta_account` DISABLE KEYS */;
1864 /*!40000 ALTER TABLE `llx_compta_account` ENABLE KEYS */;
1865 UNLOCK TABLES;
1867 --
1868 -- Table structure for table `llx_compta_compte_generaux`
1869 --
1871 DROP TABLE IF EXISTS `llx_compta_compte_generaux`;
1872 /*!40101 SET @saved_cs_client = @@character_set_client */;
1873 /*!40101 SET character_set_client = utf8 */;
1874 CREATE TABLE `llx_compta_compte_generaux` (
1875 `rowid` int(11) NOT NULL AUTO_INCREMENT,
1876 `date_creation` datetime DEFAULT NULL,
1877 `numero` varchar(50) DEFAULT NULL,
1878 `intitule` varchar(255) DEFAULT NULL,
1879 `fk_user_author` int(11) DEFAULT NULL,
1880 `note` text,
1881 PRIMARY KEY (`rowid`),
1882 UNIQUE KEY `numero` (`numero`)
1883 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
1884 /*!40101 SET character_set_client = @saved_cs_client */;
1886 --
1887 -- Dumping data for table `llx_compta_compte_generaux`
1888 --
1890 LOCK TABLES `llx_compta_compte_generaux` WRITE;
1891 /*!40000 ALTER TABLE `llx_compta_compte_generaux` DISABLE KEYS */;
1892 /*!40000 ALTER TABLE `llx_compta_compte_generaux` ENABLE KEYS */;
1893 UNLOCK TABLES;
1895 --
1896 -- Table structure for table `llx_const`
1897 --
1899 DROP TABLE IF EXISTS `llx_const`;
1900 /*!40101 SET @saved_cs_client = @@character_set_client */;
1901 /*!40101 SET character_set_client = utf8 */;
1902 CREATE TABLE `llx_const` (
1903 `rowid` int(11) NOT NULL AUTO_INCREMENT,
1904 `name` varchar(255) NOT NULL,
1905 `entity` int(11) NOT NULL DEFAULT '1',
1906 `value` text NOT NULL,
1907 `type` varchar(6) DEFAULT NULL,
1908 `visible` tinyint(4) NOT NULL DEFAULT '1',
1909 `note` text,
1910 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
1911 PRIMARY KEY (`rowid`),
1912 UNIQUE KEY `uk_const` (`name`,`entity`)
1913 ) ENGINE=MyISAM AUTO_INCREMENT=74 DEFAULT CHARSET=utf8;
1914 /*!40101 SET character_set_client = @saved_cs_client */;
1916 --
1917 -- Dumping data for table `llx_const`
1918 --
1920 LOCK TABLES `llx_const` WRITE;
1921 /*!40000 ALTER TABLE `llx_const` DISABLE KEYS */;
1922 INSERT INTO `llx_const` VALUES (73,'MAIN_LANG_DEFAULT',1,'auto','chaine',0,'Default language','2011-07-03 17:33:30'),(2,'MAIN_FEATURES_LEVEL',0,'0','chaine',1,'Level of features to show (0=stable only, 1=stable+experimental, 2=stable+experimental+development','2011-07-03 17:32:38'),(3,'MAIN_POPUP_CALENDAR',0,'eldy','chaine',0,'Popup calendar module','2011-07-03 17:32:38'),(4,'SYSLOG_FILE',0,'DOL_DATA_ROOT/dolibarr.log','chaine',0,'Directory where to write log file','2011-07-03 17:32:38'),(5,'SYSLOG_LEVEL',0,'7','chaine',0,'Level of debug info to show','2011-07-03 17:32:38'),(6,'MAIN_MAIL_SMTP_SERVER',0,'','chaine',0,'Host or ip address for SMTP server','2011-07-03 17:32:38'),(7,'MAIN_MAIL_SMTP_PORT',0,'','chaine',0,'Port for SMTP server','2011-07-03 17:32:38'),(8,'MAIN_UPLOAD_DOC',0,'2048','chaine',0,'Max size for file upload (0 means no upload allowed)','2011-07-03 17:32:38'),(9,'MAIN_SEARCHFORM_SOCIETE',0,'1','yesno',0,'Show form for quick company search','2011-07-03 17:32:38'),(10,'MAIN_SEARCHFORM_CONTACT',0,'1','yesno',0,'Show form for quick contact search','2011-07-03 17:32:38'),(11,'MAIN_SEARCHFORM_PRODUITSERVICE',0,'1','yesno',0,'Show form for quick product search','2011-07-03 17:32:38'),(12,'MAIN_SEARCHFORM_ADHERENT',0,'1','yesno',0,'Show form for quick member search','2011-07-03 17:32:38'),(13,'MAIN_CONFIRM_AJAX',0,'1','chaine',0,'Use Ajax popup to make confirmations','2011-07-03 17:32:38'),(14,'MAIN_MONNAIE',1,'EUR','chaine',0,'Monnaie','2011-07-03 17:32:38'),(15,'MAIN_MAIL_EMAIL_FROM',1,'dolibarr-robot@domain.com','chaine',0,'EMail emetteur pour les emails automatiques Dolibarr','2011-07-03 17:32:38'),(16,'MAIN_SIZE_LISTE_LIMIT',0,'25','chaine',0,'Longueur maximum des listes','2011-07-03 17:32:38'),(17,'MAIN_SHOW_WORKBOARD',0,'1','yesno',0,'Affichage tableau de bord de travail Dolibarr','2011-07-03 17:32:38'),(18,'MAIN_MENU_BARRETOP',1,'eldy_backoffice.php','chaine',0,'Module de gestion de la barre de menu pour utilisateurs internes','2011-07-03 17:32:38'),(19,'MAIN_MENUFRONT_BARRETOP',1,'eldy_frontoffice.php','chaine',0,'Module de gestion de la barre de menu pour utilisateurs externes','2011-07-03 17:32:38'),(20,'MAIN_MENU_SMARTPHONE',1,'iphone_backoffice.php','chaine',0,'Module de gestion de la barre de menu smartphone pour utilisateurs internes','2011-07-03 17:32:38'),(21,'MAIN_MENUFRONT_SMARTPHONE',1,'iphone_frontoffice.php','chaine',0,'Module de gestion de la barre de menu smartphone pour utilisateurs externes','2011-07-03 17:32:38'),(22,'MAIN_THEME',1,'eldy','chaine',0,'Default theme','2011-07-03 17:32:38'),(23,'MAIN_DELAY_ACTIONS_TODO',1,'7','chaine',0,'Tolérance de retard avant alerte (en jours) sur actions planifiées non réalisées','2011-07-03 17:32:38'),(24,'MAIN_DELAY_ORDERS_TO_PROCESS',1,'2','chaine',0,'Tolérance de retard avant alerte (en jours) sur commandes clients non traitées','2011-07-03 17:32:38'),(25,'MAIN_DELAY_SUPPLIER_ORDERS_TO_PROCESS',1,'7','chaine',0,'Tolérance de retard avant alerte (en jours) sur commandes fournisseurs non traitées','2011-07-03 17:32:38'),(26,'MAIN_DELAY_PROPALS_TO_CLOSE',1,'31','chaine',0,'Tolérance de retard avant alerte (en jours) sur propales à cloturer','2011-07-03 17:32:38'),(27,'MAIN_DELAY_PROPALS_TO_BILL',1,'7','chaine',0,'Tolérance de retard avant alerte (en jours) sur propales non facturées','2011-07-03 17:32:38'),(28,'MAIN_DELAY_CUSTOMER_BILLS_UNPAYED',1,'31','chaine',0,'Tolérance de retard avant alerte (en jours) sur factures client impayées','2011-07-03 17:32:38'),(29,'MAIN_DELAY_SUPPLIER_BILLS_TO_PAY',1,'2','chaine',0,'Tolérance de retard avant alerte (en jours) sur factures fournisseur impayées','2011-07-03 17:32:38'),(30,'MAIN_DELAY_NOT_ACTIVATED_SERVICES',1,'0','chaine',0,'Tolérance de retard avant alerte (en jours) sur services à activer','2011-07-03 17:32:38'),(31,'MAIN_DELAY_RUNNING_SERVICES',1,'0','chaine',0,'Tolérance de retard avant alerte (en jours) sur services expirés','2011-07-03 17:32:38'),(32,'MAIN_DELAY_MEMBERS',1,'31','chaine',0,'Tolérance de retard avant alerte (en jours) sur cotisations adhérent en retard','2011-07-03 17:32:38'),(33,'MAIN_DELAY_TRANSACTIONS_TO_CONCILIATE',1,'62','chaine',0,'Tolérance de retard avant alerte (en jours) sur rapprochements bancaires à faire','2011-07-03 17:32:38'),(34,'SOCIETE_NOLIST_COURRIER',0,'1','yesno',0,'Liste les fichiers du repertoire courrier','2011-07-03 17:32:38'),(35,'SOCIETE_CODECLIENT_ADDON',1,'mod_codeclient_leopard','yesno',0,'Module to control third parties codes','2011-07-03 17:32:38'),(36,'SOCIETE_CODECOMPTA_ADDON',1,'mod_codecompta_panicum','yesno',0,'Module to control third parties codes','2011-07-03 17:32:38'),(37,'MAILING_EMAIL_FROM',1,'dolibarr@domain.com','chaine',0,'EMail emmetteur pour les envois d emailings','2011-07-03 17:32:38'),(38,'FCKEDITOR_ENABLE_USER',1,'1','yesno',0,'Activation fckeditor sur notes utilisateurs','2011-07-03 17:32:38'),(39,'FCKEDITOR_ENABLE_SOCIETE',1,'1','yesno',0,'Activation fckeditor sur notes societe','2011-07-03 17:32:38'),(40,'FCKEDITOR_ENABLE_PRODUCTDESC',1,'1','yesno',0,'Activation fckeditor sur notes produits','2011-07-03 17:32:38'),(41,'FCKEDITOR_ENABLE_MEMBER',1,'1','yesno',0,'Activation fckeditor sur notes adherent','2011-07-03 17:32:38'),(42,'FCKEDITOR_ENABLE_MAILING',1,'1','yesno',0,'Activation fckeditor sur emailing','2011-07-03 17:32:38'),(43,'OSC_DB_HOST',1,'localhost','chaine',0,'Host for OSC database for OSCommerce module 1','2011-07-03 17:32:38'),(44,'DON_ADDON_MODEL',1,'html_cerfafr','chaine',0,'','2011-07-03 17:32:38'),(45,'PROPALE_ADDON',1,'mod_propale_marbre','chaine',0,'','2011-07-03 17:32:38'),(46,'PROPALE_ADDON_PDF',1,'azur','chaine',0,'','2011-07-03 17:32:38'),(47,'COMMANDE_ADDON',1,'mod_commande_marbre','chaine',0,'','2011-07-03 17:32:38'),(48,'COMMANDE_ADDON_PDF',1,'einstein','chaine',0,'','2011-07-03 17:32:38'),(49,'COMMANDE_SUPPLIER_ADDON',1,'mod_commande_fournisseur_muguet','chaine',0,'','2011-07-03 17:32:38'),(50,'COMMANDE_SUPPLIER_ADDON_PDF',1,'muscadet','chaine',0,'','2011-07-03 17:32:38'),(51,'INVOICE_SUPPLIER_ADDON_PDF',1,'canelle','chaine',0,'','2011-07-03 17:32:38'),(52,'EXPEDITION_ADDON',1,'enlevement','chaine',0,'','2011-07-03 17:32:38'),(53,'EXPEDITION_ADDON_PDF',1,'rouget','chaine',0,'','2011-07-03 17:32:38'),(54,'FICHEINTER_ADDON',1,'pacific','chaine',0,'','2011-07-03 17:32:38'),(55,'FICHEINTER_ADDON_PDF',1,'soleil','chaine',0,'','2011-07-03 17:32:38'),(56,'FACTURE_ADDON',1,'terre','chaine',0,'','2011-07-03 17:32:38'),(57,'FACTURE_ADDON_PDF',1,'crabe','chaine',0,'','2011-07-03 17:32:38'),(58,'PROPALE_VALIDITY_DURATION',1,'15','chaine',0,'Durée de validitée des propales','2011-07-03 17:32:38'),(59,'MAIN_AGENDA_ACTIONAUTO_COMPANY_CREATE',1,'1','chaine',0,'','2011-07-03 17:32:38'),(60,'MAIN_AGENDA_ACTIONAUTO_CONTRACT_VALIDATE',1,'1','chaine',0,'','2011-07-03 17:32:38'),(61,'MAIN_AGENDA_ACTIONAUTO_PROPAL_VALIDATE',1,'1','chaine',0,'','2011-07-03 17:32:38'),(62,'MAIN_AGENDA_ACTIONAUTO_PROPAL_SENTBYMAIL',1,'1','chaine',0,'','2011-07-03 17:32:38'),(63,'MAIN_AGENDA_ACTIONAUTO_ORDER_VALIDATE',1,'1','chaine',0,'','2011-07-03 17:32:38'),(64,'MAIN_AGENDA_ACTIONAUTO_ORDER_SENTBYMAIL',1,'1','chaine',0,'','2011-07-03 17:32:38'),(65,'MAIN_AGENDA_ACTIONAUTO_BILL_VALIDATE',1,'1','chaine',0,'','2011-07-03 17:32:38'),(66,'MAIN_AGENDA_ACTIONAUTO_BILL_PAYED',1,'1','chaine',0,'','2011-07-03 17:32:38'),(67,'MAIN_AGENDA_ACTIONAUTO_BILL_CANCEL',1,'1','chaine',0,'','2011-07-03 17:32:38'),(68,'MAIN_AGENDA_ACTIONAUTO_BILL_SENTBYMAIL',1,'1','chaine',0,'','2011-07-03 17:32:38'),(69,'MAIN_AGENDA_ACTIONAUTO_ORDER_SUPPLIER_VALIDATE',1,'1','chaine',0,'','2011-07-03 17:32:38'),(70,'MAIN_AGENDA_ACTIONAUTO_BILL_SUPPLIER_VALIDATE',1,'1','chaine',0,'','2011-07-03 17:32:38'),(71,'MAIN_MODULE_USER',0,'1',NULL,0,NULL,'2011-07-03 17:33:30'),(72,'MAIN_VERSION_LAST_INSTALL',0,'3.0.0','chaine',0,'Dolibarr version when install','2011-07-03 17:33:30');
1923 /*!40000 ALTER TABLE `llx_const` ENABLE KEYS */;
1924 UNLOCK TABLES;
1926 --
1927 -- Table structure for table `llx_contrat`
1928 --
1930 DROP TABLE IF EXISTS `llx_contrat`;
1931 /*!40101 SET @saved_cs_client = @@character_set_client */;
1932 /*!40101 SET character_set_client = utf8 */;
1933 CREATE TABLE `llx_contrat` (
1934 `rowid` int(11) NOT NULL AUTO_INCREMENT,
1935 `ref` varchar(30) DEFAULT NULL,
1936 `entity` int(11) NOT NULL DEFAULT '1',
1937 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
1938 `datec` datetime DEFAULT NULL,
1939 `date_contrat` datetime DEFAULT NULL,
1940 `statut` smallint(6) DEFAULT '0',
1941 `mise_en_service` datetime DEFAULT NULL,
1942 `fin_validite` datetime DEFAULT NULL,
1943 `date_cloture` datetime DEFAULT NULL,
1944 `fk_soc` int(11) NOT NULL,
1945 `fk_projet` int(11) DEFAULT NULL,
1946 `fk_commercial_signature` int(11) NOT NULL,
1947 `fk_commercial_suivi` int(11) NOT NULL,
1948 `fk_user_author` int(11) NOT NULL DEFAULT '0',
1949 `fk_user_mise_en_service` int(11) DEFAULT NULL,
1950 `fk_user_cloture` int(11) DEFAULT NULL,
1951 `note` text,
1952 `note_public` text,
1953 PRIMARY KEY (`rowid`),
1954 UNIQUE KEY `uk_contrat_ref` (`ref`,`entity`),
1955 KEY `idx_contrat_fk_soc` (`fk_soc`),
1956 KEY `idx_contrat_fk_user_author` (`fk_user_author`)
1957 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
1958 /*!40101 SET character_set_client = @saved_cs_client */;
1960 --
1961 -- Dumping data for table `llx_contrat`
1962 --
1964 LOCK TABLES `llx_contrat` WRITE;
1965 /*!40000 ALTER TABLE `llx_contrat` DISABLE KEYS */;
1966 /*!40000 ALTER TABLE `llx_contrat` ENABLE KEYS */;
1967 UNLOCK TABLES;
1969 --
1970 -- Table structure for table `llx_contratdet`
1971 --
1973 DROP TABLE IF EXISTS `llx_contratdet`;
1974 /*!40101 SET @saved_cs_client = @@character_set_client */;
1975 /*!40101 SET character_set_client = utf8 */;
1976 CREATE TABLE `llx_contratdet` (
1977 `rowid` int(11) NOT NULL AUTO_INCREMENT,
1978 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
1979 `fk_contrat` int(11) NOT NULL,
1980 `fk_product` int(11) DEFAULT NULL,
1981 `statut` smallint(6) DEFAULT '0',
1982 `label` text,
1983 `description` text,
1984 `fk_remise_except` int(11) DEFAULT NULL,
1985 `date_commande` datetime DEFAULT NULL,
1986 `date_ouverture_prevue` datetime DEFAULT NULL,
1987 `date_ouverture` datetime DEFAULT NULL,
1988 `date_fin_validite` datetime DEFAULT NULL,
1989 `date_cloture` datetime DEFAULT NULL,
1990 `tva_tx` double(6,3) DEFAULT '0.000',
1991 `localtax1_tx` double(6,3) DEFAULT '0.000',
1992 `localtax2_tx` double(6,3) DEFAULT '0.000',
1993 `qty` double NOT NULL,
1994 `remise_percent` double DEFAULT '0',
1995 `subprice` double(24,8) DEFAULT '0.00000000',
1996 `price_ht` double DEFAULT NULL,
1997 `remise` double DEFAULT '0',
1998 `total_ht` double(24,8) DEFAULT '0.00000000',
1999 `total_tva` double(24,8) DEFAULT '0.00000000',
2000 `total_localtax1` double(24,8) DEFAULT '0.00000000',
2001 `total_localtax2` double(24,8) DEFAULT '0.00000000',
2002 `total_ttc` double(24,8) DEFAULT '0.00000000',
2003 `info_bits` int(11) DEFAULT '0',
2004 `fk_user_author` int(11) NOT NULL DEFAULT '0',
2005 `fk_user_ouverture` int(11) DEFAULT NULL,
2006 `fk_user_cloture` int(11) DEFAULT NULL,
2007 `commentaire` text,
2008 PRIMARY KEY (`rowid`),
2009 KEY `idx_contratdet_fk_contrat` (`fk_contrat`),
2010 KEY `idx_contratdet_fk_product` (`fk_product`),
2011 KEY `idx_contratdet_date_ouverture_prevue` (`date_ouverture_prevue`),
2012 KEY `idx_contratdet_date_ouverture` (`date_ouverture`),
2013 KEY `idx_contratdet_date_fin_validite` (`date_fin_validite`)
2014 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2015 /*!40101 SET character_set_client = @saved_cs_client */;
2017 --
2018 -- Dumping data for table `llx_contratdet`
2019 --
2021 LOCK TABLES `llx_contratdet` WRITE;
2022 /*!40000 ALTER TABLE `llx_contratdet` DISABLE KEYS */;
2023 /*!40000 ALTER TABLE `llx_contratdet` ENABLE KEYS */;
2024 UNLOCK TABLES;
2026 --
2027 -- Table structure for table `llx_contratdet_log`
2028 --
2030 DROP TABLE IF EXISTS `llx_contratdet_log`;
2031 /*!40101 SET @saved_cs_client = @@character_set_client */;
2032 /*!40101 SET character_set_client = utf8 */;
2033 CREATE TABLE `llx_contratdet_log` (
2034 `rowid` int(11) NOT NULL AUTO_INCREMENT,
2035 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
2036 `fk_contratdet` int(11) NOT NULL,
2037 `date` datetime NOT NULL,
2038 `statut` smallint(6) NOT NULL,
2039 `fk_user_author` int(11) NOT NULL,
2040 `commentaire` text,
2041 PRIMARY KEY (`rowid`),
2042 KEY `idx_contratdet_log_fk_contratdet` (`fk_contratdet`),
2043 KEY `idx_contratdet_log_date` (`date`)
2044 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2045 /*!40101 SET character_set_client = @saved_cs_client */;
2047 --
2048 -- Dumping data for table `llx_contratdet_log`
2049 --
2051 LOCK TABLES `llx_contratdet_log` WRITE;
2052 /*!40000 ALTER TABLE `llx_contratdet_log` DISABLE KEYS */;
2053 /*!40000 ALTER TABLE `llx_contratdet_log` ENABLE KEYS */;
2054 UNLOCK TABLES;
2056 --
2057 -- Table structure for table `llx_cotisation`
2058 --
2060 DROP TABLE IF EXISTS `llx_cotisation`;
2061 /*!40101 SET @saved_cs_client = @@character_set_client */;
2062 /*!40101 SET character_set_client = utf8 */;
2063 CREATE TABLE `llx_cotisation` (
2064 `rowid` int(11) NOT NULL AUTO_INCREMENT,
2065 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
2066 `datec` datetime DEFAULT NULL,
2067 `fk_adherent` int(11) DEFAULT NULL,
2068 `dateadh` datetime DEFAULT NULL,
2069 `datef` date DEFAULT NULL,
2070 `cotisation` double DEFAULT NULL,
2071 `fk_bank` int(11) DEFAULT NULL,
2072 `note` text,
2073 PRIMARY KEY (`rowid`),
2074 UNIQUE KEY `uk_cotisation` (`fk_adherent`,`dateadh`)
2075 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2076 /*!40101 SET character_set_client = @saved_cs_client */;
2078 --
2079 -- Dumping data for table `llx_cotisation`
2080 --
2082 LOCK TABLES `llx_cotisation` WRITE;
2083 /*!40000 ALTER TABLE `llx_cotisation` DISABLE KEYS */;
2084 /*!40000 ALTER TABLE `llx_cotisation` ENABLE KEYS */;
2085 UNLOCK TABLES;
2087 --
2088 -- Table structure for table `llx_deplacement`
2089 --
2091 DROP TABLE IF EXISTS `llx_deplacement`;
2092 /*!40101 SET @saved_cs_client = @@character_set_client */;
2093 /*!40101 SET character_set_client = utf8 */;
2094 CREATE TABLE `llx_deplacement` (
2095 `rowid` int(11) NOT NULL AUTO_INCREMENT,
2096 `ref` varchar(30) DEFAULT NULL,
2097 `entity` int(11) NOT NULL DEFAULT '1',
2098 `datec` datetime NOT NULL,
2099 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
2100 `dated` datetime DEFAULT NULL,
2101 `fk_user` int(11) NOT NULL,
2102 `fk_user_author` int(11) DEFAULT NULL,
2103 `type` varchar(12) NOT NULL,
2104 `fk_statut` int(11) NOT NULL DEFAULT '1',
2105 `km` double DEFAULT NULL,
2106 `fk_soc` int(11) DEFAULT NULL,
2107 `fk_projet` int(11) DEFAULT '0',
2108 `note` text,
2109 `note_public` text,
2110 PRIMARY KEY (`rowid`)
2111 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2112 /*!40101 SET character_set_client = @saved_cs_client */;
2114 --
2115 -- Dumping data for table `llx_deplacement`
2116 --
2118 LOCK TABLES `llx_deplacement` WRITE;
2119 /*!40000 ALTER TABLE `llx_deplacement` DISABLE KEYS */;
2120 /*!40000 ALTER TABLE `llx_deplacement` ENABLE KEYS */;
2121 UNLOCK TABLES;
2123 --
2124 -- Table structure for table `llx_document`
2125 --
2127 DROP TABLE IF EXISTS `llx_document`;
2128 /*!40101 SET @saved_cs_client = @@character_set_client */;
2129 /*!40101 SET character_set_client = utf8 */;
2130 CREATE TABLE `llx_document` (
2131 `rowid` int(11) NOT NULL AUTO_INCREMENT,
2132 `name` varchar(255) NOT NULL,
2133 `file_name` varchar(255) NOT NULL,
2134 `file_extension` varchar(5) NOT NULL,
2135 `date_generation` datetime DEFAULT NULL,
2136 `fk_owner` int(11) DEFAULT NULL,
2137 `fk_group` int(11) DEFAULT NULL,
2138 `permissions` char(9) DEFAULT 'rw-rw-rw',
2139 PRIMARY KEY (`rowid`)
2140 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2141 /*!40101 SET character_set_client = @saved_cs_client */;
2143 --
2144 -- Dumping data for table `llx_document`
2145 --
2147 LOCK TABLES `llx_document` WRITE;
2148 /*!40000 ALTER TABLE `llx_document` DISABLE KEYS */;
2149 /*!40000 ALTER TABLE `llx_document` ENABLE KEYS */;
2150 UNLOCK TABLES;
2152 --
2153 -- Table structure for table `llx_document_generator`
2154 --
2156 DROP TABLE IF EXISTS `llx_document_generator`;
2157 /*!40101 SET @saved_cs_client = @@character_set_client */;
2158 /*!40101 SET character_set_client = utf8 */;
2159 CREATE TABLE `llx_document_generator` (
2160 `rowid` int(10) unsigned NOT NULL,
2161 `name` varchar(255) NOT NULL,
2162 `classfile` varchar(255) NOT NULL,
2163 `class` varchar(255) NOT NULL,
2164 PRIMARY KEY (`rowid`)
2165 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2166 /*!40101 SET character_set_client = @saved_cs_client */;
2168 --
2169 -- Dumping data for table `llx_document_generator`
2170 --
2172 LOCK TABLES `llx_document_generator` WRITE;
2173 /*!40000 ALTER TABLE `llx_document_generator` DISABLE KEYS */;
2174 /*!40000 ALTER TABLE `llx_document_generator` ENABLE KEYS */;
2175 UNLOCK TABLES;
2177 --
2178 -- Table structure for table `llx_document_model`
2179 --
2181 DROP TABLE IF EXISTS `llx_document_model`;
2182 /*!40101 SET @saved_cs_client = @@character_set_client */;
2183 /*!40101 SET character_set_client = utf8 */;
2184 CREATE TABLE `llx_document_model` (
2185 `rowid` int(11) NOT NULL AUTO_INCREMENT,
2186 `nom` varchar(50) DEFAULT NULL,
2187 `entity` int(11) NOT NULL DEFAULT '1',
2188 `type` varchar(20) NOT NULL,
2189 `libelle` varchar(255) DEFAULT NULL,
2190 `description` text,
2191 PRIMARY KEY (`rowid`),
2192 UNIQUE KEY `uk_document_model` (`nom`,`type`,`entity`)
2193 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2194 /*!40101 SET character_set_client = @saved_cs_client */;
2196 --
2197 -- Dumping data for table `llx_document_model`
2198 --
2200 LOCK TABLES `llx_document_model` WRITE;
2201 /*!40000 ALTER TABLE `llx_document_model` DISABLE KEYS */;
2202 /*!40000 ALTER TABLE `llx_document_model` ENABLE KEYS */;
2203 UNLOCK TABLES;
2205 --
2206 -- Table structure for table `llx_dolibarr_modules`
2207 --
2209 DROP TABLE IF EXISTS `llx_dolibarr_modules`;
2210 /*!40101 SET @saved_cs_client = @@character_set_client */;
2211 /*!40101 SET character_set_client = utf8 */;
2212 CREATE TABLE `llx_dolibarr_modules` (
2213 `numero` int(11) NOT NULL DEFAULT '0',
2214 `entity` int(11) NOT NULL DEFAULT '1',
2215 `active` tinyint(4) NOT NULL DEFAULT '0',
2216 `active_date` datetime NOT NULL,
2217 `active_version` varchar(25) NOT NULL,
2218 PRIMARY KEY (`numero`,`entity`)
2219 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2220 /*!40101 SET character_set_client = @saved_cs_client */;
2222 --
2223 -- Dumping data for table `llx_dolibarr_modules`
2224 --
2226 LOCK TABLES `llx_dolibarr_modules` WRITE;
2227 /*!40000 ALTER TABLE `llx_dolibarr_modules` DISABLE KEYS */;
2228 INSERT INTO `llx_dolibarr_modules` VALUES (0,1,1,'2011-07-03 17:33:30','dolibarr');
2229 /*!40000 ALTER TABLE `llx_dolibarr_modules` ENABLE KEYS */;
2230 UNLOCK TABLES;
2232 --
2233 -- Table structure for table `llx_domain`
2234 --
2236 DROP TABLE IF EXISTS `llx_domain`;
2237 /*!40101 SET @saved_cs_client = @@character_set_client */;
2238 /*!40101 SET character_set_client = utf8 */;
2239 CREATE TABLE `llx_domain` (
2240 `rowid` int(11) NOT NULL AUTO_INCREMENT,
2241 `datec` datetime DEFAULT NULL,
2242 `label` varchar(255) DEFAULT NULL,
2243 `note` text,
2244 PRIMARY KEY (`rowid`)
2245 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2246 /*!40101 SET character_set_client = @saved_cs_client */;
2248 --
2249 -- Dumping data for table `llx_domain`
2250 --
2252 LOCK TABLES `llx_domain` WRITE;
2253 /*!40000 ALTER TABLE `llx_domain` DISABLE KEYS */;
2254 /*!40000 ALTER TABLE `llx_domain` ENABLE KEYS */;
2255 UNLOCK TABLES;
2257 --
2258 -- Table structure for table `llx_don`
2259 --
2261 DROP TABLE IF EXISTS `llx_don`;
2262 /*!40101 SET @saved_cs_client = @@character_set_client */;
2263 /*!40101 SET character_set_client = utf8 */;
2264 CREATE TABLE `llx_don` (
2265 `rowid` int(11) NOT NULL AUTO_INCREMENT,
2266 `ref` varchar(30) DEFAULT NULL,
2267 `entity` int(11) NOT NULL DEFAULT '1',
2268 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
2269 `fk_statut` smallint(6) NOT NULL DEFAULT '0',
2270 `datec` datetime DEFAULT NULL,
2271 `datedon` datetime DEFAULT NULL,
2272 `amount` double DEFAULT '0',
2273 `fk_paiement` int(11) DEFAULT NULL,
2274 `prenom` varchar(50) DEFAULT NULL,
2275 `nom` varchar(50) DEFAULT NULL,
2276 `societe` varchar(50) DEFAULT NULL,
2277 `adresse` text,
2278 `cp` varchar(30) DEFAULT NULL,
2279 `ville` varchar(50) DEFAULT NULL,
2280 `pays` varchar(50) DEFAULT NULL,
2281 `email` varchar(255) DEFAULT NULL,
2282 `public` smallint(6) NOT NULL DEFAULT '1',
2283 `fk_don_projet` int(11) DEFAULT NULL,
2284 `fk_user_author` int(11) NOT NULL,
2285 `fk_user_valid` int(11) DEFAULT NULL,
2286 `note` text,
2287 `note_public` text,
2288 `model_pdf` varchar(50) DEFAULT NULL,
2289 `import_key` varchar(14) DEFAULT NULL,
2290 PRIMARY KEY (`rowid`)
2291 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2292 /*!40101 SET character_set_client = @saved_cs_client */;
2294 --
2295 -- Dumping data for table `llx_don`
2296 --
2298 LOCK TABLES `llx_don` WRITE;
2299 /*!40000 ALTER TABLE `llx_don` DISABLE KEYS */;
2300 /*!40000 ALTER TABLE `llx_don` ENABLE KEYS */;
2301 UNLOCK TABLES;
2303 --
2304 -- Table structure for table `llx_ecm_directories`
2305 --
2307 DROP TABLE IF EXISTS `llx_ecm_directories`;
2308 /*!40101 SET @saved_cs_client = @@character_set_client */;
2309 /*!40101 SET character_set_client = utf8 */;
2310 CREATE TABLE `llx_ecm_directories` (
2311 `rowid` int(11) NOT NULL AUTO_INCREMENT,
2312 `label` varchar(32) NOT NULL,
2313 `entity` int(11) NOT NULL DEFAULT '1',
2314 `fk_parent` int(11) DEFAULT NULL,
2315 `description` varchar(255) NOT NULL,
2316 `cachenbofdoc` int(11) NOT NULL DEFAULT '0',
2317 `date_c` datetime DEFAULT NULL,
2318 `date_m` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
2319 `fk_user_c` int(11) DEFAULT NULL,
2320 `fk_user_m` int(11) DEFAULT NULL,
2321 PRIMARY KEY (`rowid`),
2322 UNIQUE KEY `idx_ecm_directories` (`label`,`fk_parent`,`entity`)
2323 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2324 /*!40101 SET character_set_client = @saved_cs_client */;
2326 --
2327 -- Dumping data for table `llx_ecm_directories`
2328 --
2330 LOCK TABLES `llx_ecm_directories` WRITE;
2331 /*!40000 ALTER TABLE `llx_ecm_directories` DISABLE KEYS */;
2332 /*!40000 ALTER TABLE `llx_ecm_directories` ENABLE KEYS */;
2333 UNLOCK TABLES;
2335 --
2336 -- Table structure for table `llx_ecm_documents`
2337 --
2339 DROP TABLE IF EXISTS `llx_ecm_documents`;
2340 /*!40101 SET @saved_cs_client = @@character_set_client */;
2341 /*!40101 SET character_set_client = utf8 */;
2342 CREATE TABLE `llx_ecm_documents` (
2343 `rowid` int(11) NOT NULL AUTO_INCREMENT,
2344 `ref` varchar(16) NOT NULL,
2345 `entity` int(11) NOT NULL DEFAULT '1',
2346 `filename` varchar(255) NOT NULL,
2347 `filesize` int(11) NOT NULL,
2348 `filemime` varchar(32) NOT NULL,
2349 `fullpath_dol` varchar(255) NOT NULL,
2350 `fullpath_orig` varchar(255) NOT NULL,
2351 `description` text,
2352 `manualkeyword` text,
2353 `fk_create` int(11) NOT NULL,
2354 `fk_update` int(11) DEFAULT NULL,
2355 `date_c` datetime NOT NULL,
2356 `date_u` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
2357 `fk_directory` int(11) DEFAULT NULL,
2358 `fk_status` smallint(6) DEFAULT '0',
2359 `private` smallint(6) DEFAULT '0',
2360 `crc` varchar(32) NOT NULL DEFAULT '',
2361 `cryptkey` varchar(50) NOT NULL DEFAULT '',
2362 `cipher` varchar(50) NOT NULL DEFAULT 'twofish',
2363 PRIMARY KEY (`rowid`),
2364 UNIQUE KEY `idx_ecm_documents` (`fullpath_dol`)
2365 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2366 /*!40101 SET character_set_client = @saved_cs_client */;
2368 --
2369 -- Dumping data for table `llx_ecm_documents`
2370 --
2372 LOCK TABLES `llx_ecm_documents` WRITE;
2373 /*!40000 ALTER TABLE `llx_ecm_documents` DISABLE KEYS */;
2374 /*!40000 ALTER TABLE `llx_ecm_documents` ENABLE KEYS */;
2375 UNLOCK TABLES;
2377 --
2378 -- Table structure for table `llx_element_contact`
2379 --
2381 DROP TABLE IF EXISTS `llx_element_contact`;
2382 /*!40101 SET @saved_cs_client = @@character_set_client */;
2383 /*!40101 SET character_set_client = utf8 */;
2384 CREATE TABLE `llx_element_contact` (
2385 `rowid` int(11) NOT NULL AUTO_INCREMENT,
2386 `datecreate` datetime DEFAULT NULL,
2387 `statut` smallint(6) DEFAULT '5',
2388 `element_id` int(11) NOT NULL,
2389 `fk_c_type_contact` int(11) NOT NULL,
2390 `fk_socpeople` int(11) NOT NULL,
2391 PRIMARY KEY (`rowid`),
2392 UNIQUE KEY `idx_element_contact_idx1` (`element_id`,`fk_c_type_contact`,`fk_socpeople`),
2393 KEY `fk_element_contact_fk_c_type_contact` (`fk_c_type_contact`),
2394 KEY `idx_element_contact_fk_socpeople` (`fk_socpeople`)
2395 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2396 /*!40101 SET character_set_client = @saved_cs_client */;
2398 --
2399 -- Dumping data for table `llx_element_contact`
2400 --
2402 LOCK TABLES `llx_element_contact` WRITE;
2403 /*!40000 ALTER TABLE `llx_element_contact` DISABLE KEYS */;
2404 /*!40000 ALTER TABLE `llx_element_contact` ENABLE KEYS */;
2405 UNLOCK TABLES;
2407 --
2408 -- Table structure for table `llx_element_element`
2409 --
2411 DROP TABLE IF EXISTS `llx_element_element`;
2412 /*!40101 SET @saved_cs_client = @@character_set_client */;
2413 /*!40101 SET character_set_client = utf8 */;
2414 CREATE TABLE `llx_element_element` (
2415 `rowid` int(11) NOT NULL AUTO_INCREMENT,
2416 `fk_source` int(11) NOT NULL,
2417 `sourcetype` varchar(16) NOT NULL,
2418 `fk_target` int(11) NOT NULL,
2419 `targettype` varchar(16) NOT NULL,
2420 PRIMARY KEY (`rowid`),
2421 UNIQUE KEY `idx_element_element_idx1` (`fk_source`,`sourcetype`,`fk_target`,`targettype`),
2422 KEY `idx_element_element_fk_target` (`fk_target`)
2423 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2424 /*!40101 SET character_set_client = @saved_cs_client */;
2426 --
2427 -- Dumping data for table `llx_element_element`
2428 --
2430 LOCK TABLES `llx_element_element` WRITE;
2431 /*!40000 ALTER TABLE `llx_element_element` DISABLE KEYS */;
2432 /*!40000 ALTER TABLE `llx_element_element` ENABLE KEYS */;
2433 UNLOCK TABLES;
2435 --
2436 -- Table structure for table `llx_element_rang`
2437 --
2439 DROP TABLE IF EXISTS `llx_element_rang`;
2440 /*!40101 SET @saved_cs_client = @@character_set_client */;
2441 /*!40101 SET character_set_client = utf8 */;
2442 CREATE TABLE `llx_element_rang` (
2443 `rowid` int(11) NOT NULL AUTO_INCREMENT,
2444 `fk_parent` int(11) NOT NULL,
2445 `parenttype` varchar(16) NOT NULL,
2446 `fk_child` int(11) NOT NULL,
2447 `childtype` varchar(16) NOT NULL,
2448 `rang` int(11) DEFAULT '0',
2449 PRIMARY KEY (`rowid`),
2450 UNIQUE KEY `idx_element_rang_idx1` (`fk_parent`,`parenttype`,`fk_child`,`childtype`),
2451 KEY `idx_element_rang_fk_parent` (`fk_parent`)
2452 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2453 /*!40101 SET character_set_client = @saved_cs_client */;
2455 --
2456 -- Dumping data for table `llx_element_rang`
2457 --
2459 LOCK TABLES `llx_element_rang` WRITE;
2460 /*!40000 ALTER TABLE `llx_element_rang` DISABLE KEYS */;
2461 /*!40000 ALTER TABLE `llx_element_rang` ENABLE KEYS */;
2462 UNLOCK TABLES;
2464 --
2465 -- Table structure for table `llx_entrepot`
2466 --
2468 DROP TABLE IF EXISTS `llx_entrepot`;
2469 /*!40101 SET @saved_cs_client = @@character_set_client */;
2470 /*!40101 SET character_set_client = utf8 */;
2471 CREATE TABLE `llx_entrepot` (
2472 `rowid` int(11) NOT NULL AUTO_INCREMENT,
2473 `datec` datetime DEFAULT NULL,
2474 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
2475 `label` varchar(255) NOT NULL,
2476 `entity` int(11) NOT NULL DEFAULT '1',
2477 `description` text,
2478 `lieu` varchar(64) DEFAULT NULL,
2479 `address` varchar(255) DEFAULT NULL,
2480 `cp` varchar(10) DEFAULT NULL,
2481 `ville` varchar(50) DEFAULT NULL,
2482 `fk_departement` int(11) DEFAULT NULL,
2483 `fk_pays` int(11) DEFAULT '0',
2484 `statut` tinyint(4) DEFAULT '1',
2485 `valo_pmp` float(12,4) DEFAULT NULL,
2486 `fk_user_author` int(11) DEFAULT NULL,
2487 PRIMARY KEY (`rowid`),
2488 UNIQUE KEY `uk_entrepot_label` (`label`,`entity`)
2489 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2490 /*!40101 SET character_set_client = @saved_cs_client */;
2492 --
2493 -- Dumping data for table `llx_entrepot`
2494 --
2496 LOCK TABLES `llx_entrepot` WRITE;
2497 /*!40000 ALTER TABLE `llx_entrepot` DISABLE KEYS */;
2498 /*!40000 ALTER TABLE `llx_entrepot` ENABLE KEYS */;
2499 UNLOCK TABLES;
2501 --
2502 -- Table structure for table `llx_events`
2503 --
2505 DROP TABLE IF EXISTS `llx_events`;
2506 /*!40101 SET @saved_cs_client = @@character_set_client */;
2507 /*!40101 SET character_set_client = utf8 */;
2508 CREATE TABLE `llx_events` (
2509 `rowid` int(11) NOT NULL AUTO_INCREMENT,
2510 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
2511 `type` varchar(32) NOT NULL,
2512 `entity` int(11) NOT NULL DEFAULT '1',
2513 `dateevent` datetime DEFAULT NULL,
2514 `fk_user` int(11) DEFAULT NULL,
2515 `description` varchar(250) NOT NULL,
2516 `ip` varchar(32) NOT NULL,
2517 `user_agent` varchar(255) DEFAULT NULL,
2518 `fk_object` int(11) DEFAULT NULL,
2519 PRIMARY KEY (`rowid`),
2520 KEY `idx_events_dateevent` (`dateevent`)
2521 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2522 /*!40101 SET character_set_client = @saved_cs_client */;
2524 --
2525 -- Dumping data for table `llx_events`
2526 --
2528 LOCK TABLES `llx_events` WRITE;
2529 /*!40000 ALTER TABLE `llx_events` DISABLE KEYS */;
2530 /*!40000 ALTER TABLE `llx_events` ENABLE KEYS */;
2531 UNLOCK TABLES;
2533 --
2534 -- Table structure for table `llx_expedition`
2535 --
2537 DROP TABLE IF EXISTS `llx_expedition`;
2538 /*!40101 SET @saved_cs_client = @@character_set_client */;
2539 /*!40101 SET character_set_client = utf8 */;
2540 CREATE TABLE `llx_expedition` (
2541 `rowid` int(11) NOT NULL AUTO_INCREMENT,
2542 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
2543 `ref` varchar(30) NOT NULL,
2544 `entity` int(11) NOT NULL DEFAULT '1',
2545 `ref_customer` varchar(30) DEFAULT NULL,
2546 `fk_soc` int(11) NOT NULL,
2547 `date_creation` datetime DEFAULT NULL,
2548 `fk_user_author` int(11) DEFAULT NULL,
2549 `date_valid` datetime DEFAULT NULL,
2550 `fk_user_valid` int(11) DEFAULT NULL,
2551 `date_expedition` datetime DEFAULT NULL,
2552 `date_delivery` datetime DEFAULT NULL,
2553 `fk_address` int(11) DEFAULT NULL,
2554 `fk_expedition_methode` int(11) DEFAULT NULL,
2555 `tracking_number` varchar(50) DEFAULT NULL,
2556 `fk_statut` smallint(6) DEFAULT '0',
2557 `height` int(11) DEFAULT NULL,
2558 `width` int(11) DEFAULT NULL,
2559 `size_units` int(11) DEFAULT NULL,
2560 `size` int(11) DEFAULT NULL,
2561 `weight_units` int(11) DEFAULT NULL,
2562 `weight` int(11) DEFAULT NULL,
2563 `note` text,
2564 `model_pdf` varchar(50) DEFAULT NULL,
2565 PRIMARY KEY (`rowid`),
2566 UNIQUE KEY `idx_expedition_uk_ref` (`ref`,`entity`),
2567 KEY `idx_expedition_fk_soc` (`fk_soc`),
2568 KEY `idx_expedition_fk_user_author` (`fk_user_author`),
2569 KEY `idx_expedition_fk_user_valid` (`fk_user_valid`),
2570 KEY `idx_expedition_fk_expedition_methode` (`fk_expedition_methode`)
2571 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2572 /*!40101 SET character_set_client = @saved_cs_client */;
2574 --
2575 -- Dumping data for table `llx_expedition`
2576 --
2578 LOCK TABLES `llx_expedition` WRITE;
2579 /*!40000 ALTER TABLE `llx_expedition` DISABLE KEYS */;
2580 /*!40000 ALTER TABLE `llx_expedition` ENABLE KEYS */;
2581 UNLOCK TABLES;
2583 --
2584 -- Table structure for table `llx_expeditiondet`
2585 --
2587 DROP TABLE IF EXISTS `llx_expeditiondet`;
2588 /*!40101 SET @saved_cs_client = @@character_set_client */;
2589 /*!40101 SET character_set_client = utf8 */;
2590 CREATE TABLE `llx_expeditiondet` (
2591 `rowid` int(11) NOT NULL AUTO_INCREMENT,
2592 `fk_expedition` int(11) NOT NULL,
2593 `fk_origin_line` int(11) DEFAULT NULL,
2594 `fk_entrepot` int(11) DEFAULT NULL,
2595 `qty` double DEFAULT NULL,
2596 `rang` int(11) DEFAULT '0',
2597 PRIMARY KEY (`rowid`),
2598 KEY `idx_expeditiondet_fk_expedition` (`fk_expedition`)
2599 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2600 /*!40101 SET character_set_client = @saved_cs_client */;
2602 --
2603 -- Dumping data for table `llx_expeditiondet`
2604 --
2606 LOCK TABLES `llx_expeditiondet` WRITE;
2607 /*!40000 ALTER TABLE `llx_expeditiondet` DISABLE KEYS */;
2608 /*!40000 ALTER TABLE `llx_expeditiondet` ENABLE KEYS */;
2609 UNLOCK TABLES;
2611 --
2612 -- Table structure for table `llx_export_compta`
2613 --
2615 DROP TABLE IF EXISTS `llx_export_compta`;
2616 /*!40101 SET @saved_cs_client = @@character_set_client */;
2617 /*!40101 SET character_set_client = utf8 */;
2618 CREATE TABLE `llx_export_compta` (
2619 `rowid` int(11) NOT NULL AUTO_INCREMENT,
2620 `ref` varchar(12) NOT NULL,
2621 `date_export` datetime NOT NULL,
2622 `fk_user` int(11) NOT NULL,
2623 `note` text,
2624 PRIMARY KEY (`rowid`)
2625 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2626 /*!40101 SET character_set_client = @saved_cs_client */;
2628 --
2629 -- Dumping data for table `llx_export_compta`
2630 --
2632 LOCK TABLES `llx_export_compta` WRITE;
2633 /*!40000 ALTER TABLE `llx_export_compta` DISABLE KEYS */;
2634 /*!40000 ALTER TABLE `llx_export_compta` ENABLE KEYS */;
2635 UNLOCK TABLES;
2637 --
2638 -- Table structure for table `llx_export_model`
2639 --
2641 DROP TABLE IF EXISTS `llx_export_model`;
2642 /*!40101 SET @saved_cs_client = @@character_set_client */;
2643 /*!40101 SET character_set_client = utf8 */;
2644 CREATE TABLE `llx_export_model` (
2645 `rowid` int(11) NOT NULL AUTO_INCREMENT,
2646 `fk_user` int(11) NOT NULL DEFAULT '0',
2647 `label` varchar(50) NOT NULL,
2648 `type` varchar(20) NOT NULL,
2649 `field` text NOT NULL,
2650 PRIMARY KEY (`rowid`),
2651 UNIQUE KEY `uk_export_model` (`label`,`type`)
2652 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2653 /*!40101 SET character_set_client = @saved_cs_client */;
2655 --
2656 -- Dumping data for table `llx_export_model`
2657 --
2659 LOCK TABLES `llx_export_model` WRITE;
2660 /*!40000 ALTER TABLE `llx_export_model` DISABLE KEYS */;
2661 /*!40000 ALTER TABLE `llx_export_model` ENABLE KEYS */;
2662 UNLOCK TABLES;
2664 --
2665 -- Table structure for table `llx_extra_fields`
2666 --
2668 DROP TABLE IF EXISTS `llx_extra_fields`;
2669 /*!40101 SET @saved_cs_client = @@character_set_client */;
2670 /*!40101 SET character_set_client = utf8 */;
2671 CREATE TABLE `llx_extra_fields` (
2672 `rowid` int(11) NOT NULL AUTO_INCREMENT,
2673 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
2674 `entity` int(11) NOT NULL DEFAULT '1',
2675 `object` varchar(64) NOT NULL,
2676 `name` varchar(64) NOT NULL,
2677 `label` varchar(64) NOT NULL,
2678 `format` varchar(8) NOT NULL,
2679 `fieldsize` int(11) DEFAULT NULL,
2680 `maxlength` int(11) DEFAULT NULL,
2681 `options` varchar(255) DEFAULT NULL,
2682 `rank` int(11) DEFAULT NULL,
2683 `assign` int(11) DEFAULT NULL,
2684 PRIMARY KEY (`rowid`),
2685 UNIQUE KEY `idx_extra_fields_name` (`object`,`entity`,`name`)
2686 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2687 /*!40101 SET character_set_client = @saved_cs_client */;
2689 --
2690 -- Dumping data for table `llx_extra_fields`
2691 --
2693 LOCK TABLES `llx_extra_fields` WRITE;
2694 /*!40000 ALTER TABLE `llx_extra_fields` DISABLE KEYS */;
2695 /*!40000 ALTER TABLE `llx_extra_fields` ENABLE KEYS */;
2696 UNLOCK TABLES;
2698 --
2699 -- Table structure for table `llx_extra_fields_options`
2700 --
2702 DROP TABLE IF EXISTS `llx_extra_fields_options`;
2703 /*!40101 SET @saved_cs_client = @@character_set_client */;
2704 /*!40101 SET character_set_client = utf8 */;
2705 CREATE TABLE `llx_extra_fields_options` (
2706 `rowid` int(11) NOT NULL AUTO_INCREMENT,
2707 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
2708 `fk_extra_fields` int(11) NOT NULL,
2709 `value` varchar(255) NOT NULL,
2710 `rank` int(11) DEFAULT NULL,
2711 PRIMARY KEY (`rowid`),
2712 KEY `idx_extra_fields_options_fk_extra_fields` (`fk_extra_fields`)
2713 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2714 /*!40101 SET character_set_client = @saved_cs_client */;
2716 --
2717 -- Dumping data for table `llx_extra_fields_options`
2718 --
2720 LOCK TABLES `llx_extra_fields_options` WRITE;
2721 /*!40000 ALTER TABLE `llx_extra_fields_options` DISABLE KEYS */;
2722 /*!40000 ALTER TABLE `llx_extra_fields_options` ENABLE KEYS */;
2723 UNLOCK TABLES;
2725 --
2726 -- Table structure for table `llx_extra_fields_values`
2727 --
2729 DROP TABLE IF EXISTS `llx_extra_fields_values`;
2730 /*!40101 SET @saved_cs_client = @@character_set_client */;
2731 /*!40101 SET character_set_client = utf8 */;
2732 CREATE TABLE `llx_extra_fields_values` (
2733 `rowid` int(11) NOT NULL AUTO_INCREMENT,
2734 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
2735 `entity` int(11) NOT NULL DEFAULT '1',
2736 `datec` datetime DEFAULT NULL,
2737 `datem` datetime DEFAULT NULL,
2738 `fk_object` int(11) NOT NULL,
2739 `fk_extra_fields` int(11) NOT NULL,
2740 `value` varchar(255) DEFAULT NULL,
2741 `fk_user_create` int(11) DEFAULT NULL,
2742 `fk_user_modif` int(11) DEFAULT NULL,
2743 PRIMARY KEY (`rowid`),
2744 KEY `idx_extra_fields_values_fk_extra_fields` (`fk_extra_fields`,`entity`)
2745 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2746 /*!40101 SET character_set_client = @saved_cs_client */;
2748 --
2749 -- Dumping data for table `llx_extra_fields_values`
2750 --
2752 LOCK TABLES `llx_extra_fields_values` WRITE;
2753 /*!40000 ALTER TABLE `llx_extra_fields_values` DISABLE KEYS */;
2754 /*!40000 ALTER TABLE `llx_extra_fields_values` ENABLE KEYS */;
2755 UNLOCK TABLES;
2757 --
2758 -- Table structure for table `llx_facture`
2759 --
2761 DROP TABLE IF EXISTS `llx_facture`;
2762 /*!40101 SET @saved_cs_client = @@character_set_client */;
2763 /*!40101 SET character_set_client = utf8 */;
2764 CREATE TABLE `llx_facture` (
2765 `rowid` int(11) NOT NULL AUTO_INCREMENT,
2766 `facnumber` varchar(30) NOT NULL,
2767 `entity` int(11) NOT NULL DEFAULT '1',
2768 `ref_ext` varchar(30) DEFAULT NULL,
2769 `ref_client` varchar(30) DEFAULT NULL,
2770 `type` smallint(6) NOT NULL DEFAULT '0',
2771 `increment` varchar(10) DEFAULT NULL,
2772 `fk_soc` int(11) NOT NULL,
2773 `datec` datetime DEFAULT NULL,
2774 `datef` date DEFAULT NULL,
2775 `date_valid` date DEFAULT NULL,
2776 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
2777 `paye` smallint(6) NOT NULL DEFAULT '0',
2778 `amount` double(24,8) NOT NULL DEFAULT '0.00000000',
2779 `remise_percent` double DEFAULT '0',
2780 `remise_absolue` double DEFAULT '0',
2781 `remise` double DEFAULT '0',
2782 `close_code` varchar(16) DEFAULT NULL,
2783 `close_note` varchar(128) DEFAULT NULL,
2784 `tva` double(24,8) DEFAULT '0.00000000',
2785 `localtax1` double(24,8) DEFAULT '0.00000000',
2786 `localtax2` double(24,8) DEFAULT '0.00000000',
2787 `total` double(24,8) DEFAULT '0.00000000',
2788 `total_ttc` double(24,8) DEFAULT '0.00000000',
2789 `fk_statut` smallint(6) NOT NULL DEFAULT '0',
2790 `fk_user_author` int(11) DEFAULT NULL,
2791 `fk_user_valid` int(11) DEFAULT NULL,
2792 `fk_facture_source` int(11) DEFAULT NULL,
2793 `fk_projet` int(11) DEFAULT NULL,
2794 `fk_cond_reglement` int(11) NOT NULL DEFAULT '1',
2795 `fk_mode_reglement` int(11) DEFAULT NULL,
2796 `date_lim_reglement` date DEFAULT NULL,
2797 `note` text,
2798 `note_public` text,
2799 `model_pdf` varchar(50) DEFAULT NULL,
2800 `import_key` varchar(14) DEFAULT NULL,
2801 PRIMARY KEY (`rowid`),
2802 UNIQUE KEY `idx_facture_uk_facnumber` (`facnumber`,`entity`),
2803 KEY `idx_facture_fk_soc` (`fk_soc`),
2804 KEY `idx_facture_fk_user_author` (`fk_user_author`),
2805 KEY `idx_facture_fk_user_valid` (`fk_user_valid`),
2806 KEY `idx_facture_fk_facture_source` (`fk_facture_source`),
2807 KEY `idx_facture_fk_projet` (`fk_projet`)
2808 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2809 /*!40101 SET character_set_client = @saved_cs_client */;
2811 --
2812 -- Dumping data for table `llx_facture`
2813 --
2815 LOCK TABLES `llx_facture` WRITE;
2816 /*!40000 ALTER TABLE `llx_facture` DISABLE KEYS */;
2817 /*!40000 ALTER TABLE `llx_facture` ENABLE KEYS */;
2818 UNLOCK TABLES;
2820 --
2821 -- Table structure for table `llx_facture_fourn`
2822 --
2824 DROP TABLE IF EXISTS `llx_facture_fourn`;
2825 /*!40101 SET @saved_cs_client = @@character_set_client */;
2826 /*!40101 SET character_set_client = utf8 */;
2827 CREATE TABLE `llx_facture_fourn` (
2828 `rowid` int(11) NOT NULL AUTO_INCREMENT,
2829 `facnumber` varchar(50) NOT NULL,
2830 `entity` int(11) NOT NULL DEFAULT '1',
2831 `type` smallint(6) NOT NULL DEFAULT '0',
2832 `fk_soc` int(11) NOT NULL,
2833 `datec` datetime DEFAULT NULL,
2834 `datef` date DEFAULT NULL,
2835 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
2836 `libelle` varchar(255) DEFAULT NULL,
2837 `paye` smallint(6) NOT NULL DEFAULT '0',
2838 `amount` double(24,8) NOT NULL DEFAULT '0.00000000',
2839 `remise` double(24,8) DEFAULT '0.00000000',
2840 `close_code` varchar(16) DEFAULT NULL,
2841 `close_note` varchar(128) DEFAULT NULL,
2842 `tva` double(24,8) DEFAULT '0.00000000',
2843 `localtax1` double(24,8) DEFAULT '0.00000000',
2844 `localtax2` double(24,8) DEFAULT '0.00000000',
2845 `total` double(24,8) DEFAULT '0.00000000',
2846 `total_ht` double(24,8) DEFAULT '0.00000000',
2847 `total_tva` double(24,8) DEFAULT '0.00000000',
2848 `total_ttc` double(24,8) DEFAULT '0.00000000',
2849 `fk_statut` smallint(6) NOT NULL DEFAULT '0',
2850 `fk_user_author` int(11) DEFAULT NULL,
2851 `fk_user_valid` int(11) DEFAULT NULL,
2852 `fk_facture_source` int(11) DEFAULT NULL,
2853 `fk_projet` int(11) DEFAULT NULL,
2854 `fk_cond_reglement` int(11) NOT NULL DEFAULT '1',
2855 `date_lim_reglement` date DEFAULT NULL,
2856 `note` text,
2857 `note_public` text,
2858 `model_pdf` varchar(50) DEFAULT NULL,
2859 `import_key` varchar(14) DEFAULT NULL,
2860 PRIMARY KEY (`rowid`),
2861 UNIQUE KEY `uk_facture_fourn_ref` (`facnumber`,`fk_soc`,`entity`),
2862 KEY `idx_facture_fourn_date_lim_reglement` (`date_lim_reglement`),
2863 KEY `idx_facture_fourn_fk_soc` (`fk_soc`),
2864 KEY `idx_facture_fourn_fk_user_author` (`fk_user_author`),
2865 KEY `idx_facture_fourn_fk_user_valid` (`fk_user_valid`),
2866 KEY `idx_facture_fourn_fk_projet` (`fk_projet`)
2867 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2868 /*!40101 SET character_set_client = @saved_cs_client */;
2870 --
2871 -- Dumping data for table `llx_facture_fourn`
2872 --
2874 LOCK TABLES `llx_facture_fourn` WRITE;
2875 /*!40000 ALTER TABLE `llx_facture_fourn` DISABLE KEYS */;
2876 /*!40000 ALTER TABLE `llx_facture_fourn` ENABLE KEYS */;
2877 UNLOCK TABLES;
2879 --
2880 -- Table structure for table `llx_facture_fourn_det`
2881 --
2883 DROP TABLE IF EXISTS `llx_facture_fourn_det`;
2884 /*!40101 SET @saved_cs_client = @@character_set_client */;
2885 /*!40101 SET character_set_client = utf8 */;
2886 CREATE TABLE `llx_facture_fourn_det` (
2887 `rowid` int(11) NOT NULL AUTO_INCREMENT,
2888 `fk_facture_fourn` int(11) NOT NULL,
2889 `fk_product` int(11) DEFAULT NULL,
2890 `ref` varchar(50) DEFAULT NULL,
2891 `label` varchar(255) DEFAULT NULL,
2892 `description` text,
2893 `pu_ht` double(24,8) DEFAULT NULL,
2894 `pu_ttc` double(24,8) DEFAULT NULL,
2895 `qty` double DEFAULT NULL,
2896 `tva_tx` double(6,3) DEFAULT NULL,
2897 `localtax1_tx` double(6,3) DEFAULT '0.000',
2898 `localtax2_tx` double(6,3) DEFAULT '0.000',
2899 `total_ht` double(24,8) DEFAULT NULL,
2900 `tva` double(24,8) DEFAULT NULL,
2901 `total_localtax1` double(24,8) DEFAULT '0.00000000',
2902 `total_localtax2` double(24,8) DEFAULT '0.00000000',
2903 `total_ttc` double(24,8) DEFAULT NULL,
2904 `product_type` int(11) DEFAULT '0',
2905 `date_start` datetime DEFAULT NULL,
2906 `date_end` datetime DEFAULT NULL,
2907 `import_key` varchar(14) DEFAULT NULL,
2908 PRIMARY KEY (`rowid`),
2909 KEY `idx_facture_fourn_det_fk_facture` (`fk_facture_fourn`)
2910 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2911 /*!40101 SET character_set_client = @saved_cs_client */;
2913 --
2914 -- Dumping data for table `llx_facture_fourn_det`
2915 --
2917 LOCK TABLES `llx_facture_fourn_det` WRITE;
2918 /*!40000 ALTER TABLE `llx_facture_fourn_det` DISABLE KEYS */;
2919 /*!40000 ALTER TABLE `llx_facture_fourn_det` ENABLE KEYS */;
2920 UNLOCK TABLES;
2922 --
2923 -- Table structure for table `llx_facture_rec`
2924 --
2926 DROP TABLE IF EXISTS `llx_facture_rec`;
2927 /*!40101 SET @saved_cs_client = @@character_set_client */;
2928 /*!40101 SET character_set_client = utf8 */;
2929 CREATE TABLE `llx_facture_rec` (
2930 `rowid` int(11) NOT NULL AUTO_INCREMENT,
2931 `titre` varchar(50) NOT NULL,
2932 `entity` int(11) NOT NULL DEFAULT '1',
2933 `fk_soc` int(11) NOT NULL,
2934 `datec` datetime DEFAULT NULL,
2935 `amount` double(24,8) NOT NULL DEFAULT '0.00000000',
2936 `remise` double DEFAULT '0',
2937 `remise_percent` double DEFAULT '0',
2938 `remise_absolue` double DEFAULT '0',
2939 `tva` double(24,8) DEFAULT '0.00000000',
2940 `localtax1` double(24,8) DEFAULT '0.00000000',
2941 `localtax2` double(24,8) DEFAULT '0.00000000',
2942 `total` double(24,8) DEFAULT '0.00000000',
2943 `total_ttc` double(24,8) DEFAULT '0.00000000',
2944 `fk_user_author` int(11) DEFAULT NULL,
2945 `fk_projet` int(11) DEFAULT NULL,
2946 `fk_cond_reglement` int(11) DEFAULT '0',
2947 `fk_mode_reglement` int(11) DEFAULT '0',
2948 `date_lim_reglement` date DEFAULT NULL,
2949 `note` text,
2950 `note_public` text,
2951 `frequency` int(11) DEFAULT NULL,
2952 `unit_frequency` varchar(2) DEFAULT 'd',
2953 `date_when` datetime DEFAULT NULL,
2954 `date_last_gen` datetime DEFAULT NULL,
2955 `nb_gen_done` int(11) DEFAULT NULL,
2956 `nb_gen_max` int(11) DEFAULT NULL,
2957 PRIMARY KEY (`rowid`),
2958 UNIQUE KEY `idx_facture_rec_uk_titre` (`titre`,`entity`),
2959 KEY `idx_facture_rec_fk_soc` (`fk_soc`),
2960 KEY `idx_facture_rec_fk_user_author` (`fk_user_author`),
2961 KEY `idx_facture_rec_fk_projet` (`fk_projet`)
2962 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2963 /*!40101 SET character_set_client = @saved_cs_client */;
2965 --
2966 -- Dumping data for table `llx_facture_rec`
2967 --
2969 LOCK TABLES `llx_facture_rec` WRITE;
2970 /*!40000 ALTER TABLE `llx_facture_rec` DISABLE KEYS */;
2971 /*!40000 ALTER TABLE `llx_facture_rec` ENABLE KEYS */;
2972 UNLOCK TABLES;
2974 --
2975 -- Table structure for table `llx_facturedet`
2976 --
2978 DROP TABLE IF EXISTS `llx_facturedet`;
2979 /*!40101 SET @saved_cs_client = @@character_set_client */;
2980 /*!40101 SET character_set_client = utf8 */;
2981 CREATE TABLE `llx_facturedet` (
2982 `rowid` int(11) NOT NULL AUTO_INCREMENT,
2983 `fk_facture` int(11) NOT NULL,
2984 `fk_parent_line` int(11) DEFAULT NULL,
2985 `fk_product` int(11) DEFAULT NULL,
2986 `description` text,
2987 `tva_tx` double(6,3) DEFAULT NULL,
2988 `localtax1_tx` double(6,3) DEFAULT '0.000',
2989 `localtax2_tx` double(6,3) DEFAULT '0.000',
2990 `qty` double DEFAULT NULL,
2991 `remise_percent` double DEFAULT '0',
2992 `remise` double DEFAULT '0',
2993 `fk_remise_except` int(11) DEFAULT NULL,
2994 `subprice` double(24,8) DEFAULT NULL,
2995 `price` double(24,8) DEFAULT NULL,
2996 `total_ht` double(24,8) DEFAULT NULL,
2997 `total_tva` double(24,8) DEFAULT NULL,
2998 `total_localtax1` double(24,8) DEFAULT '0.00000000',
2999 `total_localtax2` double(24,8) DEFAULT '0.00000000',
3000 `total_ttc` double(24,8) DEFAULT NULL,
3001 `product_type` int(11) DEFAULT '0',
3002 `date_start` datetime DEFAULT NULL,
3003 `date_end` datetime DEFAULT NULL,
3004 `info_bits` int(11) DEFAULT '0',
3005 `fk_code_ventilation` int(11) NOT NULL DEFAULT '0',
3006 `fk_export_compta` int(11) NOT NULL DEFAULT '0',
3007 `special_code` int(10) unsigned DEFAULT '0',
3008 `rang` int(11) DEFAULT '0',
3009 `import_key` varchar(14) DEFAULT NULL,
3010 PRIMARY KEY (`rowid`),
3011 UNIQUE KEY `uk_fk_remise_except` (`fk_remise_except`,`fk_facture`),
3012 KEY `idx_facturedet_fk_facture` (`fk_facture`)
3013 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
3014 /*!40101 SET character_set_client = @saved_cs_client */;
3016 --
3017 -- Dumping data for table `llx_facturedet`
3018 --
3020 LOCK TABLES `llx_facturedet` WRITE;
3021 /*!40000 ALTER TABLE `llx_facturedet` DISABLE KEYS */;
3022 /*!40000 ALTER TABLE `llx_facturedet` ENABLE KEYS */;
3023 UNLOCK TABLES;
3025 --
3026 -- Table structure for table `llx_facturedet_rec`
3027 --
3029 DROP TABLE IF EXISTS `llx_facturedet_rec`;
3030 /*!40101 SET @saved_cs_client = @@character_set_client */;
3031 /*!40101 SET character_set_client = utf8 */;
3032 CREATE TABLE `llx_facturedet_rec` (
3033 `rowid` int(11) NOT NULL AUTO_INCREMENT,
3034 `fk_facture` int(11) NOT NULL,
3035 `fk_parent_line` int(11) DEFAULT NULL,
3036 `fk_product` int(11) DEFAULT NULL,
3037 `product_type` int(11) DEFAULT '0',
3038 `description` text,
3039 `tva_tx` double(6,3) DEFAULT '19.600',
3040 `localtax1_tx` double(6,3) DEFAULT '0.000',
3041 `localtax2_tx` double(6,3) DEFAULT '0.000',
3042 `qty` double DEFAULT NULL,
3043 `remise_percent` double DEFAULT '0',
3044 `remise` double DEFAULT '0',
3045 `subprice` double(24,8) DEFAULT NULL,
3046 `price` double(24,8) DEFAULT NULL,
3047 `total_ht` double(24,8) DEFAULT NULL,
3048 `total_tva` double(24,8) DEFAULT NULL,
3049 `total_localtax1` double(24,8) DEFAULT '0.00000000',
3050 `total_localtax2` double(24,8) DEFAULT '0.00000000',
3051 `total_ttc` double(24,8) DEFAULT NULL,
3052 `special_code` int(10) unsigned DEFAULT '0',
3053 `rang` int(11) DEFAULT '0',
3054 PRIMARY KEY (`rowid`)
3055 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
3056 /*!40101 SET character_set_client = @saved_cs_client */;
3058 --
3059 -- Dumping data for table `llx_facturedet_rec`
3060 --
3062 LOCK TABLES `llx_facturedet_rec` WRITE;
3063 /*!40000 ALTER TABLE `llx_facturedet_rec` DISABLE KEYS */;
3064 /*!40000 ALTER TABLE `llx_facturedet_rec` ENABLE KEYS */;
3065 UNLOCK TABLES;
3067 --
3068 -- Table structure for table `llx_fichinter`
3069 --
3071 DROP TABLE IF EXISTS `llx_fichinter`;
3072 /*!40101 SET @saved_cs_client = @@character_set_client */;
3073 /*!40101 SET character_set_client = utf8 */;
3074 CREATE TABLE `llx_fichinter` (
3075 `rowid` int(11) NOT NULL AUTO_INCREMENT,
3076 `fk_soc` int(11) NOT NULL,
3077 `fk_projet` int(11) DEFAULT '0',
3078 `fk_contrat` int(11) DEFAULT '0',
3079 `ref` varchar(30) NOT NULL,
3080 `entity` int(11) NOT NULL DEFAULT '1',
3081 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
3082 `datec` datetime DEFAULT NULL,
3083 `date_valid` datetime DEFAULT NULL,
3084 `datei` date DEFAULT NULL,
3085 `fk_user_author` int(11) DEFAULT NULL,
3086 `fk_user_valid` int(11) DEFAULT NULL,
3087 `fk_statut` smallint(6) DEFAULT '0',
3088 `duree` double DEFAULT NULL,
3089 `description` text,
3090 `note_private` text,
3091 `note_public` text,
3092 `model_pdf` varchar(50) DEFAULT NULL,
3093 PRIMARY KEY (`rowid`),
3094 UNIQUE KEY `uk_fichinter_ref` (`ref`,`entity`),
3095 KEY `idx_fichinter_fk_soc` (`fk_soc`)
3096 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
3097 /*!40101 SET character_set_client = @saved_cs_client */;
3099 --
3100 -- Dumping data for table `llx_fichinter`
3101 --
3103 LOCK TABLES `llx_fichinter` WRITE;
3104 /*!40000 ALTER TABLE `llx_fichinter` DISABLE KEYS */;
3105 /*!40000 ALTER TABLE `llx_fichinter` ENABLE KEYS */;
3106 UNLOCK TABLES;
3108 --
3109 -- Table structure for table `llx_fichinterdet`
3110 --
3112 DROP TABLE IF EXISTS `llx_fichinterdet`;
3113 /*!40101 SET @saved_cs_client = @@character_set_client */;
3114 /*!40101 SET character_set_client = utf8 */;
3115 CREATE TABLE `llx_fichinterdet` (
3116 `rowid` int(11) NOT NULL AUTO_INCREMENT,
3117 `fk_fichinter` int(11) DEFAULT NULL,
3118 `date` datetime DEFAULT NULL,
3119 `description` text,
3120 `duree` int(11) DEFAULT NULL,
3121 `rang` int(11) DEFAULT '0',
3122 PRIMARY KEY (`rowid`),
3123 KEY `idx_fichinterdet_fk_fichinter` (`fk_fichinter`)
3124 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
3125 /*!40101 SET character_set_client = @saved_cs_client */;
3127 --
3128 -- Dumping data for table `llx_fichinterdet`
3129 --
3131 LOCK TABLES `llx_fichinterdet` WRITE;
3132 /*!40000 ALTER TABLE `llx_fichinterdet` DISABLE KEYS */;
3133 /*!40000 ALTER TABLE `llx_fichinterdet` ENABLE KEYS */;
3134 UNLOCK TABLES;
3136 --
3137 -- Table structure for table `llx_import_model`
3138 --
3140 DROP TABLE IF EXISTS `llx_import_model`;
3141 /*!40101 SET @saved_cs_client = @@character_set_client */;
3142 /*!40101 SET character_set_client = utf8 */;
3143 CREATE TABLE `llx_import_model` (
3144 `rowid` int(11) NOT NULL AUTO_INCREMENT,
3145 `fk_user` int(11) NOT NULL DEFAULT '0',
3146 `label` varchar(50) NOT NULL,
3147 `type` varchar(20) NOT NULL,
3148 `field` text NOT NULL,
3149 PRIMARY KEY (`rowid`),
3150 UNIQUE KEY `uk_import_model` (`label`,`type`)
3151 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
3152 /*!40101 SET character_set_client = @saved_cs_client */;
3154 --
3155 -- Dumping data for table `llx_import_model`
3156 --
3158 LOCK TABLES `llx_import_model` WRITE;
3159 /*!40000 ALTER TABLE `llx_import_model` DISABLE KEYS */;
3160 /*!40000 ALTER TABLE `llx_import_model` ENABLE KEYS */;
3161 UNLOCK TABLES;
3163 --
3164 -- Table structure for table `llx_livraison`
3165 --
3167 DROP TABLE IF EXISTS `llx_livraison`;
3168 /*!40101 SET @saved_cs_client = @@character_set_client */;
3169 /*!40101 SET character_set_client = utf8 */;
3170 CREATE TABLE `llx_livraison` (
3171 `rowid` int(11) NOT NULL AUTO_INCREMENT,
3172 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
3173 `ref` varchar(30) NOT NULL,
3174 `entity` int(11) NOT NULL DEFAULT '1',
3175 `ref_customer` varchar(30) DEFAULT NULL,
3176 `fk_soc` int(11) NOT NULL,
3177 `date_creation` datetime DEFAULT NULL,
3178 `fk_user_author` int(11) DEFAULT NULL,
3179 `date_valid` datetime DEFAULT NULL,
3180 `fk_user_valid` int(11) DEFAULT NULL,
3181 `date_delivery` date DEFAULT NULL,
3182 `fk_address` int(11) DEFAULT NULL,
3183 `fk_statut` smallint(6) DEFAULT '0',
3184 `total_ht` double(24,8) DEFAULT '0.00000000',
3185 `note` text,
3186 `note_public` text,
3187 `model_pdf` varchar(50) DEFAULT NULL,
3188 PRIMARY KEY (`rowid`),
3189 UNIQUE KEY `idx_livraison_uk_ref` (`ref`,`entity`),
3190 KEY `idx_livraison_fk_soc` (`fk_soc`),
3191 KEY `idx_livraison_fk_user_author` (`fk_user_author`),
3192 KEY `idx_livraison_fk_user_valid` (`fk_user_valid`)
3193 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
3194 /*!40101 SET character_set_client = @saved_cs_client */;
3196 --
3197 -- Dumping data for table `llx_livraison`
3198 --
3200 LOCK TABLES `llx_livraison` WRITE;
3201 /*!40000 ALTER TABLE `llx_livraison` DISABLE KEYS */;
3202 /*!40000 ALTER TABLE `llx_livraison` ENABLE KEYS */;
3203 UNLOCK TABLES;
3205 --
3206 -- Table structure for table `llx_livraisondet`
3207 --
3209 DROP TABLE IF EXISTS `llx_livraisondet`;
3210 /*!40101 SET @saved_cs_client = @@character_set_client */;
3211 /*!40101 SET character_set_client = utf8 */;
3212 CREATE TABLE `llx_livraisondet` (
3213 `rowid` int(11) NOT NULL AUTO_INCREMENT,
3214 `fk_livraison` int(11) DEFAULT NULL,
3215 `fk_origin_line` int(11) DEFAULT NULL,
3216 `fk_product` int(11) DEFAULT NULL,
3217 `description` text,
3218 `qty` double DEFAULT NULL,
3219 `subprice` double(24,8) DEFAULT '0.00000000',
3220 `total_ht` double(24,8) DEFAULT '0.00000000',
3221 `rang` int(11) DEFAULT '0',
3222 PRIMARY KEY (`rowid`),
3223 KEY `idx_livraisondet_fk_expedition` (`fk_livraison`)
3224 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
3225 /*!40101 SET character_set_client = @saved_cs_client */;
3227 --
3228 -- Dumping data for table `llx_livraisondet`
3229 --
3231 LOCK TABLES `llx_livraisondet` WRITE;
3232 /*!40000 ALTER TABLE `llx_livraisondet` DISABLE KEYS */;
3233 /*!40000 ALTER TABLE `llx_livraisondet` ENABLE KEYS */;
3234 UNLOCK TABLES;
3236 --
3237 -- Table structure for table `llx_mailing`
3238 --
3240 DROP TABLE IF EXISTS `llx_mailing`;
3241 /*!40101 SET @saved_cs_client = @@character_set_client */;
3242 /*!40101 SET character_set_client = utf8 */;
3243 CREATE TABLE `llx_mailing` (
3244 `rowid` int(11) NOT NULL AUTO_INCREMENT,
3245 `statut` smallint(6) DEFAULT '0',
3246 `titre` varchar(60) DEFAULT NULL,
3247 `entity` int(11) NOT NULL DEFAULT '1',
3248 `sujet` varchar(60) DEFAULT NULL,
3249 `body` text,
3250 `bgcolor` varchar(8) DEFAULT NULL,
3251 `bgimage` varchar(255) DEFAULT NULL,
3252 `cible` varchar(60) DEFAULT NULL,
3253 `nbemail` int(11) DEFAULT NULL,
3254 `email_from` varchar(160) DEFAULT NULL,
3255 `email_replyto` varchar(160) DEFAULT NULL,
3256 `email_errorsto` varchar(160) DEFAULT NULL,
3257 `date_creat` datetime DEFAULT NULL,
3258 `date_valid` datetime DEFAULT NULL,
3259 `date_appro` datetime DEFAULT NULL,
3260 `date_envoi` datetime DEFAULT NULL,
3261 `fk_user_creat` int(11) DEFAULT NULL,
3262 `fk_user_valid` int(11) DEFAULT NULL,
3263 `fk_user_appro` int(11) DEFAULT NULL,
3264 `joined_file1` varchar(255) DEFAULT NULL,
3265 `joined_file2` varchar(255) DEFAULT NULL,
3266 `joined_file3` varchar(255) DEFAULT NULL,
3267 `joined_file4` varchar(255) DEFAULT NULL,
3268 PRIMARY KEY (`rowid`)
3269 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
3270 /*!40101 SET character_set_client = @saved_cs_client */;
3272 --
3273 -- Dumping data for table `llx_mailing`
3274 --
3276 LOCK TABLES `llx_mailing` WRITE;
3277 /*!40000 ALTER TABLE `llx_mailing` DISABLE KEYS */;
3278 /*!40000 ALTER TABLE `llx_mailing` ENABLE KEYS */;
3279 UNLOCK TABLES;
3281 --
3282 -- Table structure for table `llx_mailing_cibles`
3283 --
3285 DROP TABLE IF EXISTS `llx_mailing_cibles`;
3286 /*!40101 SET @saved_cs_client = @@character_set_client */;
3287 /*!40101 SET character_set_client = utf8 */;
3288 CREATE TABLE `llx_mailing_cibles` (
3289 `rowid` int(11) NOT NULL AUTO_INCREMENT,
3290 `fk_mailing` int(11) NOT NULL,
3291 `fk_contact` int(11) NOT NULL,
3292 `nom` varchar(160) DEFAULT NULL,
3293 `prenom` varchar(160) DEFAULT NULL,
3294 `email` varchar(160) NOT NULL,
3295 `other` varchar(255) DEFAULT NULL,
3296 `statut` smallint(6) NOT NULL DEFAULT '0',
3297 `source_url` varchar(160) DEFAULT NULL,
3298 `source_id` int(11) DEFAULT NULL,
3299 `source_type` varchar(16) DEFAULT NULL,
3300 `date_envoi` datetime DEFAULT NULL,
3301 PRIMARY KEY (`rowid`),
3302 UNIQUE KEY `uk_mailing_cibles` (`fk_mailing`,`email`),
3303 KEY `idx_mailing_cibles_email` (`email`)
3304 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
3305 /*!40101 SET character_set_client = @saved_cs_client */;
3307 --
3308 -- Dumping data for table `llx_mailing_cibles`
3309 --
3311 LOCK TABLES `llx_mailing_cibles` WRITE;
3312 /*!40000 ALTER TABLE `llx_mailing_cibles` DISABLE KEYS */;
3313 /*!40000 ALTER TABLE `llx_mailing_cibles` ENABLE KEYS */;
3314 UNLOCK TABLES;
3316 --
3317 -- Table structure for table `llx_menu`
3318 --
3320 DROP TABLE IF EXISTS `llx_menu`;
3321 /*!40101 SET @saved_cs_client = @@character_set_client */;
3322 /*!40101 SET character_set_client = utf8 */;
3323 CREATE TABLE `llx_menu` (
3324 `rowid` int(11) NOT NULL AUTO_INCREMENT,
3325 `menu_handler` varchar(16) NOT NULL,
3326 `entity` int(11) NOT NULL DEFAULT '1',
3327 `module` varchar(64) DEFAULT NULL,
3328 `type` varchar(4) NOT NULL,
3329 `mainmenu` varchar(100) NOT NULL,
3330 `fk_menu` int(11) NOT NULL,
3331 `position` int(11) NOT NULL,
3332 `url` varchar(255) NOT NULL,
3333 `target` varchar(100) DEFAULT NULL,
3334 `titre` varchar(255) NOT NULL,
3335 `langs` varchar(100) DEFAULT NULL,
3336 `level` smallint(6) DEFAULT NULL,
3337 `leftmenu` varchar(1) DEFAULT '1',
3338 `perms` varchar(255) DEFAULT NULL,
3339 `enabled` varchar(255) DEFAULT '1',
3340 `usertype` int(11) NOT NULL DEFAULT '0',
3341 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
3342 PRIMARY KEY (`rowid`),
3343 UNIQUE KEY `idx_menu_uk_menu` (`menu_handler`,`fk_menu`,`position`,`url`,`entity`),
3344 KEY `idx_menu_menuhandler_type` (`menu_handler`,`type`)
3345 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
3346 /*!40101 SET character_set_client = @saved_cs_client */;
3348 --
3349 -- Dumping data for table `llx_menu`
3350 --
3352 LOCK TABLES `llx_menu` WRITE;
3353 /*!40000 ALTER TABLE `llx_menu` DISABLE KEYS */;
3354 /*!40000 ALTER TABLE `llx_menu` ENABLE KEYS */;
3355 UNLOCK TABLES;
3357 --
3358 -- Table structure for table `llx_notify`
3359 --
3361 DROP TABLE IF EXISTS `llx_notify`;
3362 /*!40101 SET @saved_cs_client = @@character_set_client */;
3363 /*!40101 SET character_set_client = utf8 */;
3364 CREATE TABLE `llx_notify` (
3365 `rowid` int(11) NOT NULL AUTO_INCREMENT,
3366 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
3367 `daten` datetime DEFAULT NULL,
3368 `fk_action` int(11) NOT NULL,
3369 `fk_contact` int(11) DEFAULT NULL,
3370 `fk_user` int(11) DEFAULT NULL,
3371 `objet_type` varchar(24) NOT NULL,
3372 `objet_id` int(11) NOT NULL,
3373 `email` varchar(255) DEFAULT NULL,
3374 PRIMARY KEY (`rowid`)
3375 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
3376 /*!40101 SET character_set_client = @saved_cs_client */;
3378 --
3379 -- Dumping data for table `llx_notify`
3380 --
3382 LOCK TABLES `llx_notify` WRITE;
3383 /*!40000 ALTER TABLE `llx_notify` DISABLE KEYS */;
3384 /*!40000 ALTER TABLE `llx_notify` ENABLE KEYS */;
3385 UNLOCK TABLES;
3387 --
3388 -- Table structure for table `llx_notify_def`
3389 --
3391 DROP TABLE IF EXISTS `llx_notify_def`;
3392 /*!40101 SET @saved_cs_client = @@character_set_client */;
3393 /*!40101 SET character_set_client = utf8 */;
3394 CREATE TABLE `llx_notify_def` (
3395 `rowid` int(11) NOT NULL AUTO_INCREMENT,
3396 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
3397 `datec` date DEFAULT NULL,
3398 `fk_action` int(11) NOT NULL,
3399 `fk_soc` int(11) NOT NULL,
3400 `fk_contact` int(11) DEFAULT NULL,
3401 `fk_user` int(11) DEFAULT NULL,
3402 `type` varchar(16) DEFAULT 'email',
3403 PRIMARY KEY (`rowid`)
3404 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
3405 /*!40101 SET character_set_client = @saved_cs_client */;
3407 --
3408 -- Dumping data for table `llx_notify_def`
3409 --
3411 LOCK TABLES `llx_notify_def` WRITE;
3412 /*!40000 ALTER TABLE `llx_notify_def` DISABLE KEYS */;
3413 /*!40000 ALTER TABLE `llx_notify_def` ENABLE KEYS */;
3414 UNLOCK TABLES;
3416 --
3417 -- Table structure for table `llx_paiement`
3418 --
3420 DROP TABLE IF EXISTS `llx_paiement`;
3421 /*!40101 SET @saved_cs_client = @@character_set_client */;
3422 /*!40101 SET character_set_client = utf8 */;
3423 CREATE TABLE `llx_paiement` (
3424 `rowid` int(11) NOT NULL AUTO_INCREMENT,
3425 `datec` datetime DEFAULT NULL,
3426 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
3427 `datep` datetime DEFAULT NULL,
3428 `amount` double(24,8) DEFAULT '0.00000000',
3429 `fk_paiement` int(11) NOT NULL,
3430 `num_paiement` varchar(50) DEFAULT NULL,
3431 `note` text,
3432 `fk_bank` int(11) NOT NULL DEFAULT '0',
3433 `fk_user_creat` int(11) DEFAULT NULL,
3434 `fk_user_modif` int(11) DEFAULT NULL,
3435 `statut` smallint(6) NOT NULL DEFAULT '0',
3436 `fk_export_compta` int(11) NOT NULL DEFAULT '0',
3437 PRIMARY KEY (`rowid`)
3438 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
3439 /*!40101 SET character_set_client = @saved_cs_client */;
3441 --
3442 -- Dumping data for table `llx_paiement`
3443 --
3445 LOCK TABLES `llx_paiement` WRITE;
3446 /*!40000 ALTER TABLE `llx_paiement` DISABLE KEYS */;
3447 /*!40000 ALTER TABLE `llx_paiement` ENABLE KEYS */;
3448 UNLOCK TABLES;
3450 --
3451 -- Table structure for table `llx_paiement_facture`
3452 --
3454 DROP TABLE IF EXISTS `llx_paiement_facture`;
3455 /*!40101 SET @saved_cs_client = @@character_set_client */;
3456 /*!40101 SET character_set_client = utf8 */;
3457 CREATE TABLE `llx_paiement_facture` (
3458 `rowid` int(11) NOT NULL AUTO_INCREMENT,
3459 `fk_paiement` int(11) DEFAULT NULL,
3460 `fk_facture` int(11) DEFAULT NULL,
3461 `amount` double DEFAULT '0',
3462 PRIMARY KEY (`rowid`),
3463 UNIQUE KEY `uk_paiement_facture` (`fk_paiement`,`fk_facture`),
3464 KEY `idx_paiement_facture_fk_facture` (`fk_facture`),
3465 KEY `idx_paiement_facture_fk_paiement` (`fk_paiement`)
3466 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
3467 /*!40101 SET character_set_client = @saved_cs_client */;
3469 --
3470 -- Dumping data for table `llx_paiement_facture`
3471 --
3473 LOCK TABLES `llx_paiement_facture` WRITE;
3474 /*!40000 ALTER TABLE `llx_paiement_facture` DISABLE KEYS */;
3475 /*!40000 ALTER TABLE `llx_paiement_facture` ENABLE KEYS */;
3476 UNLOCK TABLES;
3478 --
3479 -- Table structure for table `llx_paiementcharge`
3480 --
3482 DROP TABLE IF EXISTS `llx_paiementcharge`;
3483 /*!40101 SET @saved_cs_client = @@character_set_client */;
3484 /*!40101 SET character_set_client = utf8 */;
3485 CREATE TABLE `llx_paiementcharge` (
3486 `rowid` int(11) NOT NULL AUTO_INCREMENT,
3487 `fk_charge` int(11) DEFAULT NULL,
3488 `datec` datetime DEFAULT NULL,
3489 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
3490 `datep` datetime DEFAULT NULL,
3491 `amount` double DEFAULT '0',
3492 `fk_typepaiement` int(11) NOT NULL,
3493 `num_paiement` varchar(50) DEFAULT NULL,
3494 `note` text,
3495 `fk_bank` int(11) NOT NULL,
3496 `fk_user_creat` int(11) DEFAULT NULL,
3497 `fk_user_modif` int(11) DEFAULT NULL,
3498 PRIMARY KEY (`rowid`)
3499 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
3500 /*!40101 SET character_set_client = @saved_cs_client */;
3502 --
3503 -- Dumping data for table `llx_paiementcharge`
3504 --
3506 LOCK TABLES `llx_paiementcharge` WRITE;
3507 /*!40000 ALTER TABLE `llx_paiementcharge` DISABLE KEYS */;
3508 /*!40000 ALTER TABLE `llx_paiementcharge` ENABLE KEYS */;
3509 UNLOCK TABLES;
3511 --
3512 -- Table structure for table `llx_paiementfourn`
3513 --
3515 DROP TABLE IF EXISTS `llx_paiementfourn`;
3516 /*!40101 SET @saved_cs_client = @@character_set_client */;
3517 /*!40101 SET character_set_client = utf8 */;
3518 CREATE TABLE `llx_paiementfourn` (
3519 `rowid` int(11) NOT NULL AUTO_INCREMENT,
3520 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
3521 `datec` datetime DEFAULT NULL,
3522 `datep` datetime DEFAULT NULL,
3523 `amount` double(24,8) DEFAULT '0.00000000',
3524 `fk_user_author` int(11) DEFAULT NULL,
3525 `fk_paiement` int(11) NOT NULL,
3526 `num_paiement` varchar(50) DEFAULT NULL,
3527 `note` text,
3528 `fk_bank` int(11) NOT NULL,
3529 `statut` smallint(6) NOT NULL DEFAULT '0',
3530 PRIMARY KEY (`rowid`)
3531 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
3532 /*!40101 SET character_set_client = @saved_cs_client */;
3534 --
3535 -- Dumping data for table `llx_paiementfourn`
3536 --
3538 LOCK TABLES `llx_paiementfourn` WRITE;
3539 /*!40000 ALTER TABLE `llx_paiementfourn` DISABLE KEYS */;
3540 /*!40000 ALTER TABLE `llx_paiementfourn` ENABLE KEYS */;
3541 UNLOCK TABLES;
3543 --
3544 -- Table structure for table `llx_paiementfourn_facturefourn`
3545 --
3547 DROP TABLE IF EXISTS `llx_paiementfourn_facturefourn`;
3548 /*!40101 SET @saved_cs_client = @@character_set_client */;
3549 /*!40101 SET character_set_client = utf8 */;
3550 CREATE TABLE `llx_paiementfourn_facturefourn` (
3551 `rowid` int(11) NOT NULL AUTO_INCREMENT,
3552 `fk_paiementfourn` int(11) DEFAULT NULL,
3553 `fk_facturefourn` int(11) DEFAULT NULL,
3554 `amount` double DEFAULT '0',
3555 PRIMARY KEY (`rowid`),
3556 UNIQUE KEY `uk_paiementfourn_facturefourn` (`fk_paiementfourn`,`fk_facturefourn`),
3557 KEY `idx_paiementfourn_facturefourn_fk_facture` (`fk_facturefourn`),
3558 KEY `idx_paiementfourn_facturefourn_fk_paiement` (`fk_paiementfourn`)
3559 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
3560 /*!40101 SET character_set_client = @saved_cs_client */;
3562 --
3563 -- Dumping data for table `llx_paiementfourn_facturefourn`
3564 --
3566 LOCK TABLES `llx_paiementfourn_facturefourn` WRITE;
3567 /*!40000 ALTER TABLE `llx_paiementfourn_facturefourn` DISABLE KEYS */;
3568 /*!40000 ALTER TABLE `llx_paiementfourn_facturefourn` ENABLE KEYS */;
3569 UNLOCK TABLES;
3571 --
3572 -- Table structure for table `llx_prelevement_bons`
3573 --
3575 DROP TABLE IF EXISTS `llx_prelevement_bons`;
3576 /*!40101 SET @saved_cs_client = @@character_set_client */;
3577 /*!40101 SET character_set_client = utf8 */;
3578 CREATE TABLE `llx_prelevement_bons` (
3579 `rowid` int(11) NOT NULL AUTO_INCREMENT,
3580 `ref` varchar(12) DEFAULT NULL,
3581 `entity` int(11) NOT NULL DEFAULT '1',
3582 `datec` datetime DEFAULT NULL,
3583 `amount` double DEFAULT '0',
3584 `statut` smallint(6) DEFAULT '0',
3585 `credite` smallint(6) DEFAULT '0',
3586 `note` text,
3587 `date_trans` datetime DEFAULT NULL,
3588 `method_trans` smallint(6) DEFAULT NULL,
3589 `fk_user_trans` int(11) DEFAULT NULL,
3590 `date_credit` datetime DEFAULT NULL,
3591 `fk_user_credit` int(11) DEFAULT NULL,
3592 PRIMARY KEY (`rowid`),
3593 UNIQUE KEY `uk_prelevement_bons_ref` (`ref`,`entity`)
3594 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
3595 /*!40101 SET character_set_client = @saved_cs_client */;
3597 --
3598 -- Dumping data for table `llx_prelevement_bons`
3599 --
3601 LOCK TABLES `llx_prelevement_bons` WRITE;
3602 /*!40000 ALTER TABLE `llx_prelevement_bons` DISABLE KEYS */;
3603 /*!40000 ALTER TABLE `llx_prelevement_bons` ENABLE KEYS */;
3604 UNLOCK TABLES;
3606 --
3607 -- Table structure for table `llx_prelevement_facture`
3608 --
3610 DROP TABLE IF EXISTS `llx_prelevement_facture`;
3611 /*!40101 SET @saved_cs_client = @@character_set_client */;
3612 /*!40101 SET character_set_client = utf8 */;
3613 CREATE TABLE `llx_prelevement_facture` (
3614 `rowid` int(11) NOT NULL AUTO_INCREMENT,
3615 `fk_facture` int(11) NOT NULL,
3616 `fk_prelevement_lignes` int(11) NOT NULL,
3617 PRIMARY KEY (`rowid`),
3618 KEY `idx_prelevement_facture_fk_prelevement_lignes` (`fk_prelevement_lignes`)
3619 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
3620 /*!40101 SET character_set_client = @saved_cs_client */;
3622 --
3623 -- Dumping data for table `llx_prelevement_facture`
3624 --
3626 LOCK TABLES `llx_prelevement_facture` WRITE;
3627 /*!40000 ALTER TABLE `llx_prelevement_facture` DISABLE KEYS */;
3628 /*!40000 ALTER TABLE `llx_prelevement_facture` ENABLE KEYS */;
3629 UNLOCK TABLES;
3631 --
3632 -- Table structure for table `llx_prelevement_facture_demande`
3633 --
3635 DROP TABLE IF EXISTS `llx_prelevement_facture_demande`;
3636 /*!40101 SET @saved_cs_client = @@character_set_client */;
3637 /*!40101 SET character_set_client = utf8 */;
3638 CREATE TABLE `llx_prelevement_facture_demande` (
3639 `rowid` int(11) NOT NULL AUTO_INCREMENT,
3640 `fk_facture` int(11) NOT NULL,
3641 `amount` double NOT NULL,
3642 `date_demande` datetime NOT NULL,
3643 `traite` smallint(6) DEFAULT '0',
3644 `date_traite` datetime DEFAULT NULL,
3645 `fk_prelevement_bons` int(11) DEFAULT NULL,
3646 `fk_user_demande` int(11) NOT NULL,
3647 `code_banque` varchar(7) DEFAULT NULL,
3648 `code_guichet` varchar(6) DEFAULT NULL,
3649 `number` varchar(255) DEFAULT NULL,
3650 `cle_rib` varchar(5) DEFAULT NULL,
3651 PRIMARY KEY (`rowid`)
3652 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
3653 /*!40101 SET character_set_client = @saved_cs_client */;
3655 --
3656 -- Dumping data for table `llx_prelevement_facture_demande`
3657 --
3659 LOCK TABLES `llx_prelevement_facture_demande` WRITE;
3660 /*!40000 ALTER TABLE `llx_prelevement_facture_demande` DISABLE KEYS */;
3661 /*!40000 ALTER TABLE `llx_prelevement_facture_demande` ENABLE KEYS */;
3662 UNLOCK TABLES;
3664 --
3665 -- Table structure for table `llx_prelevement_lignes`
3666 --
3668 DROP TABLE IF EXISTS `llx_prelevement_lignes`;
3669 /*!40101 SET @saved_cs_client = @@character_set_client */;
3670 /*!40101 SET character_set_client = utf8 */;
3671 CREATE TABLE `llx_prelevement_lignes` (
3672 `rowid` int(11) NOT NULL AUTO_INCREMENT,
3673 `fk_prelevement_bons` int(11) DEFAULT NULL,
3674 `fk_soc` int(11) NOT NULL,
3675 `statut` smallint(6) DEFAULT '0',
3676 `client_nom` varchar(255) DEFAULT NULL,
3677 `amount` double DEFAULT '0',
3678 `code_banque` varchar(7) DEFAULT NULL,
3679 `code_guichet` varchar(6) DEFAULT NULL,
3680 `number` varchar(255) DEFAULT NULL,
3681 `cle_rib` varchar(5) DEFAULT NULL,
3682 `note` text,
3683 PRIMARY KEY (`rowid`),
3684 KEY `idx_prelevement_lignes_fk_prelevement_bons` (`fk_prelevement_bons`)
3685 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
3686 /*!40101 SET character_set_client = @saved_cs_client */;
3688 --
3689 -- Dumping data for table `llx_prelevement_lignes`
3690 --
3692 LOCK TABLES `llx_prelevement_lignes` WRITE;
3693 /*!40000 ALTER TABLE `llx_prelevement_lignes` DISABLE KEYS */;
3694 /*!40000 ALTER TABLE `llx_prelevement_lignes` ENABLE KEYS */;
3695 UNLOCK TABLES;
3697 --
3698 -- Table structure for table `llx_prelevement_notifications`
3699 --
3701 DROP TABLE IF EXISTS `llx_prelevement_notifications`;
3702 /*!40101 SET @saved_cs_client = @@character_set_client */;
3703 /*!40101 SET character_set_client = utf8 */;
3704 CREATE TABLE `llx_prelevement_notifications` (
3705 `rowid` int(11) NOT NULL AUTO_INCREMENT,
3706 `fk_user` int(11) NOT NULL,
3707 `action` varchar(32) DEFAULT NULL,
3708 PRIMARY KEY (`rowid`)
3709 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
3710 /*!40101 SET character_set_client = @saved_cs_client */;
3712 --
3713 -- Dumping data for table `llx_prelevement_notifications`
3714 --
3716 LOCK TABLES `llx_prelevement_notifications` WRITE;
3717 /*!40000 ALTER TABLE `llx_prelevement_notifications` DISABLE KEYS */;
3718 /*!40000 ALTER TABLE `llx_prelevement_notifications` ENABLE KEYS */;
3719 UNLOCK TABLES;
3721 --
3722 -- Table structure for table `llx_prelevement_rejet`
3723 --
3725 DROP TABLE IF EXISTS `llx_prelevement_rejet`;
3726 /*!40101 SET @saved_cs_client = @@character_set_client */;
3727 /*!40101 SET character_set_client = utf8 */;
3728 CREATE TABLE `llx_prelevement_rejet` (
3729 `rowid` int(11) NOT NULL AUTO_INCREMENT,
3730 `fk_prelevement_lignes` int(11) DEFAULT NULL,
3731 `date_rejet` datetime DEFAULT NULL,
3732 `motif` int(11) DEFAULT NULL,
3733 `date_creation` datetime DEFAULT NULL,
3734 `fk_user_creation` int(11) DEFAULT NULL,
3735 `note` text,
3736 `afacturer` tinyint(4) DEFAULT '0',
3737 `fk_facture` int(11) DEFAULT NULL,
3738 PRIMARY KEY (`rowid`)
3739 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
3740 /*!40101 SET character_set_client = @saved_cs_client */;
3742 --
3743 -- Dumping data for table `llx_prelevement_rejet`
3744 --
3746 LOCK TABLES `llx_prelevement_rejet` WRITE;
3747 /*!40000 ALTER TABLE `llx_prelevement_rejet` DISABLE KEYS */;
3748 /*!40000 ALTER TABLE `llx_prelevement_rejet` ENABLE KEYS */;
3749 UNLOCK TABLES;
3751 --
3752 -- Table structure for table `llx_product`
3753 --
3755 DROP TABLE IF EXISTS `llx_product`;
3756 /*!40101 SET @saved_cs_client = @@character_set_client */;
3757 /*!40101 SET character_set_client = utf8 */;
3758 CREATE TABLE `llx_product` (
3759 `rowid` int(11) NOT NULL AUTO_INCREMENT,
3760 `datec` datetime DEFAULT NULL,
3761 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
3762 `virtual` tinyint(4) NOT NULL DEFAULT '0',
3763 `fk_parent` int(11) DEFAULT '0',
3764 `ref` varchar(32) NOT NULL,
3765 `entity` int(11) NOT NULL DEFAULT '1',
3766 `ref_ext` varchar(32) DEFAULT NULL,
3767 `label` varchar(255) NOT NULL,
3768 `description` text,
3769 `note` text,
3770 `customcode` varchar(32) DEFAULT NULL,
3771 `fk_country` int(11) DEFAULT NULL,
3772 `price` double(24,8) DEFAULT '0.00000000',
3773 `price_ttc` double(24,8) DEFAULT '0.00000000',
3774 `price_min` double(24,8) DEFAULT '0.00000000',
3775 `price_min_ttc` double(24,8) DEFAULT '0.00000000',
3776 `price_base_type` varchar(3) DEFAULT 'HT',
3777 `tva_tx` double(6,3) DEFAULT NULL,
3778 `recuperableonly` int(11) NOT NULL DEFAULT '0',
3779 `localtax1_tx` double(6,3) DEFAULT '0.000',
3780 `localtax2_tx` double(6,3) DEFAULT '0.000',
3781 `fk_user_author` int(11) DEFAULT NULL,
3782 `tosell` tinyint(4) DEFAULT '1',
3783 `tobuy` tinyint(4) DEFAULT '1',
3784 `fk_product_type` int(11) DEFAULT '0',
3785 `duration` varchar(6) DEFAULT NULL,
3786 `seuil_stock_alerte` int(11) DEFAULT '0',
3787 `barcode` varchar(255) DEFAULT NULL,
3788 `fk_barcode_type` int(11) DEFAULT '0',
3789 `accountancy_code_sell` varchar(15) DEFAULT NULL,
3790 `accountancy_code_buy` varchar(15) DEFAULT NULL,
3791 `partnumber` varchar(32) DEFAULT NULL,
3792 `weight` float DEFAULT NULL,
3793 `weight_units` tinyint(4) DEFAULT NULL,
3794 `length` float DEFAULT NULL,
3795 `length_units` tinyint(4) DEFAULT NULL,
3796 `surface` float DEFAULT NULL,
3797 `surface_units` tinyint(4) DEFAULT NULL,
3798 `volume` float DEFAULT NULL,
3799 `volume_units` tinyint(4) DEFAULT NULL,
3800 `stock` int(11) DEFAULT NULL,
3801 `pmp` double(24,8) NOT NULL DEFAULT '0.00000000',
3802 `canvas` varchar(32) DEFAULT 'default@product',
3803 `finished` tinyint(4) DEFAULT NULL,
3804 `hidden` tinyint(4) DEFAULT '0',
3805 `import_key` varchar(14) DEFAULT NULL,
3806 PRIMARY KEY (`rowid`),
3807 UNIQUE KEY `uk_product_ref` (`ref`,`entity`),
3808 KEY `idx_product_label` (`label`),
3809 KEY `idx_product_barcode` (`barcode`),
3810 KEY `idx_product_import_key` (`import_key`)
3811 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
3812 /*!40101 SET character_set_client = @saved_cs_client */;
3814 --
3815 -- Dumping data for table `llx_product`
3816 --
3818 LOCK TABLES `llx_product` WRITE;
3819 /*!40000 ALTER TABLE `llx_product` DISABLE KEYS */;
3820 /*!40000 ALTER TABLE `llx_product` ENABLE KEYS */;
3821 UNLOCK TABLES;
3823 --
3824 -- Table structure for table `llx_product_association`
3825 --
3827 DROP TABLE IF EXISTS `llx_product_association`;
3828 /*!40101 SET @saved_cs_client = @@character_set_client */;
3829 /*!40101 SET character_set_client = utf8 */;
3830 CREATE TABLE `llx_product_association` (
3831 `rowid` int(11) NOT NULL AUTO_INCREMENT,
3832 `fk_product_pere` int(11) NOT NULL DEFAULT '0',
3833 `fk_product_fils` int(11) NOT NULL DEFAULT '0',
3834 `qty` double DEFAULT NULL,
3835 PRIMARY KEY (`rowid`),
3836 UNIQUE KEY `uk_product_association` (`fk_product_pere`,`fk_product_fils`),
3837 KEY `idx_product_association_fils` (`fk_product_fils`)
3838 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
3839 /*!40101 SET character_set_client = @saved_cs_client */;
3841 --
3842 -- Dumping data for table `llx_product_association`
3843 --
3845 LOCK TABLES `llx_product_association` WRITE;
3846 /*!40000 ALTER TABLE `llx_product_association` DISABLE KEYS */;
3847 /*!40000 ALTER TABLE `llx_product_association` ENABLE KEYS */;
3848 UNLOCK TABLES;
3850 --
3851 -- Table structure for table `llx_product_ca`
3852 --
3854 DROP TABLE IF EXISTS `llx_product_ca`;
3855 /*!40101 SET @saved_cs_client = @@character_set_client */;
3856 /*!40101 SET character_set_client = utf8 */;
3857 CREATE TABLE `llx_product_ca` (
3858 `fk_product` int(11) DEFAULT NULL,
3859 `date_calcul` datetime DEFAULT NULL,
3860 `year` smallint(5) unsigned DEFAULT NULL,
3861 `ca_genere` float DEFAULT NULL,
3862 UNIQUE KEY `fk_product` (`fk_product`,`year`)
3863 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
3864 /*!40101 SET character_set_client = @saved_cs_client */;
3866 --
3867 -- Dumping data for table `llx_product_ca`
3868 --
3870 LOCK TABLES `llx_product_ca` WRITE;
3871 /*!40000 ALTER TABLE `llx_product_ca` DISABLE KEYS */;
3872 /*!40000 ALTER TABLE `llx_product_ca` ENABLE KEYS */;
3873 UNLOCK TABLES;
3875 --
3876 -- Table structure for table `llx_product_fournisseur`
3877 --
3879 DROP TABLE IF EXISTS `llx_product_fournisseur`;
3880 /*!40101 SET @saved_cs_client = @@character_set_client */;
3881 /*!40101 SET character_set_client = utf8 */;
3882 CREATE TABLE `llx_product_fournisseur` (
3883 `rowid` int(11) NOT NULL AUTO_INCREMENT,
3884 `datec` datetime DEFAULT NULL,
3885 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
3886 `fk_product` int(11) DEFAULT NULL,
3887 `fk_soc` int(11) DEFAULT NULL,
3888 `ref_fourn` varchar(30) DEFAULT NULL,
3889 `entity` int(11) NOT NULL DEFAULT '1',
3890 `fk_user_author` int(11) DEFAULT NULL,
3891 PRIMARY KEY (`rowid`),
3892 UNIQUE KEY `uk_product_fournisseur_ref` (`ref_fourn`,`fk_soc`,`entity`),
3893 KEY `idx_product_fourn_fk_product` (`fk_product`,`entity`),
3894 KEY `idx_product_fourn_fk_soc` (`fk_soc`,`entity`)
3895 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
3896 /*!40101 SET character_set_client = @saved_cs_client */;
3898 --
3899 -- Dumping data for table `llx_product_fournisseur`
3900 --
3902 LOCK TABLES `llx_product_fournisseur` WRITE;
3903 /*!40000 ALTER TABLE `llx_product_fournisseur` DISABLE KEYS */;
3904 /*!40000 ALTER TABLE `llx_product_fournisseur` ENABLE KEYS */;
3905 UNLOCK TABLES;
3907 --
3908 -- Table structure for table `llx_product_fournisseur_price`
3909 --
3911 DROP TABLE IF EXISTS `llx_product_fournisseur_price`;
3912 /*!40101 SET @saved_cs_client = @@character_set_client */;
3913 /*!40101 SET character_set_client = utf8 */;
3914 CREATE TABLE `llx_product_fournisseur_price` (
3915 `rowid` int(11) NOT NULL AUTO_INCREMENT,
3916 `datec` datetime DEFAULT NULL,
3917 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
3918 `fk_product_fournisseur` int(11) NOT NULL,
3919 `price` double(24,8) DEFAULT '0.00000000',
3920 `quantity` double DEFAULT NULL,
3921 `unitprice` double(24,8) DEFAULT '0.00000000',
3922 `fk_user` int(11) DEFAULT NULL,
3923 PRIMARY KEY (`rowid`),
3924 KEY `idx_product_fournisseur_price_fk_user` (`fk_user`),
3925 KEY `idx_product_fournisseur_price_fk_product_fournisseur` (`fk_product_fournisseur`)
3926 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
3927 /*!40101 SET character_set_client = @saved_cs_client */;
3929 --
3930 -- Dumping data for table `llx_product_fournisseur_price`
3931 --
3933 LOCK TABLES `llx_product_fournisseur_price` WRITE;
3934 /*!40000 ALTER TABLE `llx_product_fournisseur_price` DISABLE KEYS */;
3935 /*!40000 ALTER TABLE `llx_product_fournisseur_price` ENABLE KEYS */;
3936 UNLOCK TABLES;
3938 --
3939 -- Table structure for table `llx_product_fournisseur_price_log`
3940 --
3942 DROP TABLE IF EXISTS `llx_product_fournisseur_price_log`;
3943 /*!40101 SET @saved_cs_client = @@character_set_client */;
3944 /*!40101 SET character_set_client = utf8 */;
3945 CREATE TABLE `llx_product_fournisseur_price_log` (
3946 `rowid` int(11) NOT NULL AUTO_INCREMENT,
3947 `datec` datetime DEFAULT NULL,
3948 `fk_product_fournisseur` int(11) NOT NULL,
3949 `price` double(24,8) DEFAULT '0.00000000',
3950 `quantity` double DEFAULT NULL,
3951 `fk_user` int(11) DEFAULT NULL,
3952 PRIMARY KEY (`rowid`)
3953 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
3954 /*!40101 SET character_set_client = @saved_cs_client */;
3956 --
3957 -- Dumping data for table `llx_product_fournisseur_price_log`
3958 --
3960 LOCK TABLES `llx_product_fournisseur_price_log` WRITE;
3961 /*!40000 ALTER TABLE `llx_product_fournisseur_price_log` DISABLE KEYS */;
3962 /*!40000 ALTER TABLE `llx_product_fournisseur_price_log` ENABLE KEYS */;
3963 UNLOCK TABLES;
3965 --
3966 -- Table structure for table `llx_product_lang`
3967 --
3969 DROP TABLE IF EXISTS `llx_product_lang`;
3970 /*!40101 SET @saved_cs_client = @@character_set_client */;
3971 /*!40101 SET character_set_client = utf8 */;
3972 CREATE TABLE `llx_product_lang` (
3973 `rowid` int(11) NOT NULL AUTO_INCREMENT,
3974 `fk_product` int(11) NOT NULL DEFAULT '0',
3975 `lang` varchar(5) NOT NULL DEFAULT '0',
3976 `label` varchar(255) NOT NULL,
3977 `description` text,
3978 `note` text,
3979 PRIMARY KEY (`rowid`),
3980 UNIQUE KEY `uk_product_lang` (`fk_product`,`lang`)
3981 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
3982 /*!40101 SET character_set_client = @saved_cs_client */;
3984 --
3985 -- Dumping data for table `llx_product_lang`
3986 --
3988 LOCK TABLES `llx_product_lang` WRITE;
3989 /*!40000 ALTER TABLE `llx_product_lang` DISABLE KEYS */;
3990 /*!40000 ALTER TABLE `llx_product_lang` ENABLE KEYS */;
3991 UNLOCK TABLES;
3993 --
3994 -- Table structure for table `llx_product_price`
3995 --
3997 DROP TABLE IF EXISTS `llx_product_price`;
3998 /*!40101 SET @saved_cs_client = @@character_set_client */;
3999 /*!40101 SET character_set_client = utf8 */;
4000 CREATE TABLE `llx_product_price` (
4001 `rowid` int(11) NOT NULL AUTO_INCREMENT,
4002 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
4003 `fk_product` int(11) NOT NULL,
4004 `date_price` datetime NOT NULL,
4005 `price_level` smallint(6) DEFAULT '1',
4006 `price` double(24,8) DEFAULT NULL,
4007 `price_ttc` double(24,8) DEFAULT NULL,
4008 `price_min` double(24,8) DEFAULT NULL,
4009 `price_min_ttc` double(24,8) DEFAULT NULL,
4010 `price_base_type` varchar(3) DEFAULT 'HT',
4011 `tva_tx` double(6,3) NOT NULL,
4012 `recuperableonly` int(11) NOT NULL DEFAULT '0',
4013 `localtax1_tx` double(6,3) DEFAULT '0.000',
4014 `localtax2_tx` double(6,3) DEFAULT '0.000',
4015 `fk_user_author` int(11) DEFAULT NULL,
4016 `tosell` tinyint(4) DEFAULT '1',
4017 PRIMARY KEY (`rowid`)
4018 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
4019 /*!40101 SET character_set_client = @saved_cs_client */;
4021 --
4022 -- Dumping data for table `llx_product_price`
4023 --
4025 LOCK TABLES `llx_product_price` WRITE;
4026 /*!40000 ALTER TABLE `llx_product_price` DISABLE KEYS */;
4027 /*!40000 ALTER TABLE `llx_product_price` ENABLE KEYS */;
4028 UNLOCK TABLES;
4030 --
4031 -- Table structure for table `llx_product_stock`
4032 --
4034 DROP TABLE IF EXISTS `llx_product_stock`;
4035 /*!40101 SET @saved_cs_client = @@character_set_client */;
4036 /*!40101 SET character_set_client = utf8 */;
4037 CREATE TABLE `llx_product_stock` (
4038 `rowid` int(11) NOT NULL AUTO_INCREMENT,
4039 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
4040 `fk_product` int(11) NOT NULL,
4041 `fk_entrepot` int(11) NOT NULL,
4042 `reel` double DEFAULT NULL,
4043 `pmp` double(24,8) NOT NULL DEFAULT '0.00000000',
4044 PRIMARY KEY (`rowid`),
4045 UNIQUE KEY `uk_product_stock` (`fk_product`,`fk_entrepot`),
4046 KEY `idx_product_stock_fk_product` (`fk_product`),
4047 KEY `idx_product_stock_fk_entrepot` (`fk_entrepot`)
4048 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
4049 /*!40101 SET character_set_client = @saved_cs_client */;
4051 --
4052 -- Dumping data for table `llx_product_stock`
4053 --
4055 LOCK TABLES `llx_product_stock` WRITE;
4056 /*!40000 ALTER TABLE `llx_product_stock` DISABLE KEYS */;
4057 /*!40000 ALTER TABLE `llx_product_stock` ENABLE KEYS */;
4058 UNLOCK TABLES;
4060 --
4061 -- Table structure for table `llx_projet`
4062 --
4064 DROP TABLE IF EXISTS `llx_projet`;
4065 /*!40101 SET @saved_cs_client = @@character_set_client */;
4066 /*!40101 SET character_set_client = utf8 */;
4067 CREATE TABLE `llx_projet` (
4068 `rowid` int(11) NOT NULL AUTO_INCREMENT,
4069 `fk_soc` int(11) DEFAULT NULL,
4070 `datec` date DEFAULT NULL,
4071 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
4072 `dateo` date DEFAULT NULL,
4073 `datee` date DEFAULT NULL,
4074 `ref` varchar(50) DEFAULT NULL,
4075 `entity` int(11) NOT NULL DEFAULT '1',
4076 `title` varchar(255) NOT NULL,
4077 `description` text,
4078 `fk_user_creat` int(11) NOT NULL,
4079 `public` int(11) DEFAULT NULL,
4080 `fk_statut` smallint(6) NOT NULL DEFAULT '0',
4081 `note_private` text,
4082 `note_public` text,
4083 `model_pdf` varchar(50) DEFAULT NULL,
4084 PRIMARY KEY (`rowid`),
4085 UNIQUE KEY `uk_projet_ref` (`ref`,`entity`),
4086 KEY `idx_projet_fk_soc` (`fk_soc`)
4087 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
4088 /*!40101 SET character_set_client = @saved_cs_client */;
4090 --
4091 -- Dumping data for table `llx_projet`
4092 --
4094 LOCK TABLES `llx_projet` WRITE;
4095 /*!40000 ALTER TABLE `llx_projet` DISABLE KEYS */;
4096 /*!40000 ALTER TABLE `llx_projet` ENABLE KEYS */;
4097 UNLOCK TABLES;
4099 --
4100 -- Table structure for table `llx_projet_task`
4101 --
4103 DROP TABLE IF EXISTS `llx_projet_task`;
4104 /*!40101 SET @saved_cs_client = @@character_set_client */;
4105 /*!40101 SET character_set_client = utf8 */;
4106 CREATE TABLE `llx_projet_task` (
4107 `rowid` int(11) NOT NULL AUTO_INCREMENT,
4108 `fk_projet` int(11) NOT NULL,
4109 `fk_task_parent` int(11) NOT NULL DEFAULT '0',
4110 `datec` datetime DEFAULT NULL,
4111 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
4112 `dateo` datetime DEFAULT NULL,
4113 `datee` datetime DEFAULT NULL,
4114 `datev` datetime DEFAULT NULL,
4115 `label` varchar(255) NOT NULL,
4116 `description` text,
4117 `duration_effective` double NOT NULL DEFAULT '0',
4118 `progress` int(11) DEFAULT '0',
4119 `priority` int(11) DEFAULT '0',
4120 `fk_user_creat` int(11) DEFAULT NULL,
4121 `fk_user_valid` int(11) DEFAULT NULL,
4122 `fk_statut` smallint(6) NOT NULL DEFAULT '0',
4123 `note_private` text,
4124 `note_public` text,
4125 `rang` int(11) DEFAULT '0',
4126 PRIMARY KEY (`rowid`),
4127 KEY `idx_projet_task_fk_projet` (`fk_projet`),
4128 KEY `idx_projet_task_fk_user_creat` (`fk_user_creat`),
4129 KEY `idx_projet_task_fk_user_valid` (`fk_user_valid`)
4130 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
4131 /*!40101 SET character_set_client = @saved_cs_client */;
4133 --
4134 -- Dumping data for table `llx_projet_task`
4135 --
4137 LOCK TABLES `llx_projet_task` WRITE;
4138 /*!40000 ALTER TABLE `llx_projet_task` DISABLE KEYS */;
4139 /*!40000 ALTER TABLE `llx_projet_task` ENABLE KEYS */;
4140 UNLOCK TABLES;
4142 --
4143 -- Table structure for table `llx_projet_task_time`
4144 --
4146 DROP TABLE IF EXISTS `llx_projet_task_time`;
4147 /*!40101 SET @saved_cs_client = @@character_set_client */;
4148 /*!40101 SET character_set_client = utf8 */;
4149 CREATE TABLE `llx_projet_task_time` (
4150 `rowid` int(11) NOT NULL AUTO_INCREMENT,
4151 `fk_task` int(11) NOT NULL,
4152 `task_date` date DEFAULT NULL,
4153 `task_duration` double DEFAULT NULL,
4154 `fk_user` int(11) DEFAULT NULL,
4155 `note` text,
4156 PRIMARY KEY (`rowid`)
4157 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
4158 /*!40101 SET character_set_client = @saved_cs_client */;
4160 --
4161 -- Dumping data for table `llx_projet_task_time`
4162 --
4164 LOCK TABLES `llx_projet_task_time` WRITE;
4165 /*!40000 ALTER TABLE `llx_projet_task_time` DISABLE KEYS */;
4166 /*!40000 ALTER TABLE `llx_projet_task_time` ENABLE KEYS */;
4167 UNLOCK TABLES;
4169 --
4170 -- Table structure for table `llx_propal`
4171 --
4173 DROP TABLE IF EXISTS `llx_propal`;
4174 /*!40101 SET @saved_cs_client = @@character_set_client */;
4175 /*!40101 SET character_set_client = utf8 */;
4176 CREATE TABLE `llx_propal` (
4177 `rowid` int(11) NOT NULL AUTO_INCREMENT,
4178 `fk_soc` int(11) DEFAULT NULL,
4179 `fk_projet` int(11) DEFAULT '0',
4180 `ref` varchar(30) NOT NULL,
4181 `entity` int(11) NOT NULL DEFAULT '1',
4182 `ref_ext` varchar(30) DEFAULT NULL,
4183 `ref_client` varchar(30) DEFAULT NULL,
4184 `datec` datetime DEFAULT NULL,
4185 `datep` date DEFAULT NULL,
4186 `fin_validite` datetime DEFAULT NULL,
4187 `date_valid` datetime DEFAULT NULL,
4188 `date_cloture` datetime DEFAULT NULL,
4189 `fk_user_author` int(11) DEFAULT NULL,
4190 `fk_user_valid` int(11) DEFAULT NULL,
4191 `fk_user_cloture` int(11) DEFAULT NULL,
4192 `fk_statut` smallint(6) NOT NULL DEFAULT '0',
4193 `price` double DEFAULT '0',
4194 `remise_percent` double DEFAULT '0',
4195 `remise_absolue` double DEFAULT '0',
4196 `remise` double DEFAULT '0',
4197 `total_ht` double(24,8) DEFAULT '0.00000000',
4198 `tva` double(24,8) DEFAULT '0.00000000',
4199 `localtax1` double(24,8) DEFAULT '0.00000000',
4200 `localtax2` double(24,8) DEFAULT '0.00000000',
4201 `total` double(24,8) DEFAULT '0.00000000',
4202 `fk_cond_reglement` int(11) DEFAULT NULL,
4203 `fk_mode_reglement` int(11) DEFAULT NULL,
4204 `note` text,
4205 `note_public` text,
4206 `model_pdf` varchar(50) DEFAULT NULL,
4207 `date_livraison` date DEFAULT NULL,
4208 `fk_adresse_livraison` int(11) DEFAULT NULL,
4209 PRIMARY KEY (`rowid`),
4210 UNIQUE KEY `uk_propal_ref` (`ref`,`entity`),
4211 KEY `idx_propal_fk_soc` (`fk_soc`)
4212 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
4213 /*!40101 SET character_set_client = @saved_cs_client */;
4215 --
4216 -- Dumping data for table `llx_propal`
4217 --
4219 LOCK TABLES `llx_propal` WRITE;
4220 /*!40000 ALTER TABLE `llx_propal` DISABLE KEYS */;
4221 /*!40000 ALTER TABLE `llx_propal` ENABLE KEYS */;
4222 UNLOCK TABLES;
4224 --
4225 -- Table structure for table `llx_propaldet`
4226 --
4228 DROP TABLE IF EXISTS `llx_propaldet`;
4229 /*!40101 SET @saved_cs_client = @@character_set_client */;
4230 /*!40101 SET character_set_client = utf8 */;
4231 CREATE TABLE `llx_propaldet` (
4232 `rowid` int(11) NOT NULL AUTO_INCREMENT,
4233 `fk_propal` int(11) NOT NULL,
4234 `fk_parent_line` int(11) DEFAULT NULL,
4235 `fk_product` int(11) DEFAULT NULL,
4236 `description` text,
4237 `fk_remise_except` int(11) DEFAULT NULL,
4238 `tva_tx` double(6,3) DEFAULT '0.000',
4239 `localtax1_tx` double(6,3) DEFAULT '0.000',
4240 `localtax2_tx` double(6,3) DEFAULT '0.000',
4241 `qty` double DEFAULT NULL,
4242 `remise_percent` double DEFAULT '0',
4243 `remise` double DEFAULT '0',
4244 `price` double DEFAULT NULL,
4245 `subprice` double(24,8) DEFAULT '0.00000000',
4246 `total_ht` double(24,8) DEFAULT '0.00000000',
4247 `total_tva` double(24,8) DEFAULT '0.00000000',
4248 `total_localtax1` double(24,8) DEFAULT '0.00000000',
4249 `total_localtax2` double(24,8) DEFAULT '0.00000000',
4250 `total_ttc` double(24,8) DEFAULT '0.00000000',
4251 `product_type` int(11) DEFAULT '0',
4252 `date_start` datetime DEFAULT NULL,
4253 `date_end` datetime DEFAULT NULL,
4254 `info_bits` int(11) DEFAULT '0',
4255 `pa_ht` double(24,8) DEFAULT '0.00000000',
4256 `marge_tx` double(6,3) DEFAULT '0.000',
4257 `marque_tx` double(6,3) DEFAULT '0.000',
4258 `special_code` int(10) unsigned DEFAULT '0',
4259 `rang` int(11) DEFAULT '0',
4260 PRIMARY KEY (`rowid`),
4261 KEY `idx_propaldet_fk_propal` (`fk_propal`)
4262 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
4263 /*!40101 SET character_set_client = @saved_cs_client */;
4265 --
4266 -- Dumping data for table `llx_propaldet`
4267 --
4269 LOCK TABLES `llx_propaldet` WRITE;
4270 /*!40000 ALTER TABLE `llx_propaldet` DISABLE KEYS */;
4271 /*!40000 ALTER TABLE `llx_propaldet` ENABLE KEYS */;
4272 UNLOCK TABLES;
4274 --
4275 -- Table structure for table `llx_rights_def`
4276 --
4278 DROP TABLE IF EXISTS `llx_rights_def`;
4279 /*!40101 SET @saved_cs_client = @@character_set_client */;
4280 /*!40101 SET character_set_client = utf8 */;
4281 CREATE TABLE `llx_rights_def` (
4282 `id` int(11) NOT NULL DEFAULT '0',
4283 `libelle` varchar(255) DEFAULT NULL,
4284 `module` varchar(64) DEFAULT NULL,
4285 `entity` int(11) NOT NULL DEFAULT '1',
4286 `perms` varchar(50) DEFAULT NULL,
4287 `subperms` varchar(50) DEFAULT NULL,
4288 `type` varchar(1) DEFAULT NULL,
4289 `bydefault` tinyint(4) DEFAULT '0',
4290 PRIMARY KEY (`id`,`entity`)
4291 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
4292 /*!40101 SET character_set_client = @saved_cs_client */;
4294 --
4295 -- Dumping data for table `llx_rights_def`
4296 --
4298 LOCK TABLES `llx_rights_def` WRITE;
4299 /*!40000 ALTER TABLE `llx_rights_def` DISABLE KEYS */;
4300 INSERT INTO `llx_rights_def` VALUES (251,'Consulter les autres utilisateurs','user',1,'user','lire','r',0),(252,'Consulter les permissions des autres utilisateurs','user',1,'user_advance','readperms','r',0),(253,'Creer/modifier utilisateurs internes et externes','user',1,'user','creer','w',0),(254,'Creer/modifier utilisateurs externes seulement','user',1,'user_advance','write','w',0),(255,'Modifier le mot de passe des autres utilisateurs','user',1,'user','password','w',0),(256,'Supprimer ou desactiver les autres utilisateurs','user',1,'user','supprimer','d',0),(341,'Consulter ses propres permissions','user',1,'self_advance','readperms','r',1),(342,'Creer/modifier ses propres infos utilisateur','user',1,'self','creer','w',1),(343,'Modifier son propre mot de passe','user',1,'self','password','w',1),(344,'Modifier ses propres permissions','user',1,'self_advance','writeperms','w',1),(351,'Consulter les groupes','user',1,'group_advance','read','r',0),(352,'Consulter les permissions des groupes','user',1,'group_advance','readperms','r',0),(353,'Creer/modifier les groupes et leurs permissions','user',1,'group_advance','write','w',0),(354,'Supprimer ou desactiver les groupes','user',1,'group_advance','delete','d',0),(358,'Exporter les utilisateurs','user',1,'user','export','r',0);
4301 /*!40000 ALTER TABLE `llx_rights_def` ENABLE KEYS */;
4302 UNLOCK TABLES;
4304 --
4305 -- Table structure for table `llx_societe`
4306 --
4308 DROP TABLE IF EXISTS `llx_societe`;
4309 /*!40101 SET @saved_cs_client = @@character_set_client */;
4310 /*!40101 SET character_set_client = utf8 */;
4311 CREATE TABLE `llx_societe` (
4312 `rowid` int(11) NOT NULL AUTO_INCREMENT,
4313 `statut` tinyint(4) DEFAULT '0',
4314 `parent` int(11) DEFAULT NULL,
4315 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
4316 `datec` datetime DEFAULT NULL,
4317 `datea` datetime DEFAULT NULL,
4318 `nom` varchar(60) DEFAULT NULL,
4319 `entity` int(11) NOT NULL DEFAULT '1',
4320 `ref_ext` varchar(60) DEFAULT NULL,
4321 `code_client` varchar(15) DEFAULT NULL,
4322 `code_fournisseur` varchar(15) DEFAULT NULL,
4323 `code_compta` varchar(15) DEFAULT NULL,
4324 `code_compta_fournisseur` varchar(15) DEFAULT NULL,
4325 `address` varchar(255) DEFAULT NULL,
4326 `cp` varchar(10) DEFAULT NULL,
4327 `ville` varchar(50) DEFAULT NULL,
4328 `fk_departement` int(11) DEFAULT '0',
4329 `fk_pays` int(11) DEFAULT '0',
4330 `tel` varchar(20) DEFAULT NULL,
4331 `fax` varchar(20) DEFAULT NULL,
4332 `url` varchar(255) DEFAULT NULL,
4333 `email` varchar(128) DEFAULT NULL,
4334 `fk_secteur` int(11) DEFAULT '0',
4335 `fk_effectif` int(11) DEFAULT '0',
4336 `fk_typent` int(11) DEFAULT '0',
4337 `fk_forme_juridique` int(11) DEFAULT '0',
4338 `siren` varchar(16) DEFAULT NULL,
4339 `siret` varchar(16) DEFAULT NULL,
4340 `ape` varchar(16) DEFAULT NULL,
4341 `idprof4` varchar(16) DEFAULT NULL,
4342 `tva_intra` varchar(20) DEFAULT NULL,
4343 `capital` double DEFAULT NULL,
4344 `description` text,
4345 `fk_stcomm` smallint(6) DEFAULT '0',
4346 `note` text,
4347 `services` tinyint(4) DEFAULT '0',
4348 `prefix_comm` varchar(5) DEFAULT NULL,
4349 `client` tinyint(4) DEFAULT '0',
4350 `fournisseur` tinyint(4) DEFAULT '0',
4351 `supplier_account` varchar(32) DEFAULT NULL,
4352 `fk_prospectlevel` varchar(12) DEFAULT NULL,
4353 `customer_bad` tinyint(4) DEFAULT '0',
4354 `customer_rate` double DEFAULT '0',
4355 `supplier_rate` double DEFAULT '0',
4356 `fk_user_creat` int(11) DEFAULT NULL,
4357 `fk_user_modif` int(11) DEFAULT NULL,
4358 `remise_client` double DEFAULT '0',
4359 `mode_reglement` tinyint(4) DEFAULT NULL,
4360 `cond_reglement` tinyint(4) DEFAULT NULL,
4361 `tva_assuj` tinyint(4) DEFAULT '1',
4362 `localtax1_assuj` tinyint(4) DEFAULT '0',
4363 `localtax2_assuj` tinyint(4) DEFAULT '0',
4364 `gencod` varchar(255) DEFAULT NULL,
4365 `price_level` int(11) DEFAULT NULL,
4366 `default_lang` varchar(6) DEFAULT NULL,
4367 `canvas` varchar(32) DEFAULT NULL,
4368 `import_key` varchar(14) DEFAULT NULL,
4369 PRIMARY KEY (`rowid`),
4370 UNIQUE KEY `uk_societe_prefix_comm` (`prefix_comm`,`entity`),
4371 UNIQUE KEY `uk_societe_code_client` (`code_client`,`entity`),
4372 KEY `idx_societe_user_creat` (`fk_user_creat`),
4373 KEY `idx_societe_user_modif` (`fk_user_modif`)
4374 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
4375 /*!40101 SET character_set_client = @saved_cs_client */;
4377 --
4378 -- Dumping data for table `llx_societe`
4379 --
4381 LOCK TABLES `llx_societe` WRITE;
4382 /*!40000 ALTER TABLE `llx_societe` DISABLE KEYS */;
4383 /*!40000 ALTER TABLE `llx_societe` ENABLE KEYS */;
4384 UNLOCK TABLES;
4386 --
4387 -- Table structure for table `llx_societe_address`
4388 --
4390 DROP TABLE IF EXISTS `llx_societe_address`;
4391 /*!40101 SET @saved_cs_client = @@character_set_client */;
4392 /*!40101 SET character_set_client = utf8 */;
4393 CREATE TABLE `llx_societe_address` (
4394 `rowid` int(11) NOT NULL AUTO_INCREMENT,
4395 `datec` datetime DEFAULT NULL,
4396 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
4397 `label` varchar(30) DEFAULT NULL,
4398 `fk_soc` int(11) DEFAULT '0',
4399 `name` varchar(60) DEFAULT NULL,
4400 `address` varchar(255) DEFAULT NULL,
4401 `cp` varchar(10) DEFAULT NULL,
4402 `ville` varchar(50) DEFAULT NULL,
4403 `fk_pays` int(11) DEFAULT '0',
4404 `tel` varchar(20) DEFAULT NULL,
4405 `fax` varchar(20) DEFAULT NULL,
4406 `note` text,
4407 `fk_user_creat` int(11) DEFAULT NULL,
4408 `fk_user_modif` int(11) DEFAULT NULL,
4409 PRIMARY KEY (`rowid`)
4410 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
4411 /*!40101 SET character_set_client = @saved_cs_client */;
4413 --
4414 -- Dumping data for table `llx_societe_address`
4415 --
4417 LOCK TABLES `llx_societe_address` WRITE;
4418 /*!40000 ALTER TABLE `llx_societe_address` DISABLE KEYS */;
4419 /*!40000 ALTER TABLE `llx_societe_address` ENABLE KEYS */;
4420 UNLOCK TABLES;
4422 --
4423 -- Table structure for table `llx_societe_commerciaux`
4424 --
4426 DROP TABLE IF EXISTS `llx_societe_commerciaux`;
4427 /*!40101 SET @saved_cs_client = @@character_set_client */;
4428 /*!40101 SET character_set_client = utf8 */;
4429 CREATE TABLE `llx_societe_commerciaux` (
4430 `rowid` int(11) NOT NULL AUTO_INCREMENT,
4431 `fk_soc` int(11) DEFAULT NULL,
4432 `fk_user` int(11) DEFAULT NULL,
4433 PRIMARY KEY (`rowid`),
4434 UNIQUE KEY `uk_societe_commerciaux` (`fk_soc`,`fk_user`)
4435 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
4436 /*!40101 SET character_set_client = @saved_cs_client */;
4438 --
4439 -- Dumping data for table `llx_societe_commerciaux`
4440 --
4442 LOCK TABLES `llx_societe_commerciaux` WRITE;
4443 /*!40000 ALTER TABLE `llx_societe_commerciaux` DISABLE KEYS */;
4444 /*!40000 ALTER TABLE `llx_societe_commerciaux` ENABLE KEYS */;
4445 UNLOCK TABLES;
4447 --
4448 -- Table structure for table `llx_societe_log`
4449 --
4451 DROP TABLE IF EXISTS `llx_societe_log`;
4452 /*!40101 SET @saved_cs_client = @@character_set_client */;
4453 /*!40101 SET character_set_client = utf8 */;
4454 CREATE TABLE `llx_societe_log` (
4455 `id` int(11) NOT NULL AUTO_INCREMENT,
4456 `datel` datetime DEFAULT NULL,
4457 `fk_soc` int(11) DEFAULT NULL,
4458 `fk_statut` int(11) DEFAULT NULL,
4459 `fk_user` int(11) DEFAULT NULL,
4460 `author` varchar(30) DEFAULT NULL,
4461 `label` varchar(128) DEFAULT NULL,
4462 PRIMARY KEY (`id`)
4463 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
4464 /*!40101 SET character_set_client = @saved_cs_client */;
4466 --
4467 -- Dumping data for table `llx_societe_log`
4468 --
4470 LOCK TABLES `llx_societe_log` WRITE;
4471 /*!40000 ALTER TABLE `llx_societe_log` DISABLE KEYS */;
4472 /*!40000 ALTER TABLE `llx_societe_log` ENABLE KEYS */;
4473 UNLOCK TABLES;
4475 --
4476 -- Table structure for table `llx_societe_prices`
4477 --
4479 DROP TABLE IF EXISTS `llx_societe_prices`;
4480 /*!40101 SET @saved_cs_client = @@character_set_client */;
4481 /*!40101 SET character_set_client = utf8 */;
4482 CREATE TABLE `llx_societe_prices` (
4483 `rowid` int(11) NOT NULL AUTO_INCREMENT,
4484 `fk_soc` int(11) DEFAULT '0',
4485 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
4486 `datec` datetime DEFAULT NULL,
4487 `fk_user_author` int(11) DEFAULT NULL,
4488 `price_level` tinyint(4) DEFAULT '1',
4489 PRIMARY KEY (`rowid`)
4490 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
4491 /*!40101 SET character_set_client = @saved_cs_client */;
4493 --
4494 -- Dumping data for table `llx_societe_prices`
4495 --
4497 LOCK TABLES `llx_societe_prices` WRITE;
4498 /*!40000 ALTER TABLE `llx_societe_prices` DISABLE KEYS */;
4499 /*!40000 ALTER TABLE `llx_societe_prices` ENABLE KEYS */;
4500 UNLOCK TABLES;
4502 --
4503 -- Table structure for table `llx_societe_remise`
4504 --
4506 DROP TABLE IF EXISTS `llx_societe_remise`;
4507 /*!40101 SET @saved_cs_client = @@character_set_client */;
4508 /*!40101 SET character_set_client = utf8 */;
4509 CREATE TABLE `llx_societe_remise` (
4510 `rowid` int(11) NOT NULL AUTO_INCREMENT,
4511 `fk_soc` int(11) NOT NULL,
4512 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
4513 `datec` datetime DEFAULT NULL,
4514 `fk_user_author` int(11) DEFAULT NULL,
4515 `remise_client` double(6,3) NOT NULL DEFAULT '0.000',
4516 `note` text,
4517 PRIMARY KEY (`rowid`)
4518 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
4519 /*!40101 SET character_set_client = @saved_cs_client */;
4521 --
4522 -- Dumping data for table `llx_societe_remise`
4523 --
4525 LOCK TABLES `llx_societe_remise` WRITE;
4526 /*!40000 ALTER TABLE `llx_societe_remise` DISABLE KEYS */;
4527 /*!40000 ALTER TABLE `llx_societe_remise` ENABLE KEYS */;
4528 UNLOCK TABLES;
4530 --
4531 -- Table structure for table `llx_societe_remise_except`
4532 --
4534 DROP TABLE IF EXISTS `llx_societe_remise_except`;
4535 /*!40101 SET @saved_cs_client = @@character_set_client */;
4536 /*!40101 SET character_set_client = utf8 */;
4537 CREATE TABLE `llx_societe_remise_except` (
4538 `rowid` int(11) NOT NULL AUTO_INCREMENT,
4539 `fk_soc` int(11) NOT NULL,
4540 `datec` datetime DEFAULT NULL,
4541 `amount_ht` double(24,8) NOT NULL,
4542 `amount_tva` double(24,8) NOT NULL DEFAULT '0.00000000',
4543 `amount_ttc` double(24,8) NOT NULL DEFAULT '0.00000000',
4544 `tva_tx` double(6,3) NOT NULL DEFAULT '0.000',
4545 `fk_user` int(11) NOT NULL,
4546 `fk_facture_line` int(11) DEFAULT NULL,
4547 `fk_facture` int(11) DEFAULT NULL,
4548 `fk_facture_source` int(11) DEFAULT NULL,
4549 `description` varchar(255) NOT NULL,
4550 PRIMARY KEY (`rowid`),
4551 KEY `idx_societe_remise_except_fk_user` (`fk_user`),
4552 KEY `idx_societe_remise_except_fk_soc` (`fk_soc`),
4553 KEY `idx_societe_remise_except_fk_facture_line` (`fk_facture_line`),
4554 KEY `idx_societe_remise_except_fk_facture` (`fk_facture`),
4555 KEY `idx_societe_remise_except_fk_facture_source` (`fk_facture_source`)
4556 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
4557 /*!40101 SET character_set_client = @saved_cs_client */;
4559 --
4560 -- Dumping data for table `llx_societe_remise_except`
4561 --
4563 LOCK TABLES `llx_societe_remise_except` WRITE;
4564 /*!40000 ALTER TABLE `llx_societe_remise_except` DISABLE KEYS */;
4565 /*!40000 ALTER TABLE `llx_societe_remise_except` ENABLE KEYS */;
4566 UNLOCK TABLES;
4568 --
4569 -- Table structure for table `llx_societe_rib`
4570 --
4572 DROP TABLE IF EXISTS `llx_societe_rib`;
4573 /*!40101 SET @saved_cs_client = @@character_set_client */;
4574 /*!40101 SET character_set_client = utf8 */;
4575 CREATE TABLE `llx_societe_rib` (
4576 `rowid` int(11) NOT NULL AUTO_INCREMENT,
4577 `fk_soc` int(11) NOT NULL,
4578 `datec` datetime DEFAULT NULL,
4579 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
4580 `label` varchar(30) DEFAULT NULL,
4581 `bank` varchar(255) DEFAULT NULL,
4582 `code_banque` varchar(7) DEFAULT NULL,
4583 `code_guichet` varchar(6) DEFAULT NULL,
4584 `number` varchar(255) DEFAULT NULL,
4585 `cle_rib` varchar(5) DEFAULT NULL,
4586 `bic` varchar(10) DEFAULT NULL,
4587 `iban_prefix` varchar(34) DEFAULT NULL,
4588 `domiciliation` varchar(255) DEFAULT NULL,
4589 `proprio` varchar(60) DEFAULT NULL,
4590 `adresse_proprio` varchar(255) DEFAULT NULL,
4591 PRIMARY KEY (`rowid`)
4592 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
4593 /*!40101 SET character_set_client = @saved_cs_client */;
4595 --
4596 -- Dumping data for table `llx_societe_rib`
4597 --
4599 LOCK TABLES `llx_societe_rib` WRITE;
4600 /*!40000 ALTER TABLE `llx_societe_rib` DISABLE KEYS */;
4601 /*!40000 ALTER TABLE `llx_societe_rib` ENABLE KEYS */;
4602 UNLOCK TABLES;
4604 --
4605 -- Table structure for table `llx_socpeople`
4606 --
4608 DROP TABLE IF EXISTS `llx_socpeople`;
4609 /*!40101 SET @saved_cs_client = @@character_set_client */;
4610 /*!40101 SET character_set_client = utf8 */;
4611 CREATE TABLE `llx_socpeople` (
4612 `rowid` int(11) NOT NULL AUTO_INCREMENT,
4613 `datec` datetime DEFAULT NULL,
4614 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
4615 `fk_soc` int(11) DEFAULT NULL,
4616 `entity` int(11) NOT NULL DEFAULT '1',
4617 `civilite` varchar(6) DEFAULT NULL,
4618 `name` varchar(50) DEFAULT NULL,
4619 `firstname` varchar(50) DEFAULT NULL,
4620 `address` varchar(255) DEFAULT NULL,
4621 `cp` varchar(25) DEFAULT NULL,
4622 `ville` varchar(255) DEFAULT NULL,
4623 `fk_departement` int(11) DEFAULT NULL,
4624 `fk_pays` int(11) DEFAULT '0',
4625 `birthday` date DEFAULT NULL,
4626 `poste` varchar(80) DEFAULT NULL,
4627 `phone` varchar(30) DEFAULT NULL,
4628 `phone_perso` varchar(30) DEFAULT NULL,
4629 `phone_mobile` varchar(30) DEFAULT NULL,
4630 `fax` varchar(30) DEFAULT NULL,
4631 `email` varchar(255) DEFAULT NULL,
4632 `jabberid` varchar(255) DEFAULT NULL,
4633 `priv` smallint(6) NOT NULL DEFAULT '0',
4634 `fk_user_creat` int(11) DEFAULT '0',
4635 `fk_user_modif` int(11) DEFAULT NULL,
4636 `note` text,
4637 `default_lang` varchar(6) DEFAULT NULL,
4638 `canvas` varchar(32) DEFAULT NULL,
4639 `import_key` varchar(14) DEFAULT NULL,
4640 PRIMARY KEY (`rowid`),
4641 KEY `idx_socpeople_fk_soc` (`fk_soc`),
4642 KEY `idx_socpeople_fk_user_creat` (`fk_user_creat`)
4643 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
4644 /*!40101 SET character_set_client = @saved_cs_client */;
4646 --
4647 -- Dumping data for table `llx_socpeople`
4648 --
4650 LOCK TABLES `llx_socpeople` WRITE;
4651 /*!40000 ALTER TABLE `llx_socpeople` DISABLE KEYS */;
4652 /*!40000 ALTER TABLE `llx_socpeople` ENABLE KEYS */;
4653 UNLOCK TABLES;
4655 --
4656 -- Table structure for table `llx_stock_mouvement`
4657 --
4659 DROP TABLE IF EXISTS `llx_stock_mouvement`;
4660 /*!40101 SET @saved_cs_client = @@character_set_client */;
4661 /*!40101 SET character_set_client = utf8 */;
4662 CREATE TABLE `llx_stock_mouvement` (
4663 `rowid` int(11) NOT NULL AUTO_INCREMENT,
4664 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
4665 `datem` datetime DEFAULT NULL,
4666 `fk_product` int(11) NOT NULL,
4667 `fk_entrepot` int(11) NOT NULL,
4668 `value` int(11) DEFAULT NULL,
4669 `price` float(13,4) DEFAULT '0.0000',
4670 `type_mouvement` smallint(6) DEFAULT NULL,
4671 `fk_user_author` int(11) DEFAULT NULL,
4672 `label` varchar(128) DEFAULT NULL,
4673 PRIMARY KEY (`rowid`),
4674 KEY `idx_stock_mouvement_fk_product` (`fk_product`),
4675 KEY `idx_stock_mouvement_fk_entrepot` (`fk_entrepot`)
4676 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
4677 /*!40101 SET character_set_client = @saved_cs_client */;
4679 --
4680 -- Dumping data for table `llx_stock_mouvement`
4681 --
4683 LOCK TABLES `llx_stock_mouvement` WRITE;
4684 /*!40000 ALTER TABLE `llx_stock_mouvement` DISABLE KEYS */;
4685 /*!40000 ALTER TABLE `llx_stock_mouvement` ENABLE KEYS */;
4686 UNLOCK TABLES;
4688 --
4689 -- Table structure for table `llx_texts`
4690 --
4692 DROP TABLE IF EXISTS `llx_texts`;
4693 /*!40101 SET @saved_cs_client = @@character_set_client */;
4694 /*!40101 SET character_set_client = utf8 */;
4695 CREATE TABLE `llx_texts` (
4696 `rowid` int(11) NOT NULL AUTO_INCREMENT,
4697 `module` varchar(32) DEFAULT NULL,
4698 `typemodele` varchar(32) DEFAULT NULL,
4699 `sortorder` smallint(6) DEFAULT NULL,
4700 `private` smallint(6) NOT NULL DEFAULT '0',
4701 `fk_user` int(11) DEFAULT NULL,
4702 `title` varchar(128) DEFAULT NULL,
4703 `filename` varchar(128) DEFAULT NULL,
4704 `content` text,
4705 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
4706 PRIMARY KEY (`rowid`)
4707 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
4708 /*!40101 SET character_set_client = @saved_cs_client */;
4710 --
4711 -- Dumping data for table `llx_texts`
4712 --
4714 LOCK TABLES `llx_texts` WRITE;
4715 /*!40000 ALTER TABLE `llx_texts` DISABLE KEYS */;
4716 /*!40000 ALTER TABLE `llx_texts` ENABLE KEYS */;
4717 UNLOCK TABLES;
4719 --
4720 -- Table structure for table `llx_tva`
4721 --
4723 DROP TABLE IF EXISTS `llx_tva`;
4724 /*!40101 SET @saved_cs_client = @@character_set_client */;
4725 /*!40101 SET character_set_client = utf8 */;
4726 CREATE TABLE `llx_tva` (
4727 `rowid` int(11) NOT NULL AUTO_INCREMENT,
4728 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
4729 `datep` date DEFAULT NULL,
4730 `datev` date DEFAULT NULL,
4731 `amount` double NOT NULL DEFAULT '0',
4732 `label` varchar(255) DEFAULT NULL,
4733 `entity` int(11) NOT NULL DEFAULT '1',
4734 `note` text,
4735 `fk_bank` int(11) DEFAULT NULL,
4736 `fk_user_creat` int(11) DEFAULT NULL,
4737 `fk_user_modif` int(11) DEFAULT NULL,
4738 PRIMARY KEY (`rowid`)
4739 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
4740 /*!40101 SET character_set_client = @saved_cs_client */;
4742 --
4743 -- Dumping data for table `llx_tva`
4744 --
4746 LOCK TABLES `llx_tva` WRITE;
4747 /*!40000 ALTER TABLE `llx_tva` DISABLE KEYS */;
4748 /*!40000 ALTER TABLE `llx_tva` ENABLE KEYS */;
4749 UNLOCK TABLES;
4751 --
4752 -- Table structure for table `llx_user`
4753 --
4755 DROP TABLE IF EXISTS `llx_user`;
4756 /*!40101 SET @saved_cs_client = @@character_set_client */;
4757 /*!40101 SET character_set_client = utf8 */;
4758 CREATE TABLE `llx_user` (
4759 `rowid` int(11) NOT NULL AUTO_INCREMENT,
4760 `datec` datetime DEFAULT NULL,
4761 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
4762 `login` varchar(24) NOT NULL,
4763 `entity` int(11) NOT NULL DEFAULT '1',
4764 `pass` varchar(32) DEFAULT NULL,
4765 `pass_crypted` varchar(128) DEFAULT NULL,
4766 `pass_temp` varchar(32) DEFAULT NULL,
4767 `name` varchar(50) DEFAULT NULL,
4768 `firstname` varchar(50) DEFAULT NULL,
4769 `office_phone` varchar(20) DEFAULT NULL,
4770 `office_fax` varchar(20) DEFAULT NULL,
4771 `user_mobile` varchar(20) DEFAULT NULL,
4772 `email` varchar(255) DEFAULT NULL,
4773 `admin` smallint(6) DEFAULT '0',
4774 `webcal_login` varchar(25) DEFAULT NULL,
4775 `phenix_login` varchar(25) DEFAULT NULL,
4776 `phenix_pass` varchar(128) DEFAULT NULL,
4777 `module_comm` smallint(6) DEFAULT '1',
4778 `module_compta` smallint(6) DEFAULT '1',
4779 `fk_societe` int(11) DEFAULT NULL,
4780 `fk_socpeople` int(11) DEFAULT NULL,
4781 `fk_member` int(11) DEFAULT NULL,
4782 `note` text,
4783 `datelastlogin` datetime DEFAULT NULL,
4784 `datepreviouslogin` datetime DEFAULT NULL,
4785 `egroupware_id` int(11) DEFAULT NULL,
4786 `ldap_sid` varchar(255) DEFAULT NULL,
4787 `openid` varchar(255) DEFAULT NULL,
4788 `statut` tinyint(4) DEFAULT '1',
4789 `photo` varchar(255) DEFAULT NULL,
4790 `lang` varchar(6) DEFAULT NULL,
4791 PRIMARY KEY (`rowid`),
4792 UNIQUE KEY `uk_user_login` (`login`,`entity`),
4793 UNIQUE KEY `uk_user_fk_socpeople` (`fk_socpeople`),
4794 UNIQUE KEY `uk_user_fk_member` (`fk_member`),
4795 KEY `uk_user_fk_societe` (`fk_societe`)
4796 ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
4797 /*!40101 SET character_set_client = @saved_cs_client */;
4799 --
4800 -- Dumping data for table `llx_user`
4801 --
4803 LOCK TABLES `llx_user` WRITE;
4804 /*!40000 ALTER TABLE `llx_user` DISABLE KEYS */;
4805 INSERT INTO `llx_user` VALUES (1,'2011-07-03 17:33:30','2011-07-03 17:33:30','manager',0,'dolibarr','1de2f00382e35238c18f9e57a3866f23',NULL,'SuperAdmin','','','','','',1,'','','',1,1,NULL,NULL,NULL,'',NULL,NULL,NULL,'',NULL,1,NULL,NULL);
4806 /*!40000 ALTER TABLE `llx_user` ENABLE KEYS */;
4807 UNLOCK TABLES;
4809 --
4810 -- Table structure for table `llx_user_alert`
4811 --
4813 DROP TABLE IF EXISTS `llx_user_alert`;
4814 /*!40101 SET @saved_cs_client = @@character_set_client */;
4815 /*!40101 SET character_set_client = utf8 */;
4816 CREATE TABLE `llx_user_alert` (
4817 `rowid` int(11) NOT NULL AUTO_INCREMENT,
4818 `type` int(11) DEFAULT NULL,
4819 `fk_contact` int(11) DEFAULT NULL,
4820 `fk_user` int(11) DEFAULT NULL,
4821 PRIMARY KEY (`rowid`)
4822 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
4823 /*!40101 SET character_set_client = @saved_cs_client */;
4825 --
4826 -- Dumping data for table `llx_user_alert`
4827 --
4829 LOCK TABLES `llx_user_alert` WRITE;
4830 /*!40000 ALTER TABLE `llx_user_alert` DISABLE KEYS */;
4831 /*!40000 ALTER TABLE `llx_user_alert` ENABLE KEYS */;
4832 UNLOCK TABLES;
4834 --
4835 -- Table structure for table `llx_user_clicktodial`
4836 --
4838 DROP TABLE IF EXISTS `llx_user_clicktodial`;
4839 /*!40101 SET @saved_cs_client = @@character_set_client */;
4840 /*!40101 SET character_set_client = utf8 */;
4841 CREATE TABLE `llx_user_clicktodial` (
4842 `fk_user` int(11) NOT NULL,
4843 `login` varchar(32) DEFAULT NULL,
4844 `pass` varchar(64) DEFAULT NULL,
4845 `poste` varchar(20) DEFAULT NULL,
4846 PRIMARY KEY (`fk_user`)
4847 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
4848 /*!40101 SET character_set_client = @saved_cs_client */;
4850 --
4851 -- Dumping data for table `llx_user_clicktodial`
4852 --
4854 LOCK TABLES `llx_user_clicktodial` WRITE;
4855 /*!40000 ALTER TABLE `llx_user_clicktodial` DISABLE KEYS */;
4856 /*!40000 ALTER TABLE `llx_user_clicktodial` ENABLE KEYS */;
4857 UNLOCK TABLES;
4859 --
4860 -- Table structure for table `llx_user_param`
4861 --
4863 DROP TABLE IF EXISTS `llx_user_param`;
4864 /*!40101 SET @saved_cs_client = @@character_set_client */;
4865 /*!40101 SET character_set_client = utf8 */;
4866 CREATE TABLE `llx_user_param` (
4867 `fk_user` int(11) NOT NULL,
4868 `entity` int(11) NOT NULL DEFAULT '1',
4869 `param` varchar(64) NOT NULL,
4870 `value` varchar(255) NOT NULL,
4871 UNIQUE KEY `uk_user_param` (`fk_user`,`param`,`entity`)
4872 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
4873 /*!40101 SET character_set_client = @saved_cs_client */;
4875 --
4876 -- Dumping data for table `llx_user_param`
4877 --
4879 LOCK TABLES `llx_user_param` WRITE;
4880 /*!40000 ALTER TABLE `llx_user_param` DISABLE KEYS */;
4881 /*!40000 ALTER TABLE `llx_user_param` ENABLE KEYS */;
4882 UNLOCK TABLES;
4884 --
4885 -- Table structure for table `llx_user_rights`
4886 --
4888 DROP TABLE IF EXISTS `llx_user_rights`;
4889 /*!40101 SET @saved_cs_client = @@character_set_client */;
4890 /*!40101 SET character_set_client = utf8 */;
4891 CREATE TABLE `llx_user_rights` (
4892 `rowid` int(11) NOT NULL AUTO_INCREMENT,
4893 `fk_user` int(11) NOT NULL,
4894 `fk_id` int(11) NOT NULL,
4895 PRIMARY KEY (`rowid`),
4896 UNIQUE KEY `uk_user_rights` (`fk_user`,`fk_id`)
4897 ) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
4898 /*!40101 SET character_set_client = @saved_cs_client */;
4900 --
4901 -- Dumping data for table `llx_user_rights`
4902 --
4904 LOCK TABLES `llx_user_rights` WRITE;
4905 /*!40000 ALTER TABLE `llx_user_rights` DISABLE KEYS */;
4906 INSERT INTO `llx_user_rights` VALUES (1,1,341),(2,1,342),(3,1,343),(4,1,344);
4907 /*!40000 ALTER TABLE `llx_user_rights` ENABLE KEYS */;
4908 UNLOCK TABLES;
4910 --
4911 -- Table structure for table `llx_usergroup`
4912 --
4914 DROP TABLE IF EXISTS `llx_usergroup`;
4915 /*!40101 SET @saved_cs_client = @@character_set_client */;
4916 /*!40101 SET character_set_client = utf8 */;
4917 CREATE TABLE `llx_usergroup` (
4918 `rowid` int(11) NOT NULL AUTO_INCREMENT,
4919 `nom` varchar(255) NOT NULL,
4920 `entity` int(11) NOT NULL DEFAULT '1',
4921 `datec` datetime DEFAULT NULL,
4922 `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
4923 `note` text,
4924 PRIMARY KEY (`rowid`),
4925 UNIQUE KEY `uk_usergroup_name` (`nom`,`entity`)
4926 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
4927 /*!40101 SET character_set_client = @saved_cs_client */;
4929 --
4930 -- Dumping data for table `llx_usergroup`
4931 --
4933 LOCK TABLES `llx_usergroup` WRITE;
4934 /*!40000 ALTER TABLE `llx_usergroup` DISABLE KEYS */;
4935 /*!40000 ALTER TABLE `llx_usergroup` ENABLE KEYS */;
4936 UNLOCK TABLES;
4938 --
4939 -- Table structure for table `llx_usergroup_rights`
4940 --
4942 DROP TABLE IF EXISTS `llx_usergroup_rights`;
4943 /*!40101 SET @saved_cs_client = @@character_set_client */;
4944 /*!40101 SET character_set_client = utf8 */;
4945 CREATE TABLE `llx_usergroup_rights` (
4946 `rowid` int(11) NOT NULL AUTO_INCREMENT,
4947 `fk_usergroup` int(11) NOT NULL,
4948 `fk_id` int(11) NOT NULL,
4949 PRIMARY KEY (`rowid`),
4950 UNIQUE KEY `fk_usergroup` (`fk_usergroup`,`fk_id`)
4951 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
4952 /*!40101 SET character_set_client = @saved_cs_client */;
4954 --
4955 -- Dumping data for table `llx_usergroup_rights`
4956 --
4958 LOCK TABLES `llx_usergroup_rights` WRITE;
4959 /*!40000 ALTER TABLE `llx_usergroup_rights` DISABLE KEYS */;
4960 /*!40000 ALTER TABLE `llx_usergroup_rights` ENABLE KEYS */;
4961 UNLOCK TABLES;
4963 --
4964 -- Table structure for table `llx_usergroup_user`
4965 --
4967 DROP TABLE IF EXISTS `llx_usergroup_user`;
4968 /*!40101 SET @saved_cs_client = @@character_set_client */;
4969 /*!40101 SET character_set_client = utf8 */;
4970 CREATE TABLE `llx_usergroup_user` (
4971 `rowid` int(11) NOT NULL AUTO_INCREMENT,
4972 `fk_user` int(11) NOT NULL,
4973 `fk_usergroup` int(11) NOT NULL,
4974 PRIMARY KEY (`rowid`),
4975 UNIQUE KEY `fk_user` (`fk_user`,`fk_usergroup`)
4976 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
4977 /*!40101 SET character_set_client = @saved_cs_client */;
4979 --
4980 -- Dumping data for table `llx_usergroup_user`
4981 --
4983 LOCK TABLES `llx_usergroup_user` WRITE;
4984 /*!40000 ALTER TABLE `llx_usergroup_user` DISABLE KEYS */;
4985 /*!40000 ALTER TABLE `llx_usergroup_user` ENABLE KEYS */;
4986 UNLOCK TABLES;
4987 /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
4989 /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
4990 /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
4991 /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
4992 /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
4993 /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
4994 /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
4995 /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
4997 -- Dump completed on 2011-07-03 19:34:32