--
-- Host: localhost    Database: user
-- ------------------------------------------------------


--
-- Table structure for table `cars`
--

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;

--
-- Dumping data for table `cars`
--

INSERT INTO `cars` VALUES (1,'Corona'),(2,'RAV-4'),(3,'CRV'),(4,'HRV'),(5,'Demio'),(6,'CX-7');

--
-- Table structure for table `client`
--

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;

--
-- Dumping data for table `client`
--

INSERT INTO `client` VALUES (1,'Basilii','Petrov'),(2,'Andrey','Ivanov'),(3,'Biktor','Shubin');

--
-- Table structure for table `levels`
--

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;

--
-- Dumping data for table `levels`
--

INSERT INTO `levels` VALUES (1,'admin'),(2,'moderator');

--
-- Table structure for table `magazine`
--

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;

--
-- Dumping data for table `magazine`
--

INSERT INTO `magazine` VALUES (327,3,4,1,3),(286,2,1,16,1);

--
-- Table structure for table `marka`
--

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;

--
-- Dumping data for table `marka`
--

INSERT INTO `marka` VALUES (1,'Toyota'),(2,'Honda'),(3,'Mazda');


