-- MySQL dump 10.16 Distrib 10.1.45-MariaDB, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: gestionclient -- ------------------------------------------------------ -- Server version 10.1.45-MariaDB-0+deb9u1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `accord_paiement` -- DROP TABLE IF EXISTS `accord_paiement`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `accord_paiement` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `account_id` int(10) unsigned NOT NULL, `date_accord` bigint(20) NOT NULL, `date_echeance` bigint(20) NOT NULL, `date_coupure` bigint(20) unsigned NOT NULL, `raison_changement` text, `montant` decimal(10,2) NOT NULL, `method` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '0: undefined, 1: cheque, 2: comptant, 3: p. direct, 4: carte', `ferie` tinyint(1) NOT NULL DEFAULT '0', `note` text, `status` tinyint(1) NOT NULL DEFAULT '-1' COMMENT '-1 date non atteinte; 0 non respecté; 1 respecté', `staff_id` int(10) unsigned NOT NULL DEFAULT '1', `date_create` varchar(16) NOT NULL, PRIMARY KEY (`id`), KEY `account_id` (`account_id`) ) ENGINE=InnoDB AUTO_INCREMENT=7647 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `account` -- DROP TABLE IF EXISTS `account`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `account` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `customer_id` varchar(32) DEFAULT NULL, `date_orig` bigint(20) DEFAULT NULL, `date_last` bigint(20) DEFAULT NULL, `date_expire` bigint(20) DEFAULT NULL, `language_id` varchar(32) NOT NULL DEFAULT 'francais', `country_id` int(11) NOT NULL DEFAULT '124', `currency_id` int(11) DEFAULT NULL, `username` varchar(128) DEFAULT NULL, `password` varchar(128) DEFAULT NULL, `group_id` tinyint(4) NOT NULL DEFAULT '6' COMMENT '5-Client;6-Prospect;7-Fournisseur', `misc` varchar(128) DEFAULT NULL, `status` int(11) DEFAULT NULL COMMENT '1:actif, 2:suspension,3:non paiement, 4: terminé, 5:recouvr;6:creance', `first_name` varchar(128) DEFAULT NULL, `middle_name` varchar(128) DEFAULT NULL, `last_name` varchar(128) DEFAULT NULL, `mandataire` varchar(128) DEFAULT NULL, `title` varchar(128) DEFAULT NULL, `email` varchar(255) DEFAULT NULL, `email_autre` varchar(255) DEFAULT NULL, `company` varchar(255) DEFAULT NULL, `contact` text NOT NULL, `address1` varchar(128) DEFAULT NULL, `address2` varchar(128) DEFAULT NULL, `city` varchar(128) DEFAULT NULL, `state` varchar(32) DEFAULT NULL, `zip` varchar(16) DEFAULT NULL, `tel_home` varchar(16) DEFAULT NULL, `tel_office` varchar(16) DEFAULT NULL, `tel_office_ext` varchar(4) DEFAULT NULL, `cell` varchar(16) DEFAULT NULL, `fax` varchar(16) DEFAULT NULL, `invoice_delivery` int(11) NOT NULL DEFAULT '2' COMMENT '1-email;2-poste;3-default', `land_owner` tinyint(1) NOT NULL DEFAULT '0', `frais` tinyint(1) NOT NULL DEFAULT '0', `ppa` tinyint(1) NOT NULL DEFAULT '0', `ppa_all_invoice` tinyint(4) NOT NULL DEFAULT '0', `ppa_name` varchar(64) DEFAULT NULL, `ppa_code` varchar(255) DEFAULT NULL, `ppa_branch` varchar(255) DEFAULT NULL, `ppa_account` varchar(255) DEFAULT NULL, `ppa_amount` decimal(6,2) NOT NULL DEFAULT '0.00', `ppa_amount_buffer` double(6,2) NOT NULL DEFAULT '30.00', `ppa_all_tmp` tinyint(4) NOT NULL DEFAULT '0', `ppa_fixed` tinyint(1) NOT NULL DEFAULT '0', `commercial` tinyint(1) NOT NULL DEFAULT '0', `vip` tinyint(1) NOT NULL DEFAULT '0', `tax_group` tinyint(4) NOT NULL DEFAULT '1', `data_check` tinyint(1) NOT NULL DEFAULT '0', `created_by` int(11) DEFAULT NULL, `notes_client` varchar(256) DEFAULT NULL COMMENT 'Notes via portail', `keyword` varchar(512) DEFAULT NULL, `terminate_reason` varchar(32) DEFAULT NULL, `terminate_cie` varchar(32) DEFAULT NULL, `terminate_note` mediumtext, `terminate_date` varchar(16) DEFAULT NULL, `call` tinyint(1) NOT NULL DEFAULT '0', `pub` tinyint(1) NOT NULL DEFAULT '1', `portal_client_log` tinyint(1) NOT NULL DEFAULT '0', `mauvais_payeur` tinyint(1) unsigned NOT NULL DEFAULT '0', `renew_phone` tinyint(1) NOT NULL DEFAULT '0', `ppa_cc` tinyint(4) NOT NULL DEFAULT '0', `stripe_id` varchar(32) DEFAULT NULL, `stripe_ppa` tinyint(4) NOT NULL DEFAULT '0', `stripe_ppa_nocc` tinyint(4) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `customer_id` (`customer_id`), KEY `status` (`status`), KEY `id` (`id`,`status`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=15448 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `account_group` -- DROP TABLE IF EXISTS `account_group`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `account_group` ( `id` tinyint(4) NOT NULL AUTO_INCREMENT, `date_orig` bigint(20) DEFAULT NULL, `group_name` varchar(64) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `account_memo` -- DROP TABLE IF EXISTS `account_memo`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `account_memo` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `date_orig` bigint(20) DEFAULT NULL, `last_updated` bigint(20) unsigned NOT NULL DEFAULT '0', `staff_id` bigint(20) DEFAULT NULL, `account_id` bigint(20) DEFAULT NULL, `memo` varchar(1024) DEFAULT NULL, `color` varchar(6) NOT NULL DEFAULT '000000', `bcolor` varchar(6) NOT NULL DEFAULT 'E0E0E0', `border` varchar(6) NOT NULL DEFAULT '000000', PRIMARY KEY (`id`), KEY `account_id` (`account_id`), KEY `staff_id` (`staff_id`) ) ENGINE=InnoDB AUTO_INCREMENT=29982 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `account_memo_template` -- DROP TABLE IF EXISTS `account_memo_template`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `account_memo_template` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(32) NOT NULL, `color` varchar(6) NOT NULL, `bcolor` varchar(6) NOT NULL, `border` varchar(6) NOT NULL DEFAULT '000000', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `account_profile` -- DROP TABLE IF EXISTS `account_profile`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `account_profile` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `account_id` int(10) unsigned NOT NULL, `profile_id` varchar(64) NOT NULL, `address_id` varchar(64) NOT NULL, `card_id` varchar(64) NOT NULL, `token` varchar(32) NOT NULL, `initial_transaction` varchar(128) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=766 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `account_suspension` -- DROP TABLE IF EXISTS `account_suspension`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `account_suspension` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `account_id` int(10) unsigned NOT NULL, `date_start` bigint(20) unsigned NOT NULL, `date_end` bigint(20) unsigned NOT NULL, `note` varchar(128) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `account_id` (`account_id`) ) ENGINE=InnoDB AUTO_INCREMENT=1050 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `autologin` -- DROP TABLE IF EXISTS `autologin`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `autologin` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `token` varchar(32) NOT NULL, `date` varchar(16) NOT NULL, `staff` int(10) unsigned NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `babytel` -- DROP TABLE IF EXISTS `babytel`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `babytel` ( `date_time` bigint(20) DEFAULT NULL, `record_type` varchar(20) DEFAULT NULL, `record_format_version` int(11) DEFAULT NULL, `id` varchar(24) DEFAULT NULL, `rate_id` varchar(20) DEFAULT NULL, `cost` float DEFAULT NULL, `calling_user` varchar(24) DEFAULT NULL, `called_user` varchar(24) DEFAULT NULL, `calling_domain` varchar(24) DEFAULT NULL, `called_domain` varchar(24) DEFAULT NULL, `destination` varchar(24) DEFAULT NULL, `duration_seconds` varchar(24) DEFAULT NULL, `call_start` varchar(24) DEFAULT NULL, `call_type` varchar(24) DEFAULT NULL, `call_direction` varchar(24) DEFAULT NULL, `test_call` varchar(24) DEFAULT NULL, `calling_number` varchar(24) DEFAULT NULL, `called_number_e164` varchar(24) DEFAULT NULL, `billable_duration` varchar(24) DEFAULT NULL, `billed_duration_outbound_seconds` varchar(24) DEFAULT NULL, `reseller_cost` float DEFAULT NULL, `master_account_id` varchar(24) DEFAULT NULL, `forwarded_to` varchar(24) DEFAULT NULL, `master_account_pk` varchar(24) DEFAULT NULL, `account_pk` varchar(24) DEFAULT NULL, `reseller_rate_id` varchar(24) DEFAULT NULL, `internal_information1` varchar(24) DEFAULT NULL, `concurrents_calls` varchar(24) DEFAULT NULL, `external_id` varchar(24) DEFAULT NULL, `commission` float DEFAULT NULL, `minute_plan_id` varchar(24) DEFAULT NULL, `internal_information2` varchar(24) DEFAULT NULL, `internal_information3` varchar(24) DEFAULT NULL, `billed_duration_inbound_seconds` varchar(24) DEFAULT NULL, `selected_destination` varchar(24) DEFAULT NULL, `internal_information4` varchar(24) DEFAULT NULL, `internal_information5` varchar(24) DEFAULT NULL, `cost_center` varchar(24) DEFAULT NULL, `subscriber_group` varchar(24) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `banque_heure_staff` -- DROP TABLE IF EXISTS `banque_heure_staff`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `banque_heure_staff` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `staff_id` int(10) unsigned NOT NULL, `week` tinyint(3) unsigned NOT NULL, `year` smallint(5) unsigned NOT NULL, `sunday` varchar(16) CHARACTER SET utf8 DEFAULT NULL, `heure` double(5,2) NOT NULL, PRIMARY KEY (`id`), KEY `staff_id` (`staff_id`) ) ENGINE=InnoDB AUTO_INCREMENT=741 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `bon_travail` -- DROP TABLE IF EXISTS `bon_travail`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `bon_travail` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `date` bigint(20) unsigned DEFAULT NULL, `account_id` int(10) unsigned NOT NULL, `tech1` int(10) unsigned DEFAULT NULL, `heure_arrive_t1` varchar(10) DEFAULT NULL, `heure_depart_t1` varchar(10) DEFAULT NULL, `tech2` int(10) unsigned DEFAULT NULL, `heure_arrive_t2` varchar(10) DEFAULT NULL, `heure_depart_t2` varchar(10) DEFAULT NULL, `note` text, `subtotal` decimal(10,2) DEFAULT NULL, `tps` decimal(10,2) DEFAULT NULL, `tvq` decimal(10,2) DEFAULT NULL, `total` decimal(10,2) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=14487 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `bon_travail_item` -- DROP TABLE IF EXISTS `bon_travail_item`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `bon_travail_item` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `bon_id` int(10) unsigned NOT NULL, `product_id` int(10) unsigned NOT NULL, `qte` int(11) NOT NULL, `price` decimal(10,2) NOT NULL, `desc` text CHARACTER SET utf8 NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `carte_temps` -- DROP TABLE IF EXISTS `carte_temps`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `carte_temps` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `week` tinyint(3) unsigned NOT NULL, `year` int(10) unsigned DEFAULT NULL, `date` bigint(20) unsigned NOT NULL, `staff_id` bigint(20) unsigned NOT NULL, `start_am` bigint(20) unsigned DEFAULT NULL, `end_am` bigint(20) unsigned DEFAULT NULL, `start_pm` bigint(20) unsigned DEFAULT NULL, `end_pm` bigint(20) unsigned DEFAULT NULL, `start_night` bigint(20) unsigned DEFAULT NULL, `end_night` bigint(20) unsigned DEFAULT NULL, `relais` double unsigned DEFAULT NULL COMMENT 'heure dispo', `comment` text, `note_int` text, `conge` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '0-present;1-absent;2-vacances;3-ferie;4-maladie', `appr` varchar(8) DEFAULT NULL, `appr_dir` varchar(8) DEFAULT NULL, PRIMARY KEY (`id`), KEY `staff_id` (`staff_id`) ) ENGINE=InnoDB AUTO_INCREMENT=98244 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `carte_temps_periode` -- DROP TABLE IF EXISTS `carte_temps_periode`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `carte_temps_periode` ( `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `debut` varchar(16) NOT NULL, `fin` varchar(16) NOT NULL, `paid` varchar(16) NOT NULL, `periode` tinyint(3) unsigned NOT NULL, `annee` smallint(5) unsigned NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1050 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `checklist_relais` -- DROP TABLE IF EXISTS `checklist_relais`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `checklist_relais` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `site_id` int(10) unsigned NOT NULL, `site_name` varchar(128) DEFAULT NULL, `account_id` int(10) unsigned NOT NULL, `priority` tinyint(3) unsigned NOT NULL DEFAULT '2', `done` tinyint(3) unsigned NOT NULL DEFAULT '0', `equipement` text, `connecteur` text, `grounding` text, `surge_lightning` text, `switch_poe` text, `switch_giga_shield` text, `batterie` text, `solidity` text, `redondance` text, `antenne_58_360` text, `antenne_24_360` text, `rspro_maj` text, `boite` text, `cable` text, `staros_ubnt` text, `autre` text, PRIMARY KEY (`id`), UNIQUE KEY `site_id` (`site_id`) ) ENGINE=InnoDB AUTO_INCREMENT=155 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `client_pwd` -- DROP TABLE IF EXISTS `client_pwd`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `client_pwd` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `account_id` int(10) unsigned NOT NULL, `date` bigint(20) unsigned NOT NULL, `uid` varchar(32) NOT NULL, `used` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=9716 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `compta_comptes` -- DROP TABLE IF EXISTS `compta_comptes`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `compta_comptes` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `category` varchar(64) DEFAULT NULL, `num_compte` varchar(16) DEFAULT NULL, `desc` mediumtext, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=49 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `compta_comptes_soldes` -- DROP TABLE IF EXISTS `compta_comptes_soldes`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `compta_comptes_soldes` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `num_compte` int(11) NOT NULL, `year` int(11) NOT NULL, `amount` float NOT NULL, `comment` varchar(64) NOT NULL, `type` varchar(3) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `compta_journal_ecriture` -- DROP TABLE IF EXISTS `compta_journal_ecriture`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `compta_journal_ecriture` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `date_orig` bigint(20) DEFAULT NULL, `type` varchar(4) DEFAULT NULL, `num` bigint(20) DEFAULT NULL, `customer_id` varchar(32) DEFAULT NULL, `full_name` varchar(256) DEFAULT NULL, `desc` mediumtext, `mo` varchar(4) DEFAULT NULL, `em` tinyint(4) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `customer_id` (`customer_id`), KEY `date_orig` (`date_orig`), KEY `num` (`num`) ) ENGINE=InnoDB AUTO_INCREMENT=1244904 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `compta_journal_ecriture_bk` -- DROP TABLE IF EXISTS `compta_journal_ecriture_bk`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `compta_journal_ecriture_bk` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `date_orig` bigint(20) DEFAULT NULL, `type` varchar(4) DEFAULT NULL, `num` bigint(20) DEFAULT NULL, `customer_id` varchar(32) DEFAULT NULL, `full_name` varchar(256) DEFAULT NULL, `desc` mediumtext, `mo` varchar(4) DEFAULT NULL, `em` tinyint(4) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `customer_id` (`customer_id`), KEY `date_orig` (`date_orig`), KEY `num` (`num`) ) ENGINE=InnoDB AUTO_INCREMENT=846566 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `compta_journal_ecriture_detail` -- DROP TABLE IF EXISTS `compta_journal_ecriture_detail`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `compta_journal_ecriture_detail` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `journal_id` bigint(20) DEFAULT NULL, `num_compte` bigint(20) DEFAULT NULL, `amount` double(20,2) DEFAULT NULL, `action` varchar(16) DEFAULT NULL, PRIMARY KEY (`id`), KEY `journal_id` (`journal_id`) ) ENGINE=InnoDB AUTO_INCREMENT=5092121 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `compta_journal_ecriture_detail_bk` -- DROP TABLE IF EXISTS `compta_journal_ecriture_detail_bk`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `compta_journal_ecriture_detail_bk` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `journal_id` bigint(20) DEFAULT NULL, `num_compte` bigint(20) DEFAULT NULL, `amount` double(20,2) DEFAULT NULL, `action` varchar(16) DEFAULT NULL, PRIMARY KEY (`id`), KEY `journal_id` (`journal_id`) ) ENGINE=InnoDB AUTO_INCREMENT=2985145 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `compta_periode` -- DROP TABLE IF EXISTS `compta_periode`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `compta_periode` ( `month` int(2) NOT NULL DEFAULT '7', PRIMARY KEY (`month`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `compta_ppa_file_id` -- DROP TABLE IF EXISTS `compta_ppa_file_id`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `compta_ppa_file_id` ( `last_id` int(11) NOT NULL DEFAULT '1' COMMENT 'Next ID et non last ID', PRIMARY KEY (`last_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `compta_setup` -- DROP TABLE IF EXISTS `compta_setup`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `compta_setup` ( `setup_id` int(11) NOT NULL DEFAULT '1', `period_month` int(2) NOT NULL DEFAULT '7', `ppa_id` int(11) NOT NULL DEFAULT '1', `excedent_max` double NOT NULL DEFAULT '0', `month_closed` bigint(20) DEFAULT NULL, `pay_week_closed` tinyint(3) unsigned NOT NULL, `attachment_ext` mediumtext NOT NULL, `netadmin_dispo` int(10) unsigned NOT NULL DEFAULT '0', `imap_token` text, PRIMARY KEY (`setup_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `conference` -- DROP TABLE IF EXISTS `conference`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `conference` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `room_id` int(10) unsigned NOT NULL, `time_start` varchar(16) NOT NULL, `time_end` varchar(16) NOT NULL, `name` varchar(128) NOT NULL, `description` text, `host` int(10) unsigned NOT NULL COMMENT 'staff_id', `participant` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `conference_room` -- DROP TABLE IF EXISTS `conference_room`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `conference_room` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(128) NOT NULL, `status` tinyint(4) NOT NULL DEFAULT '1', `location` varchar(128) DEFAULT NULL, `description` text, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `conso` -- DROP TABLE IF EXISTS `conso`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `conso` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `ip_id` varchar(16) DEFAULT NULL, `date` bigint(20) DEFAULT NULL, `total` bigint(48) DEFAULT '0', `total_day` bigint(48) DEFAULT '0', `total_night` bigint(48) DEFAULT '0', PRIMARY KEY (`id`), KEY `ip_id` (`ip_id`) ) ENGINE=InnoDB AUTO_INCREMENT=8289 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `conso_archive` -- DROP TABLE IF EXISTS `conso_archive`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `conso_archive` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `ip_id` varchar(16) DEFAULT NULL, `date` bigint(20) DEFAULT NULL, `total` bigint(48) DEFAULT '0', `total_day` bigint(48) DEFAULT '0', `total_night` bigint(48) DEFAULT '0', PRIMARY KEY (`id`), KEY `ip_id` (`ip_id`) ) ENGINE=InnoDB AUTO_INCREMENT=228913 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `conso_avis` -- DROP TABLE IF EXISTS `conso_avis`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `conso_avis` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `date` bigint(20) NOT NULL, `account_id` int(10) unsigned NOT NULL, `delivery_id` int(10) unsigned NOT NULL DEFAULT '0', `service_id` int(10) unsigned NOT NULL DEFAULT '0', `ip_id` int(11) NOT NULL, `avis` varchar(32) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `conso_radius` -- DROP TABLE IF EXISTS `conso_radius`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `conso_radius` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `username` varchar(32) NOT NULL, `date` varchar(32) NOT NULL, `download` text NOT NULL, `upload` text NOT NULL, `nb_sess` int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `username` (`username`), KEY `date` (`date`) ) ENGINE=InnoDB AUTO_INCREMENT=423823565 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `conso_radius_daily` -- DROP TABLE IF EXISTS `conso_radius_daily`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `conso_radius_daily` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `username` varchar(32) NOT NULL, `date` varchar(32) NOT NULL, `download_nuit` text NOT NULL, `upload_nuit` text NOT NULL, `download_jour` text NOT NULL, `upload_jour` text NOT NULL, PRIMARY KEY (`id`), KEY `username` (`username`), KEY `date` (`date`) ) ENGINE=InnoDB AUTO_INCREMENT=2562257 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `conso_radius_daily2` -- DROP TABLE IF EXISTS `conso_radius_daily2`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `conso_radius_daily2` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `username` varchar(32) NOT NULL, `date` varchar(32) NOT NULL, `download_nuit` varchar(64) NOT NULL DEFAULT '0', `upload_nuit` varchar(64) NOT NULL DEFAULT '0', `download_jour` varchar(64) NOT NULL DEFAULT '0', `upload_jour` varchar(64) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `username` (`username`), KEY `date` (`date`) ) ENGINE=InnoDB AUTO_INCREMENT=18114434 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `conso_radius_hourly` -- DROP TABLE IF EXISTS `conso_radius_hourly`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `conso_radius_hourly` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `username` varchar(32) NOT NULL, `date` varchar(32) NOT NULL, `download` text NOT NULL, `upload` text NOT NULL, PRIMARY KEY (`id`), KEY `username` (`username`), KEY `date` (`date`) ) ENGINE=InnoDB AUTO_INCREMENT=423803157 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `conso_radius_monthly` -- DROP TABLE IF EXISTS `conso_radius_monthly`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `conso_radius_monthly` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `date` varchar(32) NOT NULL, `username` varchar(32) NOT NULL, `nuit` text NOT NULL, `jour` text NOT NULL, PRIMARY KEY (`id`), KEY `date` (`date`), KEY `username` (`username`) ) ENGINE=InnoDB AUTO_INCREMENT=77524 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `conso_radius_monthly2` -- DROP TABLE IF EXISTS `conso_radius_monthly2`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `conso_radius_monthly2` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `date` varchar(32) NOT NULL, `username` varchar(32) NOT NULL, `nuit` varchar(64) NOT NULL DEFAULT '0', `jour` varchar(64) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `date` (`date`), KEY `username` (`username`) ) ENGINE=InnoDB AUTO_INCREMENT=579702 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `country` -- DROP TABLE IF EXISTS `country`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `country` ( `id` int(11) DEFAULT NULL, `name_en` varchar(128) DEFAULT NULL, `name_fr` varchar(128) DEFAULT NULL, `description` varchar(128) DEFAULT NULL, `notes` varchar(128) DEFAULT NULL, `two_code` varchar(16) DEFAULT NULL, `three_code` varchar(16) DEFAULT NULL, UNIQUE KEY `IDS` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `credit_code` -- DROP TABLE IF EXISTS `credit_code`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `credit_code` ( `id` int(11) NOT NULL AUTO_INCREMENT, `code` varchar(16) NOT NULL, `desc` varchar(256) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `debug` -- DROP TABLE IF EXISTS `debug`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `debug` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `autor` varchar(32) DEFAULT NULL, `url` varchar(128) DEFAULT NULL, `date_last` bigint(20) DEFAULT NULL, `desc` mediumtext, `note4autor` mediumtext, `note4dev` mediumtext, `status` varchar(64) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `delivery` -- DROP TABLE IF EXISTS `delivery`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `delivery` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `account_id` bigint(20) DEFAULT NULL, `name` varchar(32) NOT NULL, `comment` varchar(512) NOT NULL, `date_orig` bigint(20) DEFAULT NULL, `address1` varchar(128) DEFAULT NULL, `address2` varchar(128) DEFAULT NULL, `city` varchar(32) DEFAULT NULL, `state` varchar(32) DEFAULT NULL, `zip` varchar(16) DEFAULT NULL, `longitude` decimal(12,7) NOT NULL, `latitude` decimal(12,7) NOT NULL, `tel_home` varchar(16) DEFAULT NULL, `tel_office` varchar(16) DEFAULT NULL, `tel_office_ext` varchar(4) DEFAULT NULL, `cell` varchar(12) DEFAULT NULL, `fax` varchar(12) DEFAULT NULL, `email` varchar(255) DEFAULT NULL, `quota_max_day` bigint(20) unsigned NOT NULL DEFAULT '0', `quota_max_night` bigint(20) unsigned NOT NULL DEFAULT '0', `contact` varchar(128) DEFAULT NULL, `expanded` tinyint(4) DEFAULT '0', `placemarks_id` bigint(20) unsigned DEFAULT NULL, `epg_subid` int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `account_id` (`account_id`), KEY `placemarks_id` (`placemarks_id`) ) ENGINE=InnoDB AUTO_INCREMENT=17331 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `delivery_history` -- DROP TABLE IF EXISTS `delivery_history`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `delivery_history` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `account_id` int(10) unsigned NOT NULL, `date_orig` bigint(20) unsigned NOT NULL, `address1` varchar(128) NOT NULL, `address2` varchar(128) NOT NULL, `city` varchar(128) NOT NULL, `state` varchar(32) NOT NULL, `zip` varchar(8) NOT NULL, PRIMARY KEY (`id`), KEY `account_id` (`account_id`) ) ENGINE=InnoDB AUTO_INCREMENT=16285 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `deposit_slip` -- DROP TABLE IF EXISTS `deposit_slip`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `deposit_slip` ( `id` int(11) NOT NULL AUTO_INCREMENT, `customer_id` varchar(32) DEFAULT NULL, `name` varchar(512) DEFAULT NULL, `amount` double NOT NULL DEFAULT '0', `type` varchar(32) NOT NULL, `desc` varchar(255) DEFAULT NULL, `date` bigint(20) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `device` -- DROP TABLE IF EXISTS `device`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `device` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `delivery_id` int(10) unsigned NOT NULL, `category` varchar(64) NOT NULL, `name` varchar(128) NOT NULL, `manufacturier` varchar(128) DEFAULT NULL, `model` varchar(128) DEFAULT NULL, `sn` varchar(128) DEFAULT NULL, `mac` varchar(32) DEFAULT NULL, `manage` varchar(256) NOT NULL, `port` varchar(5) NOT NULL DEFAULT '', `protocol` varchar(8) NOT NULL DEFAULT 'https', `manage_cli` varchar(256) NOT NULL, `port_cli` varchar(5) NOT NULL DEFAULT '', `protocol_cli` varchar(8) NOT NULL, `user` varchar(64) NOT NULL, `pass` varchar(128) NOT NULL, `parent` int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `delivery_id` (`delivery_id`), KEY `sn` (`sn`) ) ENGINE=InnoDB AUTO_INCREMENT=15280 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `device_archive` -- DROP TABLE IF EXISTS `device_archive`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `device_archive` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `delivery_id` int(10) unsigned NOT NULL, `category` varchar(64) NOT NULL, `name` varchar(128) NOT NULL, `manufacturier` varchar(128) DEFAULT NULL, `model` varchar(128) DEFAULT NULL, `sn` varchar(128) DEFAULT NULL, `mac` varchar(32) DEFAULT NULL, `manage` varchar(256) NOT NULL, `port` varchar(5) NOT NULL DEFAULT '', `protocol` varchar(8) NOT NULL DEFAULT 'https', `manage_cli` varchar(256) NOT NULL, `port_cli` varchar(5) NOT NULL DEFAULT '', `protocol_cli` varchar(8) NOT NULL, `user` varchar(64) NOT NULL, `pass` varchar(128) NOT NULL, `parent` int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `delivery_id` (`delivery_id`), KEY `sn` (`sn`) ) ENGINE=InnoDB AUTO_INCREMENT=15205 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `device_attr` -- DROP TABLE IF EXISTS `device_attr`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `device_attr` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `device_id` int(10) unsigned NOT NULL, `attr` varchar(128) NOT NULL, `value` varchar(128) NOT NULL, PRIMARY KEY (`id`), KEY `device_id` (`device_id`) ) ENGINE=InnoDB AUTO_INCREMENT=500 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `device_link` -- DROP TABLE IF EXISTS `device_link`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `device_link` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `parent` int(10) unsigned NOT NULL, `child` int(10) unsigned NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1008 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `device_template` -- DROP TABLE IF EXISTS `device_template`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `device_template` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `nom` varchar(128) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `device_template_attr` -- DROP TABLE IF EXISTS `device_template_attr`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `device_template_attr` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `template_id` int(10) unsigned NOT NULL, `attr` varchar(128) NOT NULL, `default_val` varchar(128) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `email` -- DROP TABLE IF EXISTS `email`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `email` ( `id` int(11) NOT NULL AUTO_INCREMENT, `account_id` bigint(20) DEFAULT NULL, `email` varchar(128) DEFAULT NULL, `password` varchar(128) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `fibre` -- DROP TABLE IF EXISTS `fibre`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `fibre` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `terrain` varchar(16) NOT NULL, `rue` varchar(128) NOT NULL, `ville` varchar(128) NOT NULL, `zip` varchar(7) NOT NULL DEFAULT '', `ontid` int(10) unsigned DEFAULT NULL, `sn` varchar(32) DEFAULT NULL, `tech` smallint(5) unsigned NOT NULL DEFAULT '2' COMMENT '1-huawei;2-raisecom; 3-tp_link', `info_connect` varchar(64) NOT NULL DEFAULT '172.17.0.2', `frame` tinyint(3) unsigned DEFAULT NULL, `slot` tinyint(3) unsigned DEFAULT NULL, `port` tinyint(3) unsigned DEFAULT NULL, `vlan_manage` int(10) unsigned DEFAULT NULL, `vlan_internet` int(10) unsigned DEFAULT NULL, `vlan_telephone` int(10) unsigned DEFAULT NULL, `vlan_tele` int(10) unsigned DEFAULT NULL, `manage_service_id` int(10) unsigned DEFAULT NULL, `internet_service_id` int(10) unsigned DEFAULT NULL, `telephone_service_id` int(10) unsigned DEFAULT NULL, `tele_service_id` int(10) unsigned DEFAULT NULL, `service_id` int(10) unsigned DEFAULT NULL, `placemarks_id` bigint(20) unsigned DEFAULT NULL, `appartements_id` bigint(20) unsigned DEFAULT NULL COMMENT 'table appartements dans db map', `latitude` float(10,6) DEFAULT NULL, `longitude` float(10,6) DEFAULT NULL, `boitier_pas_install` tinyint(3) unsigned DEFAULT NULL, `description` varchar(50) DEFAULT NULL, `suite` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '1=suite, 0=vraie adresse/appart', `distance` int(10) unsigned DEFAULT NULL COMMENT 'distance entre residence et boitier client', `nb_portees` tinyint(3) unsigned DEFAULT NULL COMMENT 'nb de portees de poteaux', `temps_estim` mediumint(8) unsigned DEFAULT NULL COMMENT 'temps estime pour faire l''installation en minutes', PRIMARY KEY (`id`), KEY `service_id` (`service_id`), KEY `placemarks_id` (`placemarks_id`,`sn`) USING BTREE, KEY `info_connect` (`info_connect`,`appartements_id`,`sn`,`slot`,`port`) USING BTREE, KEY `appartements_id` (`appartements_id`,`sn`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=17575 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `fibre_olt` -- DROP TABLE IF EXISTS `fibre_olt`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `fibre_olt` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `tech` smallint(5) unsigned NOT NULL, `ip` varchar(64) NOT NULL, `description` varchar(128) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `fibre_service_port` -- DROP TABLE IF EXISTS `fibre_service_port`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `fibre_service_port` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `last_service_id` int(10) unsigned NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `fibre_suivi` -- DROP TABLE IF EXISTS `fibre_suivi`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `fibre_suivi` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `customer_id` varchar(32) DEFAULT NULL, `first_name` varchar(64) NOT NULL, `last_name` varchar(64) NOT NULL, `address` varchar(128) NOT NULL, `city` varchar(128) NOT NULL, `zip` varchar(7) NOT NULL, `phone` varchar(10) NOT NULL, `email` varchar(64) DEFAULT NULL, `longitude` decimal(12,7) NOT NULL, `latitude` decimal(12,7) NOT NULL, `called` tinyint(4) NOT NULL DEFAULT '-1', `create_by` int(10) unsigned NOT NULL DEFAULT '0', `note` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1953 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `fibre_tech` -- DROP TABLE IF EXISTS `fibre_tech`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `fibre_tech` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `description` varchar(128) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `fibre_videotron` -- DROP TABLE IF EXISTS `fibre_videotron`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `fibre_videotron` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `date` varchar(16) NOT NULL, `download` varchar(128) NOT NULL DEFAULT '0', `upload` varchar(128) NOT NULL DEFAULT '0', `ethernet` varchar(64) NOT NULL DEFAULT '', `interface` varchar(128) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=799111 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `fournisseur` -- DROP TABLE IF EXISTS `fournisseur`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `fournisseur` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `nom` varchar(128) NOT NULL, `email` varchar(64) NOT NULL, `actif` tinyint(1) NOT NULL DEFAULT '1', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=96 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `gantt` -- DROP TABLE IF EXISTS `gantt`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `gantt` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `account_id` int(10) unsigned NOT NULL DEFAULT '0', `name` varchar(128) DEFAULT NULL, `gantt` text NOT NULL, `closed` tinyint(4) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `gantt_template` -- DROP TABLE IF EXISTS `gantt_template`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `gantt_template` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(128) DEFAULT NULL, `gantt` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hour_bank` -- DROP TABLE IF EXISTS `hour_bank`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hour_bank` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `account_id` bigint(20) unsigned NOT NULL, `remaining_time` int(5) NOT NULL DEFAULT '0', `expiration_date` bigint(20) unsigned NOT NULL DEFAULT '0', `note` mediumtext, `recurrence` tinyint(3) unsigned NOT NULL DEFAULT '0', `reset_value` smallint(5) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `account_id` (`account_id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hour_bank_detail` -- DROP TABLE IF EXISTS `hour_bank_detail`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hour_bank_detail` ( `id` int(11) NOT NULL AUTO_INCREMENT, `hour_id` int(11) NOT NULL, `staff_id` bigint(20) unsigned DEFAULT NULL, `date_orig` bigint(20) unsigned NOT NULL, `used_time` smallint(6) NOT NULL DEFAULT '0', `ticket_id` bigint(20) unsigned DEFAULT NULL, `working_order` varchar(16) DEFAULT NULL, `detail` mediumtext, PRIMARY KEY (`id`), KEY `hour_id` (`hour_id`) ) ENGINE=InnoDB AUTO_INCREMENT=364 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `intranet_doc` -- DROP TABLE IF EXISTS `intranet_doc`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `intranet_doc` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `account_id` bigint(20) NOT NULL, `date` bigint(20) NOT NULL, `title` varchar(128) NOT NULL, `msg` mediumtext NOT NULL, `attachment` varchar(256) NOT NULL, `unread_csv` mediumtext NOT NULL, `path_id` int(10) unsigned NOT NULL, `priority_order` int(11) NOT NULL DEFAULT '1', `update_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `account_id` (`account_id`), KEY `path_id` (`path_id`) ) ENGINE=InnoDB AUTO_INCREMENT=1993 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `intranet_doc_paths` -- DROP TABLE IF EXISTS `intranet_doc_paths`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `intranet_doc_paths` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `description` varchar(256) NOT NULL, `parent_id` int(11) unsigned DEFAULT NULL, `priority_order` int(11) NOT NULL DEFAULT '1', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=508 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `intranet_doc_reply` -- DROP TABLE IF EXISTS `intranet_doc_reply`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `intranet_doc_reply` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `feed_id` bigint(20) NOT NULL, `date` bigint(20) NOT NULL, `account_id` bigint(20) NOT NULL, `msg` mediumtext NOT NULL, `attachment` bigint(20) NOT NULL DEFAULT '0', `update_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=79 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `intranet_feed` -- DROP TABLE IF EXISTS `intranet_feed`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `intranet_feed` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `account_id` bigint(20) NOT NULL, `date` bigint(20) NOT NULL, `title` varchar(128) NOT NULL, `msg` mediumtext NOT NULL, `attachment` varchar(256) NOT NULL, `unread_csv` mediumtext NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=107 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `intranet_feed_reply` -- DROP TABLE IF EXISTS `intranet_feed_reply`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `intranet_feed_reply` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `feed_id` bigint(20) NOT NULL, `date` bigint(20) NOT NULL, `account_id` bigint(20) NOT NULL, `msg` mediumtext NOT NULL, `attachment` bigint(20) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `intranet_techniciens` -- DROP TABLE IF EXISTS `intranet_techniciens`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `intranet_techniciens` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `account_id` bigint(20) NOT NULL, `date` bigint(20) NOT NULL, `title` varchar(128) NOT NULL, `msg` mediumtext NOT NULL, `attachment` varchar(256) NOT NULL, `unread_csv` mediumtext NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `intranet_techniciens_reply` -- DROP TABLE IF EXISTS `intranet_techniciens_reply`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `intranet_techniciens_reply` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `feed_id` bigint(20) NOT NULL, `date` bigint(20) NOT NULL, `account_id` bigint(20) NOT NULL, `msg` mediumtext NOT NULL, `attachment` bigint(20) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `intranet_techno` -- DROP TABLE IF EXISTS `intranet_techno`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `intranet_techno` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `account_id` bigint(20) NOT NULL, `date` bigint(20) NOT NULL, `title` varchar(128) NOT NULL, `msg` mediumtext NOT NULL, `attachment` varchar(256) NOT NULL, `unread_csv` mediumtext NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=48 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `intranet_techno_reply` -- DROP TABLE IF EXISTS `intranet_techno_reply`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `intranet_techno_reply` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `feed_id` bigint(20) NOT NULL, `date` bigint(20) NOT NULL, `account_id` bigint(20) NOT NULL, `msg` mediumtext NOT NULL, `attachment` bigint(20) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `inventaire_log` -- DROP TABLE IF EXISTS `inventaire_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `inventaire_log` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `prod_tag` varchar(255) NOT NULL, `staff_id` int(10) unsigned NOT NULL, `action` varchar(1) NOT NULL COMMENT 'a:Ajouter;r:Retirer', `qte` int(10) unsigned NOT NULL, `timestamp` varchar(10) NOT NULL, PRIMARY KEY (`id`), KEY `prod_tag` (`prod_tag`) ) ENGINE=InnoDB AUTO_INCREMENT=22728 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `invoice` -- DROP TABLE IF EXISTS `invoice`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `invoice` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `date_orig` bigint(20) DEFAULT NULL, `process_status` tinyint(4) DEFAULT NULL COMMENT '0:manual, 1:created, 2:proceed ', `billing_status` tinyint(4) DEFAULT NULL COMMENT '0:unpaid, 1:paid', `refund_status` tinyint(4) DEFAULT NULL COMMENT '0:normal, 1:renversement, 2:credit, 3:remboursement', `print_status` tinyint(4) DEFAULT NULL, `account_id` bigint(20) DEFAULT NULL, `total_amt` double(20,2) DEFAULT NULL, `billed_amt` double(20,2) DEFAULT NULL, `due_date` bigint(20) DEFAULT NULL, `notes` mediumtext, `template_message` mediumtext, `email_status` tinyint(4) DEFAULT NULL, `working_order` varchar(64) DEFAULT NULL, `correction` tinyint(4) NOT NULL DEFAULT '0', `ppa_charge` tinyint(4) NOT NULL DEFAULT '0', `credit_code_id` tinyint(4) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `account_id` (`account_id`), KEY `date_orig` (`date_orig`), KEY `billing_status` (`billing_status`), KEY `refund_status` (`refund_status`) ) ENGINE=InnoDB AUTO_INCREMENT=643654 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `invoice_bk` -- DROP TABLE IF EXISTS `invoice_bk`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `invoice_bk` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `date_orig` bigint(20) DEFAULT NULL, `process_status` tinyint(4) DEFAULT NULL COMMENT '0:manual, 1:created, 2:proceed ', `billing_status` tinyint(4) DEFAULT NULL COMMENT '0:unpaid, 1:paid', `refund_status` tinyint(4) DEFAULT NULL COMMENT '0:normal, 1:renversement, 2:credit, 3:remboursement', `print_status` tinyint(4) DEFAULT NULL, `account_id` bigint(20) DEFAULT NULL, `total_amt` double(20,2) DEFAULT NULL, `billed_amt` double(20,2) DEFAULT NULL, `due_date` bigint(20) DEFAULT NULL, `notes` mediumtext, `template_message` mediumtext, `email_status` tinyint(4) DEFAULT NULL, `working_order` varchar(64) DEFAULT NULL, `correction` tinyint(4) NOT NULL DEFAULT '0', `ppa_charge` tinyint(4) NOT NULL DEFAULT '0', `credit_code_id` tinyint(4) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `account_id` (`account_id`), KEY `date_orig` (`date_orig`), KEY `billing_status` (`billing_status`), KEY `refund_status` (`refund_status`) ) ENGINE=InnoDB AUTO_INCREMENT=439052 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `invoice_call` -- DROP TABLE IF EXISTS `invoice_call`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `invoice_call` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `date` bigint(20) unsigned NOT NULL, `number` varchar(10) NOT NULL, `amount` double(6,2) unsigned NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=631 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `invoice_item` -- DROP TABLE IF EXISTS `invoice_item`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `invoice_item` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `service_id` bigint(20) DEFAULT NULL, `invoice_id` bigint(20) DEFAULT NULL, `sku` varchar(128) DEFAULT NULL, `quantity` double NOT NULL DEFAULT '0', `product_name` varchar(512) DEFAULT NULL, `unitary_price` double DEFAULT NULL, `nosub` tinyint(1) unsigned NOT NULL DEFAULT '0', `delivery_name` varchar(32) DEFAULT NULL, PRIMARY KEY (`id`), KEY `invoice_id` (`invoice_id`) ) ENGINE=InnoDB AUTO_INCREMENT=1925636 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `invoice_item_bk` -- DROP TABLE IF EXISTS `invoice_item_bk`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `invoice_item_bk` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `service_id` bigint(20) DEFAULT NULL, `invoice_id` bigint(20) DEFAULT NULL, `sku` varchar(128) DEFAULT NULL, `quantity` double NOT NULL DEFAULT '0', `product_name` varchar(512) DEFAULT NULL, `unitary_price` double DEFAULT NULL, `nosub` tinyint(1) unsigned NOT NULL DEFAULT '0', `delivery_name` varchar(32) DEFAULT NULL, PRIMARY KEY (`id`), KEY `invoice_id` (`invoice_id`) ) ENGINE=InnoDB AUTO_INCREMENT=833239 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `invoice_msg_template` -- DROP TABLE IF EXISTS `invoice_msg_template`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `invoice_msg_template` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `name` varchar(32) DEFAULT NULL, `message` mediumtext, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `invoice_tax` -- DROP TABLE IF EXISTS `invoice_tax`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `invoice_tax` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `invoice_id` bigint(20) DEFAULT NULL, `tax_name` varchar(128) DEFAULT NULL, `tax_description` varchar(128) DEFAULT NULL, `tax_rate` double DEFAULT NULL, `amount` double(20,2) DEFAULT NULL, PRIMARY KEY (`id`), KEY `invoice_id` (`invoice_id`) ) ENGINE=InnoDB AUTO_INCREMENT=1268573 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `invoice_tax_bk` -- DROP TABLE IF EXISTS `invoice_tax_bk`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `invoice_tax_bk` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `invoice_id` bigint(20) DEFAULT NULL, `tax_name` varchar(128) DEFAULT NULL, `tax_description` varchar(128) DEFAULT NULL, `tax_rate` double DEFAULT NULL, `amount` double(20,2) DEFAULT NULL, PRIMARY KEY (`id`), KEY `invoice_id` (`invoice_id`) ) ENGINE=InnoDB AUTO_INCREMENT=864041 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ip` -- DROP TABLE IF EXISTS `ip`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `ip` ( `id` int(11) NOT NULL AUTO_INCREMENT, `service_id` bigint(20) DEFAULT NULL, `ip` varchar(32) DEFAULT NULL, `prive` varchar(32) DEFAULT NULL, `ip_relais` varchar(128) DEFAULT NULL, `technology` varchar(32) DEFAULT NULL, `name_access_point` varchar(64) DEFAULT NULL, `mac` varchar(32) DEFAULT NULL, `web_link` varchar(128) DEFAULT NULL, `link_relais` varchar(128) DEFAULT NULL, `ip_conso` tinyint(4) NOT NULL DEFAULT '0', `actif` tinyint(4) NOT NULL DEFAULT '1', `comment` mediumtext, `cidr` varchar(32) DEFAULT NULL, `last_updated` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `service_id` (`service_id`), KEY `ip` (`ip`), KEY `prive` (`prive`) ) ENGINE=InnoDB AUTO_INCREMENT=9884 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ip_admin` -- DROP TABLE IF EXISTS `ip_admin`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `ip_admin` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `ip` varchar(20) NOT NULL, `comment` varchar(128) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ip_history` -- DROP TABLE IF EXISTS `ip_history`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `ip_history` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `account_id` int(10) unsigned NOT NULL, `delivery_id` int(10) unsigned NOT NULL, `service_id` int(10) unsigned NOT NULL, `ip` varchar(32) NOT NULL, `date` bigint(20) unsigned NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=21000 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ip_pp` -- DROP TABLE IF EXISTS `ip_pp`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `ip_pp` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `ip_prive` varchar(32) NOT NULL, `ip_public` varchar(32) NOT NULL, `date` bigint(20) unsigned NOT NULL, `ip_id` varchar(64) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=237445 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ip_static` -- DROP TABLE IF EXISTS `ip_static`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `ip_static` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `ip` varchar(32) NOT NULL, `static` tinyint(1) unsigned NOT NULL DEFAULT '0', `reverse` varchar(128) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `ip` (`ip`) ) ENGINE=InnoDB AUTO_INCREMENT=7681 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ip_targo` -- DROP TABLE IF EXISTS `ip_targo`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `ip_targo` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `ip` varchar(15) NOT NULL, `cidr` tinyint(4) unsigned NOT NULL, `comment` varchar(128) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `licence` -- DROP TABLE IF EXISTS `licence`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `licence` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `nom` varchar(128) NOT NULL, `date` varchar(10) NOT NULL, `can_manage` varchar(64) NOT NULL, `comment` text, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `licence_key` -- DROP TABLE IF EXISTS `licence_key`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `licence_key` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `licence_id` int(10) unsigned NOT NULL, `licence_key` text NOT NULL, `date` varchar(10) NOT NULL, `date_expire` varchar(10) DEFAULT NULL, `comment` text NOT NULL, PRIMARY KEY (`id`), KEY `licence_id` (`licence_id`) ) ENGINE=InnoDB AUTO_INCREMENT=45 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `municipalite` -- DROP TABLE IF EXISTS `municipalite`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `municipalite` ( `id` int(8) unsigned NOT NULL AUTO_INCREMENT, `nom` varchar(64) NOT NULL, `code` varchar(4) NOT NULL, `administration` varchar(64) NOT NULL, `often_used` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1186 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `notes` -- DROP TABLE IF EXISTS `notes`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `notes` ( `id` int(11) NOT NULL AUTO_INCREMENT, `account_id` int(10) unsigned NOT NULL, `notes` mediumtext NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `notice_gui` -- DROP TABLE IF EXISTS `notice_gui`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `notice_gui` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `staff_id` int(10) unsigned NOT NULL, `message` text CHARACTER SET utf8 NOT NULL, `is_read` int(11) NOT NULL DEFAULT '0', `timestamp` varchar(10) CHARACTER SET utf8 NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=193771 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `notification` -- DROP TABLE IF EXISTS `notification`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `notification` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `staff_id` int(11) NOT NULL, `endpoint` text NOT NULL, `authToken` text NOT NULL, `publicKey` text NOT NULL, `contentEncoding` varchar(128) NOT NULL DEFAULT 'aesgcm', `plateforme` varchar(128) DEFAULT NULL, PRIMARY KEY (`id`), KEY `staff_id` (`staff_id`) ) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `notification_payload` -- DROP TABLE IF EXISTS `notification_payload`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `notification_payload` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `notification_id` int(10) unsigned NOT NULL, `payload` text NOT NULL, `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `passwords_manager` -- DROP TABLE IF EXISTS `passwords_manager`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `passwords_manager` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `title` varchar(64) NOT NULL, `login` varchar(255) NOT NULL, `pass` text NOT NULL, `url` varchar(255) DEFAULT NULL, `email` varchar(128) DEFAULT NULL, `phone` varchar(32) DEFAULT NULL, `category` varchar(32) DEFAULT NULL, `subcategory` varchar(32) DEFAULT NULL, `desc` mediumtext, `notes` mediumtext, `logs` mediumtext, `date_orig` bigint(20) NOT NULL, `date_last` bigint(20) NOT NULL, `users_granted` mediumtext, `group_granted` text, `created_by` bigint(20) NOT NULL, `keywords` mediumtext, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1245 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `passwords_manager_cat` -- DROP TABLE IF EXISTS `passwords_manager_cat`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `passwords_manager_cat` ( `id` tinyint(4) NOT NULL AUTO_INCREMENT, `title` varchar(32) NOT NULL, `desc` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `passwords_manager_group` -- DROP TABLE IF EXISTS `passwords_manager_group`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `passwords_manager_group` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(32) NOT NULL, `users` text, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `payment` -- DROP TABLE IF EXISTS `payment`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `payment` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `account_id` bigint(20) DEFAULT NULL, `date_orig` bigint(20) DEFAULT NULL, `amount` double DEFAULT NULL, `applied_amt` double DEFAULT NULL, `type` varchar(25) DEFAULT NULL, `memo` varchar(512) DEFAULT NULL, `reference` varchar(128) DEFAULT NULL, `excedent` tinyint(4) NOT NULL DEFAULT '0', `correction` tinyint(4) NOT NULL DEFAULT '0', `cr` tinyint(4) NOT NULL DEFAULT '0', `uniqsess` varchar(32) DEFAULT NULL, PRIMARY KEY (`id`), KEY `account_id` (`account_id`), KEY `date_orig` (`date_orig`) ) ENGINE=InnoDB AUTO_INCREMENT=542325 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `payment_item` -- DROP TABLE IF EXISTS `payment_item`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `payment_item` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `payment_id` bigint(20) DEFAULT NULL, `invoice_id` bigint(20) DEFAULT NULL, `amount` double DEFAULT NULL, `date_orig` bigint(20) DEFAULT NULL, PRIMARY KEY (`id`), KEY `payment_id` (`payment_id`), KEY `invoice_id` (`invoice_id`) ) ENGINE=InnoDB AUTO_INCREMENT=690083 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `pbx` -- DROP TABLE IF EXISTS `pbx`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `pbx` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `account_id` int(10) unsigned NOT NULL, `delivery_id` int(10) unsigned NOT NULL, `service_id` int(10) unsigned NOT NULL, `phone` varchar(10) NOT NULL, `name` varchar(32) DEFAULT NULL, `password` varchar(8) NOT NULL, `vm_password` varchar(16) NOT NULL DEFAULT '1234', `has_vm` tinyint(4) NOT NULL DEFAULT '1', `vm_email` varchar(64) DEFAULT NULL, `keep_msg` tinyint(4) NOT NULL DEFAULT '0', `vm_disk_quota` int(10) unsigned NOT NULL DEFAULT '180' COMMENT 'temps en seconde', `int_code` varchar(4) NOT NULL, `language` varchar(2) NOT NULL DEFAULT 'fr', `call_911` varchar(11) NOT NULL, `max_calls` tinyint(3) unsigned NOT NULL DEFAULT '2', `call_timeout` smallint(5) unsigned NOT NULL DEFAULT '30', `user_context` varchar(32) NOT NULL DEFAULT 'sip.targo.ca', `country_whitelist` text NOT NULL, `date_origin` bigint(20) unsigned NOT NULL, `date_update` bigint(20) unsigned NOT NULL, `update_by` int(10) unsigned DEFAULT NULL, PRIMARY KEY (`id`), KEY `phone` (`phone`) ) ENGINE=InnoDB AUTO_INCREMENT=1626 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `pbx_app` -- DROP TABLE IF EXISTS `pbx_app`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `pbx_app` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `pbx_id` int(10) unsigned NOT NULL, `username` varchar(16) NOT NULL, `mac` varchar(16) NOT NULL, `app` varchar(16) NOT NULL DEFAULT 'ht502', `note` text NOT NULL, `date_origin` bigint(20) unsigned NOT NULL, `date_update` bigint(20) unsigned NOT NULL, `update_by` int(10) unsigned DEFAULT NULL, PRIMARY KEY (`id`), KEY `pbx_id` (`pbx_id`) ) ENGINE=InnoDB AUTO_INCREMENT=2811 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `pbx_com` -- DROP TABLE IF EXISTS `pbx_com`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `pbx_com` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `account_id` int(10) unsigned NOT NULL, `delivery_id` int(10) unsigned NOT NULL, `service_id` int(10) unsigned NOT NULL, `phone` varchar(10) NOT NULL, `name` varchar(32) NOT NULL, `failover` varchar(16) NOT NULL, `auth_method` varchar(8) NOT NULL DEFAULT 'password', `password` varchar(8) NOT NULL, `ip` varchar(16) NOT NULL, `int_code` varchar(4) NOT NULL, `country_whitelist` text NOT NULL, `language` varchar(2) NOT NULL, `call_911` varchar(16) NOT NULL, `max_calls` tinyint(3) unsigned NOT NULL, `user_context` varchar(32) NOT NULL, `date_origin` varchar(16) NOT NULL, `date_update` varchar(16) NOT NULL, `update_by` int(10) unsigned NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `pbx_com_wl` -- DROP TABLE IF EXISTS `pbx_com_wl`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `pbx_com_wl` ( `id` int(11) NOT NULL AUTO_INCREMENT, `phone` varchar(10) NOT NULL, `country_whitelist` text NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `phone` (`phone`) ) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `pbx_fax` -- DROP TABLE IF EXISTS `pbx_fax`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `pbx_fax` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `number` varchar(10) NOT NULL, `email` varchar(128) NOT NULL, `description` varchar(128) DEFAULT NULL, `service_id` int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `number` (`number`) ) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `phone` -- DROP TABLE IF EXISTS `phone`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `phone` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `service_id` int(10) unsigned NOT NULL, `phone_num` varchar(16) NOT NULL, `note` text, `fournisseur` varchar(64) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2395 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `phone_addr` -- DROP TABLE IF EXISTS `phone_addr`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `phone_addr` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `account_id` int(10) unsigned NOT NULL, `phone` varchar(16) NOT NULL, `street_number` varchar(10) NOT NULL, `apt` varchar(30) NOT NULL COMMENT 'suite or apartment', `street_name` varchar(84) NOT NULL, `city` varchar(38) NOT NULL, `state` varchar(2) NOT NULL, `zip` varchar(10) NOT NULL, `first_name` varchar(38) NOT NULL, `last_name` varchar(100) NOT NULL COMMENT 'or company name', `info` varchar(100) NOT NULL, `enhanced_capable` enum('Y','N') NOT NULL DEFAULT 'Y', `code_cauca` varchar(3) DEFAULT NULL, `class_service` varchar(3) NOT NULL DEFAULT 'RES', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1958 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `phone_comwave` -- DROP TABLE IF EXISTS `phone_comwave`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `phone_comwave` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `account_id` bigint(20) DEFAULT NULL, `service_id` bigint(20) DEFAULT NULL, `requestId` int(10) unsigned NOT NULL, `phoneNumber` varchar(10) NOT NULL, `status` varchar(1) NOT NULL DEFAULT 'P', `date` varchar(10) DEFAULT NULL, `reason` text, PRIMARY KEY (`id`), UNIQUE KEY `requestId` (`requestId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `phone_note` -- DROP TABLE IF EXISTS `phone_note`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `phone_note` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `phone` varchar(11) NOT NULL, `rate_center` varchar(128) DEFAULT NULL, `fournisseur` varchar(64) NOT NULL DEFAULT 'comwave', `note` text, PRIMARY KEY (`id`), UNIQUE KEY `phone` (`phone`) ) ENGINE=InnoDB AUTO_INCREMENT=391 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `phone_provisioning` -- DROP TABLE IF EXISTS `phone_provisioning`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `phone_provisioning` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `account_id` int(10) unsigned NOT NULL, `delivery_id` int(10) unsigned NOT NULL, `service_id` int(10) unsigned NOT NULL, `phone` varchar(10) NOT NULL, `app` varchar(16) NOT NULL, `mac` varchar(16) NOT NULL, `password` varchar(32) NOT NULL, `internationnal` varchar(6) DEFAULT NULL, `date_orig` bigint(20) unsigned NOT NULL, `date_update` bigint(20) unsigned NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2164 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `phonecall_channel` -- DROP TABLE IF EXISTS `phonecall_channel`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `phonecall_channel` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `timestamp` bigint(20) unsigned NOT NULL, `max_tinktell` tinyint(3) unsigned NOT NULL DEFAULT '0', `max_outgoing_thinktell` tinyint(3) unsigned NOT NULL DEFAULT '0', `max_comwave` tinyint(3) unsigned NOT NULL DEFAULT '0', `max_outgoing_comwave` tinyint(3) unsigned NOT NULL DEFAULT '0', `max_total` tinyint(3) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `timestamp` (`timestamp`) ) ENGINE=InnoDB AUTO_INCREMENT=95253 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `phonecall_log_2025` -- DROP TABLE IF EXISTS `phonecall_log_2025`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `phonecall_log_2025` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `caller_id_name` varchar(64) NOT NULL, `caller_id_number` varchar(32) NOT NULL, `destination_number` varchar(32) NOT NULL, `start_stamp` datetime NOT NULL, `answer_stamp` datetime NOT NULL, `end_stamp` datetime NOT NULL, `duration` int(11) NOT NULL, `billing` decimal(15,5) NOT NULL DEFAULT '0.00000', `hangup_cause` varchar(32) NOT NULL, `uuid` varchar(64) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `uuid` (`uuid`) ) ENGINE=InnoDB AUTO_INCREMENT=1184954 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `phonecall_log_2026` -- DROP TABLE IF EXISTS `phonecall_log_2026`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `phonecall_log_2026` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `caller_id_name` varchar(64) NOT NULL, `caller_id_number` varchar(32) NOT NULL, `destination_number` varchar(32) NOT NULL, `start_stamp` datetime NOT NULL, `answer_stamp` datetime NOT NULL, `end_stamp` datetime NOT NULL, `duration` int(11) NOT NULL, `billing` decimal(15,5) NOT NULL DEFAULT '0.00000', `hangup_cause` varchar(32) NOT NULL, `uuid` varchar(64) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `uuid` (`uuid`) ) ENGINE=InnoDB AUTO_INCREMENT=307954 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `product` -- DROP TABLE IF EXISTS `product`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `product` ( `id` int(11) NOT NULL AUTO_INCREMENT, `date_orig` bigint(20) DEFAULT NULL, `sku` varchar(32) DEFAULT NULL, `active` tinyint(4) DEFAULT NULL, `price` double DEFAULT NULL, `price_recurr_type` tinyint(4) DEFAULT NULL, `price_recurr_weekday` int(11) DEFAULT NULL, `price_recurr_week` int(11) DEFAULT NULL, `price_recurr_schedule` tinyint(4) DEFAULT NULL, `download_speed` bigint(15) DEFAULT NULL, `upload_speed` bigint(15) DEFAULT NULL, `night_package` tinyint(4) NOT NULL DEFAULT '0', `quota_day` bigint(20) unsigned DEFAULT NULL, `quota_night` bigint(20) unsigned DEFAULT NULL, `category` tinyint(4) DEFAULT NULL, `uniq_charge` tinyint(4) NOT NULL DEFAULT '0', `commercial` tinyint(1) NOT NULL DEFAULT '0', `portal_hidden` tinyint(1) NOT NULL DEFAULT '0', `inv_keep` tinyint(1) unsigned NOT NULL DEFAULT '0', `inv_tag` varchar(255) DEFAULT NULL, `inv_threshold` int(10) unsigned NOT NULL DEFAULT '0', `inv_qte` int(10) unsigned NOT NULL DEFAULT '0', `emplacement` varchar(16) NOT NULL DEFAULT '', `list_tech` tinyint(3) unsigned NOT NULL DEFAULT '0', `type` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '0-autre;1-sansFil;2-fibre;3-phone;4-tele', `combo_ready` tinyint(3) unsigned NOT NULL DEFAULT '0', `fibre_lineprofile` varchar(8) DEFAULT NULL, `fibre_serviceprofile` varchar(8) DEFAULT NULL, PRIMARY KEY (`id`), KEY `sku` (`sku`) ) ENGINE=InnoDB AUTO_INCREMENT=838 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `product_cat` -- DROP TABLE IF EXISTS `product_cat`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `product_cat` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `notes` varchar(255) DEFAULT NULL, `status` tinyint(4) DEFAULT NULL, `num_compte` bigint(20) DEFAULT NULL, `combo_dispo` tinyint(3) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `product_format` -- DROP TABLE IF EXISTS `product_format`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `product_format` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `date_orig` bigint(20) DEFAULT NULL, `name` varchar(255) DEFAULT NULL, `type` tinyint(4) DEFAULT NULL, `product_idx` mediumtext, `description` mediumtext, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `product_fournisseur` -- DROP TABLE IF EXISTS `product_fournisseur`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `product_fournisseur` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `product_id` int(10) unsigned NOT NULL, `nom_fournisseur` varchar(255) NOT NULL, `prix_us` tinyint(1) NOT NULL DEFAULT '0', `prix_achat` double(8,2) NOT NULL DEFAULT '0.00', `prix_livr` varchar(16) NOT NULL DEFAULT '', `delais_livr` varchar(128) NOT NULL DEFAULT '', `comment` varchar(128) NOT NULL DEFAULT '', PRIMARY KEY (`id`), KEY `product_id` (`product_id`) ) ENGINE=InnoDB AUTO_INCREMENT=562 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `product_profile` -- DROP TABLE IF EXISTS `product_profile`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `product_profile` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `product_id` int(10) unsigned NOT NULL, `device_type` varchar(64) NOT NULL, `line_profile` int(10) unsigned NOT NULL, `service_profile` int(10) unsigned NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `product_speciaux` -- DROP TABLE IF EXISTS `product_speciaux`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `product_speciaux` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `product_zone_id` bigint(20) NOT NULL, `product_id` bigint(20) NOT NULL, `price` double unsigned DEFAULT NULL, `price_install` double unsigned DEFAULT NULL, `exp_timestamp` bigint(20) DEFAULT NULL, `duree_contrat` tinyint(3) unsigned DEFAULT NULL, PRIMARY KEY (`id`), KEY `product_zone_id` (`product_zone_id`) ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `product_translate` -- DROP TABLE IF EXISTS `product_translate`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `product_translate` ( `id` int(11) NOT NULL AUTO_INCREMENT, `product_id` int(11) DEFAULT NULL, `language_id` varchar(16) DEFAULT NULL, `name` varchar(512) DEFAULT NULL, `description_short` longtext, `description_full` longtext, PRIMARY KEY (`id`), KEY `product_id` (`product_id`), KEY `language_id` (`language_id`) ) ENGINE=InnoDB AUTO_INCREMENT=1681 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `product_zone` -- DROP TABLE IF EXISTS `product_zone`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `product_zone` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `zoneNumber` int(10) unsigned NOT NULL, `description` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT 'description de ce qu''est la zone (ex:village ste-clo) mettre une seule description si plusieurs produits par zone', PRIMARY KEY (`id`), KEY `zoneNumber` (`zoneNumber`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `product_zone_placemarks` -- DROP TABLE IF EXISTS `product_zone_placemarks`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `product_zone_placemarks` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `product_zone_id` bigint(20) unsigned NOT NULL, `placemarks_id` bigint(20) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `placemarks_id` (`placemarks_id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='prix speciaux créés depuis la map'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `project` -- DROP TABLE IF EXISTS `project`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `project` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(128) CHARACTER SET utf8 NOT NULL, `status` varchar(16) CHARACTER SET utf8 NOT NULL, `desc` text CHARACTER SET utf8, `date_start` bigint(20) unsigned DEFAULT NULL, `date_end` bigint(20) unsigned DEFAULT NULL, `manager_name` varchar(64) CHARACTER SET utf8 DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `project_cmd` -- DROP TABLE IF EXISTS `project_cmd`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `project_cmd` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `project_id` int(10) unsigned NOT NULL, `date` bigint(20) unsigned NOT NULL, `vendeur` varchar(128) DEFAULT NULL, `no_cmd` varchar(64) DEFAULT NULL, `po` varchar(32) DEFAULT NULL, `staff_id` int(10) unsigned NOT NULL DEFAULT '4667', PRIMARY KEY (`id`), KEY `project_id` (`project_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3848 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `project_cmd_item` -- DROP TABLE IF EXISTS `project_cmd_item`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `project_cmd_item` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `cmd_id` int(10) unsigned NOT NULL, `product_id` int(10) unsigned NOT NULL DEFAULT '0', `desc` text NOT NULL, `qte` double NOT NULL, `price` double NOT NULL, `usd` tinyint(1) NOT NULL DEFAULT '0', `recu` tinyint(4) NOT NULL DEFAULT '0', `qte_recu` double NOT NULL DEFAULT '0', `date_recu` varchar(64) DEFAULT NULL, `comment` varchar(128) DEFAULT NULL, `eta` varchar(10) DEFAULT NULL, `status` tinyint(3) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `cmd_id` (`cmd_id`), KEY `product_id` (`product_id`) ) ENGINE=InnoDB AUTO_INCREMENT=6143 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `project_manager_cat` -- DROP TABLE IF EXISTS `project_manager_cat`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `project_manager_cat` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `pos` tinyint(3) unsigned NOT NULL, `name` varchar(32) NOT NULL, `color` varchar(7) NOT NULL DEFAULT 'ffffff', `text_color` varchar(7) NOT NULL DEFAULT '#000000', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `project_manager_checklist` -- DROP TABLE IF EXISTS `project_manager_checklist`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `project_manager_checklist` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `task_id` int(10) unsigned NOT NULL, `ticket_id` int(10) unsigned NOT NULL, `desc` varchar(128) NOT NULL, `poids` tinyint(3) unsigned NOT NULL DEFAULT '1', `done` tinyint(4) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `task_id` (`task_id`) ) ENGINE=InnoDB AUTO_INCREMENT=43 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `project_manager_comment` -- DROP TABLE IF EXISTS `project_manager_comment`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `project_manager_comment` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `task_id` int(10) unsigned NOT NULL, `comment` text NOT NULL, `staff_id` int(10) unsigned NOT NULL, `date` varchar(16) NOT NULL, `unread` text NOT NULL, PRIMARY KEY (`id`), KEY `task_id` (`task_id`) ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `project_manager_task` -- DROP TABLE IF EXISTS `project_manager_task`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `project_manager_task` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `category_id` int(10) unsigned NOT NULL, `pos` tinyint(3) unsigned NOT NULL, `titre` varchar(255) NOT NULL, `color` varchar(7) NOT NULL DEFAULT '#ffffff', `text_color` varchar(7) NOT NULL DEFAULT '#000000', `desc` text NOT NULL, `ticket_id` varchar(16) DEFAULT NULL, `date_start` varchar(16) DEFAULT NULL, `date_deadline` varchar(16) DEFAULT NULL, `deadline_watch` tinyint(3) unsigned NOT NULL DEFAULT '1', `assign_staff` text, `priority` tinyint(3) unsigned NOT NULL DEFAULT '0', `done` tinyint(1) NOT NULL DEFAULT '0', `create_by` int(10) unsigned NOT NULL, `date_creation` varchar(16) DEFAULT NULL, `date_update` varchar(16) DEFAULT NULL, PRIMARY KEY (`id`), KEY `category_id` (`category_id`) ) ENGINE=InnoDB AUTO_INCREMENT=71 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `promo` -- DROP TABLE IF EXISTS `promo`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `promo` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(64) DEFAULT NULL, `desc` text CHARACTER SET utf8mb4, `date_start` bigint(20) unsigned DEFAULT NULL, `date_end` bigint(20) unsigned DEFAULT NULL, `date_orig` bigint(20) DEFAULT NULL, `visible_until` bigint(20) DEFAULT NULL, `actif` tinyint(4) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `service` -- DROP TABLE IF EXISTS `service`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `service` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `date_orig` bigint(20) DEFAULT NULL, `date_suspended` bigint(20) DEFAULT NULL, `date_next_invoice` bigint(20) DEFAULT NULL, `date_last_invoice` bigint(20) DEFAULT NULL, `delivery_id` int(11) DEFAULT NULL, `device_id` int(10) unsigned NOT NULL DEFAULT '0', `product_id` int(11) DEFAULT NULL, `comment` varchar(255) DEFAULT NULL, `payment_recurrence` tinyint(4) DEFAULT NULL COMMENT '0-Annuel, 1-Bimestriel, 2-Mensuel, 3-Aucune, 4-Quadrimestriel, 5-Semestriel, 6-Trimestriel', `status` tinyint(4) DEFAULT NULL, `hijack` tinyint(4) NOT NULL DEFAULT '0', `hijack_price` double NOT NULL DEFAULT '0', `hijack_desc` varchar(512) DEFAULT NULL, `hijack_download_speed` bigint(15) DEFAULT NULL, `hijack_upload_speed` bigint(15) DEFAULT NULL, `hijack_quota_day` bigint(20) DEFAULT NULL, `hijack_quota_night` bigint(20) DEFAULT NULL, `date_end_contract` bigint(20) DEFAULT NULL, `actif_until` bigint(20) DEFAULT NULL, `forfait_internet` tinyint(4) NOT NULL DEFAULT '0', `radius_user` varchar(24) NOT NULL, `radius_pwd` varchar(16) NOT NULL, `radius_conso` tinyint(1) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `delivery_id` (`delivery_id`), KEY `product_id` (`product_id`), KEY `date_orig` (`date_orig`), KEY `device_id` (`device_id`), KEY `id` (`id`,`status`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=74394 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `service_snapshot` -- DROP TABLE IF EXISTS `service_snapshot`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `service_snapshot` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `date` bigint(20) unsigned NOT NULL, `account_id` int(10) unsigned NOT NULL, `service_id` int(10) unsigned NOT NULL, `quota_day` bigint(20) unsigned NOT NULL DEFAULT '0', `quota_night` bigint(20) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `service_id` (`service_id`), KEY `account_id` (`account_id`) ) ENGINE=InnoDB AUTO_INCREMENT=1001443 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `sommaire_porte` -- DROP TABLE IF EXISTS `sommaire_porte`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `sommaire_porte` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `fibre_id` int(10) unsigned NOT NULL DEFAULT '0', `id_adresse` varchar(48) NOT NULL, `id_subvention` varchar(32) NOT NULL, `adresse_subvention` varchar(128) NOT NULL, `ville_subvention` varchar(128) NOT NULL, `latitude` varchar(32) NOT NULL, `longitude` varchar(32) NOT NULL, `contest_adresse` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '0=mauvaise adresse', `new_adresse` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '0=adresse liste Mike, 1=nouvelle adresse', `placemarks_id` bigint(20) unsigned NOT NULL COMMENT 'pour identifier si id_adresse est null', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2044 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `soumission` -- DROP TABLE IF EXISTS `soumission`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `soumission` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `account_id` bigint(20) NOT NULL, `name` varchar(64) NOT NULL, `po` varchar(64) DEFAULT NULL, `date` varchar(10) NOT NULL, `tax` tinyint(3) unsigned NOT NULL, `materiel` longtext, `mensuel` longtext, `text` text, PRIMARY KEY (`id`), KEY `account_id` (`account_id`) ) ENGINE=InnoDB AUTO_INCREMENT=909 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `soumission_template` -- DROP TABLE IF EXISTS `soumission_template`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `soumission_template` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(64) NOT NULL, `materiel` longtext NOT NULL, `mensuel` longtext NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `staff` -- DROP TABLE IF EXISTS `staff`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `staff` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `status` tinyint(4) NOT NULL, `username` varchar(32) NOT NULL, `password` varchar(128) NOT NULL, `vpn` varchar(64) NOT NULL, `first_name` varchar(64) NOT NULL, `last_name` varchar(64) NOT NULL, `email` varchar(64) NOT NULL, `ext` varchar(16) NOT NULL, `cell` varchar(16) NOT NULL, `gpin` varchar(4) DEFAULT NULL, `rights` text NOT NULL, `date_embauche` varchar(20) DEFAULT NULL, `fete` varchar(16) DEFAULT NULL, `supp` text, `group_ad` varchar(64) NOT NULL DEFAULT '', `dept_list` text NOT NULL, `notification` text NOT NULL, `darkmode` tinyint(1) unsigned NOT NULL DEFAULT '0', `matricule_desjardins` int(10) unsigned DEFAULT NULL, `compagnie_desjardins` varchar(8) DEFAULT NULL, `ldap_id` int(11) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `username` (`username`) ) ENGINE=InnoDB AUTO_INCREMENT=4793 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `staff_dispo` -- DROP TABLE IF EXISTS `staff_dispo`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `staff_dispo` ( `id` tinyint(4) NOT NULL AUTO_INCREMENT, `day_num` tinyint(4) NOT NULL, `staff_id` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `staff_supp` -- DROP TABLE IF EXISTS `staff_supp`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `staff_supp` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `nom` varchar(64) NOT NULL, `staff_ids` varchar(128) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `state` -- DROP TABLE IF EXISTS `state`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `state` ( `id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT, `name_en` varchar(64) NOT NULL, `name_fr` varchar(64) NOT NULL, `abbrev` varchar(2) NOT NULL, `country` varchar(8) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=73 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `statement` -- DROP TABLE IF EXISTS `statement`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `statement` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `date` bigint(20) DEFAULT NULL, `type` varchar(2) DEFAULT NULL, `number` bigint(20) DEFAULT NULL, `reference` mediumtext, `amt` double DEFAULT NULL, `paid_amt` double DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `stbs` -- DROP TABLE IF EXISTS `stbs`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `stbs` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `mac` varchar(32) NOT NULL, `sn` varchar(32) NOT NULL, `targo` varchar(16) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `mac` (`mac`) ) ENGINE=InnoDB AUTO_INCREMENT=979 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tax` -- DROP TABLE IF EXISTS `tax`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tax` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(128) DEFAULT NULL, `description` varchar(255) DEFAULT NULL, `rate` double DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tax_group` -- DROP TABLE IF EXISTS `tax_group`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tax_group` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(128) DEFAULT NULL, `description` varchar(255) DEFAULT NULL, `tax` varchar(128) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `td_payable` -- DROP TABLE IF EXISTS `td_payable`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `td_payable` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `ticket_id` int(10) unsigned NOT NULL DEFAULT '0', `invoice` varchar(32) NOT NULL DEFAULT '', `date_invoice` varchar(20) NOT NULL, `fournisseur` varchar(128) DEFAULT '', `montant` decimal(15,2) NOT NULL DEFAULT '0.00', `devise` varchar(2) NOT NULL DEFAULT 'ca', `methode` varchar(64) DEFAULT '', `reference` varchar(128) DEFAULT '', `date_paiement` varchar(20) DEFAULT '', `releve` varchar(128) DEFAULT NULL, PRIMARY KEY (`id`), KEY `ticket_id` (`ticket_id`) ) ENGINE=InnoDB AUTO_INCREMENT=116 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tech_dispo` -- DROP TABLE IF EXISTS `tech_dispo`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tech_dispo` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `date` bigint(20) unsigned NOT NULL, `tech` int(10) unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `date` (`date`) ) ENGINE=InnoDB AUTO_INCREMENT=3551 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tele_carte` -- DROP TABLE IF EXISTS `tele_carte`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tele_carte` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `delivery_id` int(10) unsigned NOT NULL DEFAULT '0', `service_id` int(10) unsigned NOT NULL, `channels` text NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `delivery_id` (`delivery_id`) ) ENGINE=InnoDB AUTO_INCREMENT=508 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tele_channel` -- DROP TABLE IF EXISTS `tele_channel`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tele_channel` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `proprio` varchar(128) NOT NULL, `poste` varchar(128) NOT NULL, `pack_min` tinyint(3) unsigned NOT NULL DEFAULT '0', `pack_redevance` decimal(5,2) unsigned NOT NULL DEFAULT '0.00', `pack_prix_vendu` decimal(5,2) unsigned NOT NULL DEFAULT '0.00', `carte_percentage` decimal(5,2) unsigned NOT NULL, `carte_redevance_min` decimal(5,2) unsigned NOT NULL, `carte_prix_vendu` decimal(5,2) unsigned NOT NULL, `monthly_min` decimal(5,2) unsigned NOT NULL DEFAULT '0.00', `has_penetration_rate` tinyint(3) unsigned NOT NULL DEFAULT '0', `penetration_actuel` decimal(3,2) unsigned NOT NULL DEFAULT '0.00', `is_commercial` tinyint(3) unsigned NOT NULL DEFAULT '0', `note` text NOT NULL, `epgId` int(10) unsigned NOT NULL DEFAULT '0', `uptele_no` int(10) unsigned NOT NULL, `uptele_code` varchar(32) NOT NULL, `abbr` varchar(32) NOT NULL, `groupe_id` int(10) unsigned NOT NULL DEFAULT '0', `ccsa_packageID` int(10) unsigned NOT NULL, `ccsa_desc` varchar(256) NOT NULL, `rapport_bell` tinyint(4) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=189 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tele_groupe` -- DROP TABLE IF EXISTS `tele_groupe`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tele_groupe` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `nom` varchar(128) NOT NULL, `small_desc` varchar(128) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tele_network` -- DROP TABLE IF EXISTS `tele_network`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tele_network` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `network_name` varchar(128) NOT NULL, `fournisseur` varchar(128) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tele_pack` -- DROP TABLE IF EXISTS `tele_pack`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tele_pack` ( `id` int(11) NOT NULL AUTO_INCREMENT, `product_id` int(10) unsigned NOT NULL, `channels` text NOT NULL, `actif` tinyint(1) unsigned NOT NULL DEFAULT '1', `ccsa_packageID` int(10) unsigned NOT NULL, `ccsa_desc` varchar(256) NOT NULL, `rapport_bell` tinyint(4) NOT NULL DEFAULT '0', `bell_name` varchar(64) DEFAULT NULL, `epgId` int(10) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tele_penetration` -- DROP TABLE IF EXISTS `tele_penetration`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tele_penetration` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `id_channel` int(10) unsigned NOT NULL, `percentage` decimal(3,2) unsigned NOT NULL, `prix` decimal(10,5) unsigned NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tele_sub_archive` -- DROP TABLE IF EXISTS `tele_sub_archive`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tele_sub_archive` ( `id` int(11) NOT NULL AUTO_INCREMENT, `date_archive` varchar(16) NOT NULL, `subs` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=53 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tele_wiz` -- DROP TABLE IF EXISTS `tele_wiz`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tele_wiz` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `account_id` int(10) unsigned NOT NULL, `delivery_id` int(10) unsigned NOT NULL, `ticket_id` int(10) unsigned NOT NULL, `nb_stb` tinyint(3) unsigned NOT NULL, `credit` tinyint(3) unsigned NOT NULL, `fbase` int(10) unsigned NOT NULL, `fthem` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1066 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `test` -- DROP TABLE IF EXISTS `test`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `test` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `text` text NOT NULL, `c2` int(11) NOT NULL DEFAULT '1', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ticket` -- DROP TABLE IF EXISTS `ticket`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `ticket` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `ost_id` int(11) unsigned DEFAULT NULL, `parent` bigint(20) NOT NULL DEFAULT '0', `account_id` bigint(20) DEFAULT NULL, `delivery_id` bigint(20) NOT NULL DEFAULT '0', `bon_id` int(10) unsigned DEFAULT NULL, `subject` varchar(256) DEFAULT NULL, `dept_id` int(11) DEFAULT NULL, `open_by` int(11) NOT NULL DEFAULT '1', `email_from` varchar(128) NOT NULL, `assign_to` int(11) NOT NULL DEFAULT '0', `status` varchar(32) NOT NULL DEFAULT 'open' COMMENT 'open,pending,closed,visited', `due_date` bigint(20) NOT NULL DEFAULT '0', `due_time` varchar(8) NOT NULL DEFAULT 'day', `date_create` bigint(20) DEFAULT NULL, `last_update` bigint(20) DEFAULT NULL, `date_closed` varchar(16) NOT NULL DEFAULT '', `pending_to_open` bigint(20) unsigned NOT NULL DEFAULT '0', `waiting_for` bigint(20) unsigned DEFAULT NULL, `lock_name` varchar(64) NOT NULL, `public` tinyint(1) DEFAULT '0', `priority` tinyint(4) NOT NULL DEFAULT '2' COMMENT '0- Urgent, 1- High, 2- Normal, 3- Low', `install_success` tinyint(4) NOT NULL DEFAULT '0', `wizard` text, `wizard_fibre` varchar(64) DEFAULT NULL, `important` tinyint(4) NOT NULL DEFAULT '0', `followed_by` text NOT NULL, `participant` text NOT NULL, `update_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `closed_by` int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `account_id` (`account_id`), KEY `assign_to` (`assign_to`), KEY `dept_id` (`dept_id`) ) ENGINE=InnoDB AUTO_INCREMENT=244878 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ticket_calendar_lock` -- DROP TABLE IF EXISTS `ticket_calendar_lock`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `ticket_calendar_lock` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `date_lock` bigint(20) unsigned NOT NULL DEFAULT '0', `dept_id` int(10) unsigned NOT NULL DEFAULT '12', `nb_install` smallint(5) unsigned NOT NULL DEFAULT '0', `create_by` int(10) unsigned NOT NULL, `update_by` int(10) unsigned NOT NULL, `last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `date_dept` (`date_lock`,`dept_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3256 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ticket_calendar_staff_lock` -- DROP TABLE IF EXISTS `ticket_calendar_staff_lock`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `ticket_calendar_staff_lock` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `date` bigint(20) NOT NULL, `staff_id` int(10) unsigned NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=55 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ticket_conge` -- DROP TABLE IF EXISTS `ticket_conge`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `ticket_conge` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `account_id` int(10) unsigned NOT NULL, `name` varchar(128) NOT NULL, `date` bigint(20) unsigned NOT NULL, `desc` varchar(255) NOT NULL, `ticket_id` int(10) unsigned DEFAULT NULL, PRIMARY KEY (`id`), KEY `account_id` (`account_id`) ) ENGINE=InnoDB AUTO_INCREMENT=4358 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ticket_dept` -- DROP TABLE IF EXISTS `ticket_dept`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `ticket_dept` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `parent` int(11) NOT NULL DEFAULT '0', `name` varchar(32) NOT NULL DEFAULT '', `hasChild` smallint(4) NOT NULL DEFAULT '0', `email` varchar(64) NOT NULL, `manager_id` int(10) unsigned NOT NULL DEFAULT '0', `member_only` tinyint(1) NOT NULL DEFAULT '0', `protected` tinyint(1) NOT NULL DEFAULT '0', `default_staff` int(10) unsigned NOT NULL DEFAULT '0', `default_follow` varchar(64) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB AUTO_INCREMENT=42 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ticket_msg` -- DROP TABLE IF EXISTS `ticket_msg`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `ticket_msg` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `ticket_id` bigint(20) NOT NULL, `staff_id` bigint(20) NOT NULL DEFAULT '0', `msg` mediumtext, `date_orig` bigint(20) DEFAULT NULL, `unread_csv` mediumtext NOT NULL, `public` tinyint(1) DEFAULT '0', `important` tinyint(4) NOT NULL DEFAULT '0', `update_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `ticket_id` (`ticket_id`), KEY `staff_id` (`staff_id`) ) ENGINE=InnoDB AUTO_INCREMENT=791208 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ticket_template` -- DROP TABLE IF EXISTS `ticket_template`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `ticket_template` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(128) NOT NULL, `template` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tmp` -- DROP TABLE IF EXISTS `tmp`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tmp` ( `id` int(10) unsigned NOT NULL, `prive` varchar(20) NOT NULL, `public` varchar(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tmp_vpn` -- DROP TABLE IF EXISTS `tmp_vpn`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tmp_vpn` ( `id` int(16) NOT NULL, `username` varchar(64) NOT NULL, `password` varchar(64) NOT NULL, `ad_done` tinyint(1) NOT NULL DEFAULT '0', `tacacs` tinyint(1) NOT NULL DEFAULT '0', `m` int(10) unsigned NOT NULL DEFAULT '2000', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tv_mac` -- DROP TABLE IF EXISTS `tv_mac`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tv_mac` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `service_id` int(10) unsigned NOT NULL, `mac` varchar(12) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `voicemeup` -- DROP TABLE IF EXISTS `voicemeup`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `voicemeup` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `account_id` int(10) unsigned NOT NULL, `date` bigint(20) unsigned NOT NULL, `duration` int(10) unsigned NOT NULL, `destination` varchar(16) NOT NULL, `country` varchar(256) NOT NULL, `state` varchar(128) DEFAULT NULL, `district` varchar(128) DEFAULT NULL, `amount` double unsigned NOT NULL, `uuid` varchar(64) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=97 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2026-04-06 19:54:52