-- MySQL dump 9.11 -- -- Host: localhost Database: conversion -- ------------------------------------------------------ -- Server version 4.0.22-log -- -- Table structure for table `allocs` -- CREATE TABLE `allocs` ( `itemid` int(11) NOT NULL default '0', `userid` int(11) NOT NULL default '0', `bought` tinyint(1) NOT NULL default '0', `quantity` int(11) NOT NULL default '0', PRIMARY KEY (`itemid`,`userid`,`bought`) ); -- -- Table structure for table `categories` -- CREATE TABLE `categories` ( `categoryid` int(11) NOT NULL auto_increment, `category` varchar(50) default NULL, PRIMARY KEY (`categoryid`) ); -- -- Dumping data for table `categories` -- INSERT INTO `categories` VALUES (1,'Books'); INSERT INTO `categories` VALUES (2,'Music'); INSERT INTO `categories` VALUES (3,'Video Games'); INSERT INTO `categories` VALUES (4,'Clothing'); INSERT INTO `categories` VALUES (5,'Movies/DVD'); INSERT INTO `categories` VALUES (6,'Gift Certificates'); INSERT INTO `categories` VALUES (7,'Hobbies'); INSERT INTO `categories` VALUES (8,'Household'); INSERT INTO `categories` VALUES (9,'Electronics'); INSERT INTO `categories` VALUES (10,'Ornaments/Figurines'); INSERT INTO `categories` VALUES (11,'Automotive'); INSERT INTO `categories` VALUES (12,'Toys'); INSERT INTO `categories` VALUES (13,'Jewellery'); INSERT INTO `categories` VALUES (14,'Computer'); INSERT INTO `categories` VALUES (15,'Games'); INSERT INTO `categories` VALUES (16,'Tools'); -- -- Table structure for table `events` -- CREATE TABLE `events` ( `eventid` int(11) NOT NULL auto_increment, `userid` int(11) default NULL, `description` varchar(100) NOT NULL default '', `eventdate` date NOT NULL default '0000-00-00', `recurring` tinyint(1) NOT NULL default '0', PRIMARY KEY (`eventid`) ); -- -- Dumping data for table `events` -- INSERT INTO `events` VALUES (1,NULL,'Christmas','2000-12-25',1); -- -- Table structure for table `items` -- CREATE TABLE `items` ( `itemid` int(11) NOT NULL auto_increment, `userid` int(11) NOT NULL default '0', `description` varchar(255) NOT NULL default '', `price` decimal(7,2) default NULL, `source` varchar(255) NOT NULL default '', `ranking` int(11) NOT NULL default '0', `url` varchar(255) default NULL, `category` int(11) default NULL, `comment` text, `quantity` int(11) NOT NULL default '0', `image_filename` varchar(255) default NULL, PRIMARY KEY (`itemid`) ); -- -- Table structure for table `messages` -- CREATE TABLE `messages` ( `messageid` int(11) NOT NULL auto_increment, `sender` int(11) NOT NULL default '0', `recipient` int(11) NOT NULL default '0', `message` varchar(255) NOT NULL default '', `isread` tinyint(1) NOT NULL default '0', `created` date NOT NULL default '0000-00-00', PRIMARY KEY (`messageid`) ); -- -- Table structure for table `ranks` -- CREATE TABLE `ranks` ( `ranking` int(11) NOT NULL auto_increment, `title` varchar(50) NOT NULL default '', `rendered` varchar(255) NOT NULL default '', `rankorder` int(11) NOT NULL default '0', PRIMARY KEY (`ranking`) ); -- -- Dumping data for table `ranks` -- INSERT INTO `ranks` VALUES (1,'1 - Wouldn\'t mind it','\"*\"\"\"\"\"\"\"\"\"',1); INSERT INTO `ranks` VALUES (2,'2 - Would be nice to have','\"*\"\"*\"\"\"\"\"\"\"',2); INSERT INTO `ranks` VALUES (3,'3 - Would make me happy','\"*\"\"*\"\"*\"\"\"\"\"',3); INSERT INTO `ranks` VALUES (4,'4 - I would really, really like this','\"*\"\"*\"\"*\"\"*\"\"\"',4); INSERT INTO `ranks` VALUES (5,'5 - I\'d love to get this','\"*\"\"*\"\"*\"\"*\"\"*\"',5); -- -- Table structure for table `shoppers` -- CREATE TABLE `shoppers` ( `shopper` int(11) NOT NULL default '0', `mayshopfor` int(11) NOT NULL default '0', `pending` tinyint(1) NOT NULL default '0', PRIMARY KEY (`shopper`,`mayshopfor`) ); -- -- Table structure for table `families` -- CREATE TABLE families ( familyid int(11) NOT NULL auto_increment, familyname varchar(255) NOT NULL default '', PRIMARY KEY (familyid) ); -- -- Table structure for table `users` -- CREATE TABLE `users` ( `userid` int(11) NOT NULL auto_increment, `username` varchar(20) NOT NULL default '', `password` varchar(50) NOT NULL default '', `fullname` varchar(50) NOT NULL default '', `email` varchar(255) default NULL, `approved` tinyint(1) NOT NULL default '0', `admin` tinyint(1) NOT NULL default '0', `comment` text, `email_msgs` tinyint(1) NOT NULL default '0', `list_stamp` datetime default NULL, `initialfamilyid` int NULL, PRIMARY KEY (`userid`) ); -- -- Table structure for table `memberships` -- CREATE TABLE memberships ( userid int(11) NOT NULL default '0', familyid int(11) NOT NULL default '0', PRIMARY KEY (userid,familyid) ); CREATE TABLE `subscriptions` ( `publisher` int(11) NOT NULL, `subscriber` int(11) NOT NULL, `last_notified` datetime DEFAULT NULL, PRIMARY KEY (`publisher`,`subscriber`) );