104 lines
3.8 KiB
MySQL
104 lines
3.8 KiB
MySQL
|
CREATE DATABASE IF NOT EXISTS `ats` /*!40100 DEFAULT CHARACTER SET utf8 */;
|
||
|
USE `ats`;
|
||
|
-- MySQL dump 10.13 Distrib 5.7.17, for Linux (x86_64)
|
||
|
--
|
||
|
-- Host: kis Database: ats
|
||
|
-- ------------------------------------------------------
|
||
|
-- Server version 5.5.5-10.0.29-MariaDB-0ubuntu0.16.04.1
|
||
|
|
||
|
/*!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 utf8 */;
|
||
|
/*!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 `cdr`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `cdr`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `cdr` (
|
||
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||
|
`call_date` date DEFAULT NULL,
|
||
|
`call_time` time DEFAULT NULL,
|
||
|
`int_number` varchar(11) DEFAULT NULL,
|
||
|
`ext_co_line` char(2) DEFAULT NULL,
|
||
|
`dial_number` varchar(30) DEFAULT NULL,
|
||
|
`ring` varchar(5) DEFAULT NULL,
|
||
|
`call_duration` time DEFAULT NULL,
|
||
|
`acc_code` varchar(20) DEFAULT NULL,
|
||
|
`call_code` char(2) DEFAULT NULL,
|
||
|
`call_direct` varchar(45) DEFAULT NULL,
|
||
|
PRIMARY KEY (`id`)
|
||
|
) ENGINE=InnoDB AUTO_INCREMENT=2775655 DEFAULT CHARSET=utf8 COMMENT='Call Data Records';
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `ext_co_line`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `ext_co_line`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `ext_co_line` (
|
||
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||
|
`ext_co_line` char(2) NOT NULL,
|
||
|
`number` varchar(20) DEFAULT NULL,
|
||
|
`description` varchar(45) DEFAULT NULL,
|
||
|
PRIMARY KEY (`id`,`ext_co_line`)
|
||
|
) ENGINE=InnoDB AUTO_INCREMENT=41 DEFAULT CHARSET=utf8 COMMENT='Список внешних линий';
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `int_number`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `int_number`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `int_number` (
|
||
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||
|
`int_number` char(5) DEFAULT NULL,
|
||
|
`fio` varchar(50) DEFAULT NULL,
|
||
|
`email` varchar(45) DEFAULT NULL,
|
||
|
`description` varchar(45) DEFAULT NULL,
|
||
|
PRIMARY KEY (`id`)
|
||
|
) ENGINE=InnoDB AUTO_INCREMENT=59 DEFAULT CHARSET=utf8 COMMENT='Список внутренних номеров';
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `users`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `users`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `users` (
|
||
|
`id` int(6) NOT NULL AUTO_INCREMENT,
|
||
|
`login` char(20) DEFAULT NULL,
|
||
|
`password` char(20) DEFAULT NULL,
|
||
|
`last_name` char(20) DEFAULT NULL,
|
||
|
`name` char(20) DEFAULT NULL,
|
||
|
`middle_name` char(20) DEFAULT NULL,
|
||
|
PRIMARY KEY (`id`)
|
||
|
) ENGINE=InnoDB AUTO_INCREMENT=3 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 2017-07-18 13:39:11
|