--
-- Host: localhost    Database: creativ5_news
-- ------------------------------------------------------


--
-- Current Database: `creativ5_news`
--

CREATE DATABASE /*!32312 IF NOT EXISTS*/ `creativ5_news` /*!40100 DEFAULT CHARACTER SET latin1 */;

USE `creativ5_news`;

--
-- Table structure for table `WeekA`
--

CREATE TABLE `WeekA` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `wid` int(11) DEFAULT NULL,
  `answer` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `WeekA`
--


--
-- Table structure for table `gallery`
--

CREATE TABLE `gallery` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `author` tinytext NOT NULL,
  `name` tinytext NOT NULL,
  `description` tinytext NOT NULL,
  `datum` date NOT NULL DEFAULT '0000-00-00',
  `root` tinyint(4) NOT NULL DEFAULT '0',
  `picture` tinytext NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `gallery`
--


--
-- Table structure for table `groups`
--

CREATE TABLE `groups` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` tinytext NOT NULL,
  `description` text NOT NULL,
  `news_add` tinyint(4) NOT NULL DEFAULT '0',
  `news_edit` tinyint(4) NOT NULL DEFAULT '0',
  `news_del` tinyint(4) NOT NULL DEFAULT '0',
  `news_ul` tinyint(4) NOT NULL DEFAULT '0',
  `news_mod` tinyint(4) NOT NULL DEFAULT '0',
  `admin_add` tinyint(4) NOT NULL DEFAULT '0',
  `admin_edit` tinyint(4) NOT NULL DEFAULT '0',
  `admin_del` tinyint(4) NOT NULL DEFAULT '0',
  `pnews_add` tinyint(4) NOT NULL DEFAULT '0',
  `pnews_edit` tinyint(4) NOT NULL DEFAULT '0',
  `pnews_del` tinyint(4) NOT NULL DEFAULT '0',
  `pnews_submit` tinyint(4) NOT NULL DEFAULT '0',
  `cat_add` tinyint(4) NOT NULL DEFAULT '0',
  `cat_edit` tinyint(4) NOT NULL DEFAULT '0',
  `cat_del` tinyint(4) NOT NULL DEFAULT '0',
  `cat_ul` tinyint(4) NOT NULL DEFAULT '0',
  `users_add` tinyint(4) NOT NULL DEFAULT '0',
  `users_edit` tinyint(4) NOT NULL DEFAULT '0',
  `users_del` tinyint(4) NOT NULL DEFAULT '0',
  `partner_add` tinyint(4) NOT NULL DEFAULT '0',
  `partner_edit` tinyint(4) NOT NULL DEFAULT '0',
  `partner_del` tinyint(4) NOT NULL DEFAULT '0',
  `partner_ul` tinyint(4) NOT NULL DEFAULT '0',
  `wp_add` tinyint(4) NOT NULL DEFAULT '0',
  `wp_edit` tinyint(4) NOT NULL DEFAULT '0',
  `wp_del` tinyint(4) NOT NULL DEFAULT '0',
  `group_add` tinyint(4) NOT NULL DEFAULT '0',
  `group_edit` tinyint(4) NOT NULL DEFAULT '0',
  `group_del` tinyint(4) NOT NULL DEFAULT '0',
  `smiley_add` tinyint(4) NOT NULL DEFAULT '0',
  `smiley_edit` tinyint(4) NOT NULL DEFAULT '0',
  `smiley_del` tinyint(4) NOT NULL DEFAULT '0',
  `smiley_ul` tinyint(4) NOT NULL DEFAULT '0',
  `rss_edit` tinyint(4) NOT NULL DEFAULT '0',
  `gallery_add` tinyint(4) NOT NULL DEFAULT '0',
  `gallery_edit` tinyint(4) NOT NULL DEFAULT '0',
  `gallery_del` tinyint(4) NOT NULL DEFAULT '0',
  `gallery_ul` tinyint(4) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `groups`
--

INSERT INTO `groups` VALUES (1,'Full Admin','All function can be accessed',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1);

--
-- Table structure for table `news`
--

CREATE TABLE `news` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `headline` varchar(80) DEFAULT NULL,
  `author` varchar(80) DEFAULT NULL,
  `category` varchar(80) DEFAULT NULL,
  `picture` varchar(120) DEFAULT NULL,
  `datum2` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datum` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `preview` text,
  `tekst` text,
  `lang` varchar(10) DEFAULT NULL,
  `views` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `news`
--


--
-- Table structure for table `news_comments`
--

