-- phpMyAdmin SQL Dump
-- version 3.2.0.1
-- http://www.phpmyadmin.net
--
-- Hostiteľ: localhost
-- Vygenerované:: 19.Apr, 2010 - 21:15
-- Verzia serveru: 5.1.37
-- Verzia PHP: 5.3.0

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";

--
-- Databáza: `videoklipy`
--

-- --------------------------------------------------------

--
-- Štruktúra tabuľky pre tabuľku `klipy`
--

CREATE TABLE IF NOT EXISTS `klipy` (
  `id` smallint(11) NOT NULL AUTO_INCREMENT,
  `active` tinyint(1) NOT NULL,
  `title` varchar(100) NOT NULL,
  `category` smallint(2) NOT NULL,
  `url` varchar(50) NOT NULL,
  `date` datetime NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=28 ;

--
-- Sťahujem dáta pre tabuľku `klipy`
--

INSERT INTO `klipy` (`id`, `active`, `title`, `category`, `url`, `date`) VALUES
(6, 1, 'Sum 41 - In Too Deepa', 0, 'emGri7i8Y2Y', '2010-02-09 00:00:00'),
(15, 1, 'System of a Down - Arials', 0, 'HwNXvQ2OK_k', '2010-04-18 23:05:22'),
(5, 1, 'Dave Darrell - Freeloader (Original Mix)', 0, 'f8lKQVfXFM4', '2010-02-09 00:00:00'),
(4, 1, 'Klass Meets Haddaway - What Is Love 2K9 (Video)', 1, 'mDX-Dc_f3to', '2010-02-09 00:00:00'),
(7, 1, 'Billy Talent - Surrender', 0, 'QPabKxzcy6o', '2010-02-09 00:00:00'),
(14, 1, 'Lady Gaga - Poker Face', 0, '_de3C3Pkb8Q', '2010-04-18 23:04:56'),
(11, 1, 'Freeloader - Dave Darell', 0, 'iNCi6500wkE', '2010-04-18 22:06:13'),
(16, 1, 'System of a Down - B.Y.O.B.', 0, 'DgCVmUYrSfQ', '2010-04-18 23:05:30'),
(17, 1, 'System Of A Down - Toxicity #12', 0, 'bWSxELGNShk', '2010-04-18 23:05:42'),
(18, 1, 'System Of A Down - Lonely Day', 0, '2S2ZFpoD9sE', '2010-04-18 23:05:57'),
(19, 1, 'Ramstein - Amerika OK !!!', 0, '9P7Zd-x2QXw', '2010-04-18 23:06:14'),
(20, 1, 'hellsing- ramstein feuer frei', 0, 'igWN6iPxmno', '2010-04-18 23:06:31'),
(21, 1, 'ramstein', 0, '31nIS3RSnKM', '2010-04-18 23:06:42'),
(22, 1, 'Elektro / House Mix 2008', 0, 'kIQJVtANjCM', '2010-04-19 10:35:37'),
(23, 1, 'Sum 41 - The Hell Song', 0, 'v3Tv3igXQzY', '2010-04-19 17:03:00'),
(24, 1, 'Sum 41 - In Too Deep', 0, 'emGri7i8Y2Y', '2010-04-19 17:03:32'),
(25, 1, 'Metallica  -  Nothing Else Matters', 0, 'JgiGrXpOhYg', '2010-04-19 17:03:58'),
(26, 1, 'Metallica-Fade To Black', 0, 'Q7C90sLh5Ok', '2010-04-19 19:24:14'),
(27, 1, 'Green Day - 21 Guns (Official Video)', 0, 'r00ikilDxW4', '2010-04-19 19:26:05');

-- --------------------------------------------------------

--
-- Štruktúra tabuľky pre tabuľku `klipy_clanky`
--

CREATE TABLE IF NOT EXISTS `klipy_clanky` (
  `id` smallint(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(100) NOT NULL,
  `date` date NOT NULL,
  `img` varchar(255) NOT NULL,
  `user_id` smallint(11) NOT NULL,
  `content` text NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=17 ;

--
-- Sťahujem dáta pre tabuľku `klipy_clanky`
--

INSERT INTO `klipy_clanky` (`id`, `title`, `date`, `img`, `user_id`, `content`) VALUES
(1, 'Toto je moj Title', '2010-04-13', '/data/09-02-2010/emGri7i8Y2Y.jpg', 1, 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry''s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum<!--line-->'),
(14, 'Toto je moj novy clanok', '2010-04-19', '', 1, 'Toto je moj text k clanku .. na zobrazenie :)))'),
(2, 'DJ Pido Vulkán 24.4.2010 finished', '2010-04-30', '/images/djpido/balon_web.jpg', 1, 'Pripravte sa na super akciu\r\n<ul>\r\n <li> Super DJ</li>\r\n <li> Super hudba</li>\r\n <li> Alkohol sa skvele ceny</li>\r\n <li>Vsetko je super</li>\r\n</ul><br />\r\nLorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry''s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.'),
(15, 'Najnovsi clanok ', '2010-04-19', '', 1, 'toto je moj najnovsi clanok pre info ..'),
(16, 'novy clanok', '2010-04-19', '', 1, 'Uz by mala fungovat pagination ....'),
(6, 'Toto je moj testovaci 4 clanok', '2010-04-18', '/data/09-02-2010/emGri7i8Y2Y.jpg', 1, 'Moj testovaci 4 clanok je na svete ... skuste si ho aj vy na niektore veci .. ci o co nam tu ide ? >D <br />\r\nLorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using ''Content here, content here'', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for ''lorem ipsum'' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).');

-- --------------------------------------------------------

--
-- Štruktúra tabuľky pre tabuľku `klipy_komentare`
--

CREATE TABLE IF NOT EXISTS `klipy_komentare` (
  `id` smallint(11) NOT NULL AUTO_INCREMENT,
  `user_id` smallint(11) NOT NULL,
  `clanok_id` smallint(11) NOT NULL,
  `content` text NOT NULL,
  `date` date NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;

--
-- Sťahujem dáta pre tabuľku `klipy_komentare`
--

INSERT INTO `klipy_komentare` (`id`, `user_id`, `clanok_id`, `content`, `date`) VALUES
(1, 2, 1, 'Toto je moj komentar k clanku :D', '2010-04-19'),
(2, 2, 14, 'Aj tuto si dame komentarik nie ? :D', '2010-04-19'),
(3, 2, 1, 'A ja si pridam dalsi komentar .. nech je prdel nie ? >D ', '2010-04-19'),
(4, 2, 6, 'Komentarik stale od toho isteho uzivatela :D', '2010-04-19'),
(5, 1, 1, 'toto je moj komentar k clanku :D', '2010-04-19');

-- --------------------------------------------------------

--
-- Štruktúra tabuľky pre tabuľku `rebriceknaklip`
--

CREATE TABLE IF NOT EXISTS `rebriceknaklip` (
  `id` smallint(11) NOT NULL AUTO_INCREMENT,
  `rebricek_id` smallint(11) NOT NULL,
  `klip_id` smallint(11) NOT NULL,
  `pos` smallint(3) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=12 ;

--
-- Sťahujem dáta pre tabuľku `rebriceknaklip`
--

INSERT INTO `rebriceknaklip` (`id`, `rebricek_id`, `klip_id`, `pos`) VALUES
(7, 2, 19, 0),
(9, 3, 15, 0),
(10, 3, 7, 0),
(11, 3, 4, 0);

-- --------------------------------------------------------

--
-- Štruktúra tabuľky pre tabuľku `top_rebricky`
--

CREATE TABLE IF NOT EXISTS `top_rebricky` (
  `id` smallint(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) NOT NULL,
  `date` date NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;

--
-- Sťahujem dáta pre tabuľku `top_rebricky`
--

INSERT INTO `top_rebricky` (`id`, `name`, `date`) VALUES
(2, 'ORANGE TOP FUN 2010', '2010-04-19'),
(3, 'ORANGE TOP FUN 2010', '2010-04-19');

-- --------------------------------------------------------

--
-- Štruktúra tabuľky pre tabuľku `user`
--

CREATE TABLE IF NOT EXISTS `user` (
  `id` smallint(11) NOT NULL AUTO_INCREMENT,
  `profile_id` smallint(11) NOT NULL DEFAULT '-1',
  `acl_id` smallint(1) NOT NULL DEFAULT '0',
  `mail` varchar(50) NOT NULL,
  `login` varchar(20) NOT NULL,
  `password` varchar(32) NOT NULL,
  `date` date NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;

--
-- Sťahujem dáta pre tabuľku `user`
--

INSERT INTO `user` (`id`, `profile_id`, `acl_id`, `mail`, `login`, `password`, `date`) VALUES
(1, -1, 1, 'xivo@centrum.sk', 'admin', '098f6bcd4621d373cade4e832627b4f6', '2010-04-19'),
(2, -1, 0, 'xivo@centrum.sk', 'test', '098f6bcd4621d373cade4e832627b4f6', '2010-04-20'),
(3, -1, 0, 'xivo@centrum.sk', 'xivo', '453654a3690f4e1c2f3313c6084689cd', '2010-04-19');
