-- MySQL dump 10.13  Distrib 5.1.51, for Win32 (ia32)
--
-- Host: localhost    Database: backup_server
-- ------------------------------------------------------
-- Server version	5.1.51-community

/*!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 `backup_disks`
--

DROP TABLE IF EXISTS `backup_disks`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `backup_disks` (
  `disk_name` varchar(20) NOT NULL,
  `loadPercent` float DEFAULT NULL,
  PRIMARY KEY (`disk_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `backup_disks`
--

LOCK TABLES `backup_disks` WRITE;
/*!40000 ALTER TABLE `backup_disks` DISABLE KEYS */;
INSERT INTO `backup_disks` VALUES ('C:\\',0),('E:\\',0);
/*!40000 ALTER TABLE `backup_disks` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `backups`
--

DROP TABLE IF EXISTS `backups`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `backups` (
  `id` bigint(20) NOT NULL DEFAULT '0',
  `clientId` smallint(6) DEFAULT '0',
  `upload_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `file_size` float DEFAULT NULL,
  `version` int(2) DEFAULT '1',
  `success` tinyint(1) DEFAULT NULL,
  `file_path` varchar(200) DEFAULT NULL,
  `backup_type` varchar(15) DEFAULT NULL,
  `documentsCount` int(11) DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `backups`
--

LOCK TABLES `backups` WRITE;
/*!40000 ALTER TABLE `backups` DISABLE KEYS */;
INSERT INTO `backups` VALUES (1,1,'2012-05-20 14:30:14',11,0,1,'E:\\backup\\KOSICE1\\20052012_1630.zip','INCREMENTAL',11),(2,1,'2012-05-20 14:33:07',3,0,1,'E:\\backup\\KOSICE1\\20052012_1633.zip','INCREMENTAL',3);
/*!40000 ALTER TABLE `backups` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `clients`
--

DROP TABLE IF EXISTS `clients`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `clients` (
  `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
  `clientId` varchar(10) NOT NULL,
  `clientName` varchar(50) DEFAULT NULL,
  `password` varchar(256) DEFAULT NULL,
  `lastUpdate` date DEFAULT NULL,
  `version` int(11) DEFAULT NULL,
  `backup_type` varchar(20) DEFAULT NULL,
  `backup_disk` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `clients`
--

LOCK TABLES `clients` WRITE;
/*!40000 ALTER TABLE `clients` DISABLE KEYS */;
INSERT INTO `clients` VALUES (1,'KOSICE1','Obecný úrad Košice 1','testPassword','2012-05-20',13,'Denné','E:\\'),(3,'BA1','Obecný úrad Bratislava 1','ba1','2012-05-16',4,'DAILY','E:\\');
/*!40000 ALTER TABLE `clients` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `clients_information`
--

DROP TABLE IF EXISTS `clients_information`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `clients_information` (
  `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
  `uptime` int(11) DEFAULT NULL,
  `memoryRAM` int(11) DEFAULT NULL,
  `memoryUsedPercent` int(11) DEFAULT NULL,
  `diskUsed` int(11) DEFAULT NULL,
  `diskTotal` int(11) DEFAULT NULL,
  `documentsCount` int(11) DEFAULT NULL,
  `documentsSize` int(11) DEFAULT NULL,
  `version` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `clients_information`
--

LOCK TABLES `clients_information` WRITE;
/*!40000 ALTER TABLE `clients_information` DISABLE KEYS */;
INSERT INTO `clients_information` VALUES (1,150434,2936,66,119274584,155556860,0,0,1),(3,150484,2936,66,119275568,155556860,0,0,1);
/*!40000 ALTER TABLE `clients_information` ENABLE KEYS */;
UNLOCK TABLES;

--
-- 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` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
  `username` varchar(40) DEFAULT NULL,
  `rights` varchar(10) DEFAULT NULL,
  `version` int(2) DEFAULT '1',
  `password` varchar(256) NOT NULL,
  `email` varchar(80) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `users`
--

LOCK TABLES `users` WRITE;
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
INSERT INTO `users` VALUES (8,'admin','ADMIN',1,'3UdORQRzGG7HM2ibVJqUpUqW8nbbp2spE4xXtq/hW/c=','admin@admin.sk'),(13,'Martin Starosta','',1,'KgGAvLkwXGBkDoeJ5nS51z7JFGviEmmlzF3Eh+PR+Zk=','martin.starosta@gmail.com');
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
UNLOCK TABLES;
/*!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 2012-05-21 16:40:30
