-- MySQL dump 10.13 Distrib 5.1.73, for redhat-linux-gnu (x86_64) -- -- Host: localhost Database: user -- ------------------------------------------------------ -- Server version 5.1.73 /*!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 `cars` -- DROP TABLE IF EXISTS `cars`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `cars` ( `id` int(11) NOT NULL AUTO_INCREMENT, `model` char(30) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `cars` -- LOCK TABLES `cars` WRITE; /*!40000 ALTER TABLE `cars` DISABLE KEYS */; INSERT INTO `cars` VALUES (1,'Corona'),(2,'RAV-4'),(3,'CRV'),(4,'HRV'),(5,'Demio'),(6,'CX-7'); /*!40000 ALTER TABLE `cars` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `client` -- DROP TABLE IF EXISTS `client`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `client` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` char(20) DEFAULT NULL, `lastname` char(20) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `client` -- LOCK TABLES `client` WRITE; /*!40000 ALTER TABLE `client` DISABLE KEYS */; INSERT INTO `client` VALUES (1,'Basilii','Petrov'),(2,'Andrey','Ivanov'),(3,'Biktor','Shubin'); /*!40000 ALTER TABLE `client` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `levels` -- DROP TABLE IF EXISTS `levels`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `levels` ( `id_level` int(11) NOT NULL AUTO_INCREMENT, `level` text, PRIMARY KEY (`id_level`) ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `levels` -- LOCK TABLES `levels` WRITE; /*!40000 ALTER TABLE `levels` DISABLE KEYS */; INSERT INTO `levels` VALUES (1,'admin'),(2,'moderator'); /*!40000 ALTER TABLE `levels` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `magazine` -- DROP TABLE IF EXISTS `magazine`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `magazine` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_lastname` int(11) DEFAULT NULL, `id_car` int(11) DEFAULT NULL, `quantity` int(11) DEFAULT NULL, `id_marka` tinyint(4) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=328 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `magazine` -- LOCK TABLES `magazine` WRITE; /*!40000 ALTER TABLE `magazine` DISABLE KEYS */; INSERT INTO `magazine` VALUES (327,3,4,1,3),(286,2,1,16,1); /*!40000 ALTER TABLE `magazine` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `marka` -- DROP TABLE IF EXISTS `marka`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `marka` ( `marka_id` tinyint(4) NOT NULL AUTO_INCREMENT, `marka` text, PRIMARY KEY (`marka_id`) ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `marka` -- LOCK TABLES `marka` WRITE; /*!40000 ALTER TABLE `marka` DISABLE KEYS */; INSERT INTO `marka` VALUES (1,'Toyota'),(2,'Honda'),(3,'Mazda'); /*!40000 ALTER TABLE `marka` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `user` -- DROP TABLE IF EXISTS `user`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `user` ( `id` int(4) NOT NULL AUTO_INCREMENT, `login` char(20) NOT NULL DEFAULT '', `password` char(20) NOT NULL DEFAULT '', `level` tinyint(4) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `user` -- LOCK TABLES `user` WRITE; /*!40000 ALTER TABLE `user` DISABLE KEYS */; INSERT INTO `user` VALUES (1,'gun','qwerty',1),(2,'user','test',2),(5,'tratata','secretpassword',1); /*!40000 ALTER TABLE `user` 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 2015-01-05 15:58:13