View file install/db_tables/cover.sql

File size: 813B
CREATE TABLE IF NOT EXISTS `profileCoversCategories` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

INSERT INTO `profileCoversCategories` (`id`, `name`) VALUES
(1, 'Природа'),
(2, 'Авто'),
(3, 'Города');

CREATE TABLE IF NOT EXISTS `profileCoversList` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_category` int(11) NOT NULL DEFAULT '0',
  `price` int(11) DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

INSERT INTO `profileCoversList` (`id`, `id_category`, `price`) VALUES
(1, 2, 100),
(2, 2, 100),
(3, 2, 100),
(4, 2, 100),
(5, 2, 100),
(6, 1, 100),
(7, 1, 100),
(8, 1, 100),
(9, 1, 100),
(10, 1, 100),
(11, 3, 100),
(12, 3, 100),
(13, 3, 100),
(14, 3, 100),
(15, 3, 100);