CREATE TABLE `news_comments` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nid` int(11) NOT NULL DEFAULT '0',
  `author` varchar(30) NOT NULL DEFAULT '',
  `datum` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `tekst` text NOT NULL,
  UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `news_comments`
--


--
-- Table structure for table `news_logged`
--

CREATE TABLE `news_logged` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nid` int(11) NOT NULL DEFAULT '0',
  `ip` varchar(250) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `news_logged`
--


--
-- Table structure for table `partners`
--

CREATE TABLE `partners` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` tinytext,
  `link` tinytext,
  `picture` tinytext,
  `description` text,
  `clicks` int(11) DEFAULT NULL,
  `main` int(1) DEFAULT NULL,
  `gfx` int(1) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `partners`
--


--
-- Table structure for table `pictures`
--

CREATE TABLE `pictures` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `author` tinytext NOT NULL,
  `name` tinytext NOT NULL,
  `thumbnail` tinytext NOT NULL,
  `picture` tinytext NOT NULL,
  `description` text NOT NULL,
  `datum` date NOT NULL DEFAULT '0000-00-00',
  `gid` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `pictures`
--


--
-- Table structure for table `pnews`
--

CREATE TABLE `pnews` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `headline` varchar(80) DEFAULT NULL,
  `author` varchar(80) DEFAULT NULL,
  `category` varchar(80) DEFAULT NULL,
  `picture` varchar(120) DEFAULT NULL,
  `datum` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `preview` text,
  `tekst` text,
  `lang` varchar(10) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `pnews`
--


--
-- Table structure for table `rss`
--

CREATE TABLE `rss` (
  `filename` tinytext NOT NULL,
  `number` int(11) NOT NULL DEFAULT '10',
  `title` tinytext NOT NULL,
  `link` tinytext NOT NULL,
  `description` tinytext NOT NULL,
  `auto` tinyint(4) NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `rss`
--

INSERT INTO `rss` VALUES ('news.rss',10,'CreativeImageExperts.com News','http://www.creativeimageexperts.com/news/','Upcoming Events and News Group',1);

--
-- Table structure for table `smileys`
--

CREATE TABLE `smileys` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(50) DEFAULT NULL,
  `smile` varchar(100) DEFAULT NULL,
  `emotion` varchar(75) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=45 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `smileys`
--

INSERT INTO `smileys` VALUES (37,':x','s026.gif','Sick'),(35,':(','s024.gif','Sad'),(34,':-(','s024.gif','Sad'),(29,'(o)','s020.gif','Moon'),(30,'}:|','s021.gif','Ninja'),(33,':sad:','s024.gif','Sad'),(32,':brb','s023.gif','Running'),(31,':,','s022.gif','OhWell'),(27,'LOL','s019.gif','LOL'),(26,'lol','s019.gif','LOL'),(28,':moon','s020.gif','Moon'),(24,':|','s017.gif','Impartial'),(23,':-)','s016.gif','Happy'),(22,':smile:','s016.gif','Happy'),(20,':grin:','s015.gif','Grin'),(21,':)','s016.gif','Happy'),(19,':-D','s015.gif','Grin'),(18,':D','s015.gif','Grin'),(14,'{:p','s011.gif','Fool'),(13,':evil','s010.gif','Evil'),(16,':grave','s013.gif','gRAVE'),(12,'}:D','s010.gif','Evil'),(11,':O','s009.gif','Embarassed'),(9,':devil','s007.gif','Devil'),(8,':cry','s006.gif','Cry'),(7,'B)','s005.gif','Cool'),(6,'8)','s005.gif','Cool'),(4,':9','s003.gif','Cheesy'),(3,'}:(','s002.gif','Angry'),(2,':o','s001.gif','Amazed'),(1,'8O','s001.gif','Amazed'),(38,':zzz','s027.gif','Sleepy'),(39,'==~','s028.gif','Smoker'),(40,':smoke','s028.gif','Smoker'),(41,':p','s029.gif','Tongue'),(42,':P','s029.gif','Tongue'),(43,';)','s030.gif','Wink'),(44,'}:?','s031.gif','What');

--
-- Table structure for table `topic`
--

CREATE TABLE `topic` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `topicimage` varchar(80) DEFAULT NULL,
  `topictext` varchar(255) DEFAULT NULL,
  `counter` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `topic`
--

INSERT INTO `topic` VALUES (1,'other.jpg','News Update',0);

--
-- Table structure for table `weekQ`
--

CREATE TABLE `weekQ` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `question` text,
  `answers` varchar(255) DEFAULT NULL,
  `author` varchar(120) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `weekQ`
--



