CREATE TABLE `comments` ( `id` int(10) NOT NULL auto_increment, `assoc` int(10) NOT NULL default '0', `owner` int(10) NOT NULL default '0', `time` int(15) NOT NULL default '0', `text` text collate utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; CREATE TABLE `guests` ( `id` int(10) NOT NULL auto_increment, `pid` int(10) NOT NULL default '0', `uid` int(10) NOT NULL default '0', `invited` tinyint(1) NOT NULL default '1', PRIMARY KEY (`id`), KEY `pid` (`pid`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; CREATE TABLE `pages` ( `id` int(10) NOT NULL auto_increment, `text` text collate utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; INSERT INTO `pages` (`id`, `text`) VALUES (1, '<h2>Join the Fun!</h2>\n<p>All over the world, we're celebrating the launch of Firefox 2. Join the fun by hosting or attending a party. We're targeting the weekend of October 27th for the shared celebration, but if you're hosting, you make the call.</p>\n\n<p>To join the fun, <a href="/users/register">register</a> for a Firefox Party account, and sign up to host or attend.</p>\n\n<p style="border: 1px solid #555; background: #faffd4; padding: 5px; font-weight: bold">Be one of the first 50 party hosts registered and get three extra launch exclusive t-shirts with your purchase of the <a href="">Firefox 2 Party Pack</a>. We're selling the party packs and shirts at cost, so it's a great deal, and for parties with unusually large attendance, we'll be sending out additional swag for door prizes and other give-aways. Stay tuned for updates!</p>'); INSERT INTO `pages` (`id`, `text`) VALUES (2, '1162007940'); CREATE TABLE `parties` ( `id` int(10) NOT NULL auto_increment, `owner` int(10) NOT NULL default '0', `name` tinytext collate utf8_unicode_ci NOT NULL, `vname` tinytext collate utf8_unicode_ci NOT NULL, `address` tinytext collate utf8_unicode_ci NOT NULL, `tz` int(2) NOT NULL default '0', `website` text collate utf8_unicode_ci NOT NULL, `notes` text collate utf8_unicode_ci NOT NULL, `date` int(10) NOT NULL default '0', `duration` tinyint(2) NOT NULL default '2', `confirmed` tinyint(1) NOT NULL default '1', `canceled` tinyint(1) NOT NULL default '0', `guestcomments` tinyint(1) NOT NULL default '0', `inviteonly` tinyint(1) NOT NULL default '0', `invitecode` tinytext collate utf8_unicode_ci NOT NULL, `lat` float NOT NULL default '0', `long` float NOT NULL default '0', `zoom` tinyint(2) NOT NULL default '1', `useflickr` tinyint(1) NOT NULL default '0', `flickrperms` tinyint(1) NOT NULL default '0', `flickrid` tinytext collate utf8_unicode_ci NOT NULL, `flickrusr` tinytext collate utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; CREATE TABLE `sessions` ( `id` varchar(255) character set latin1 NOT NULL default '', `data` text character set latin1, `expires` int(11) default NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; CREATE TABLE `users` ( `id` int(10) NOT NULL auto_increment, `role` tinyint(1) NOT NULL default '0', `email` varchar(255) collate utf8_unicode_ci NOT NULL, `active` varchar(10) collate utf8_unicode_ci NOT NULL default '0', `password` varchar(75) collate utf8_unicode_ci NOT NULL default '', `salt` varchar(9) collate utf8_unicode_ci NOT NULL default '', `name` tinytext collate utf8_unicode_ci NOT NULL, `location` tinytext collate utf8_unicode_ci NOT NULL, `tz` tinyint(2) NOT NULL default '0', `website` text collate utf8_unicode_ci NOT NULL, `lat` float NOT NULL default '0', `long` float NOT NULL default '0', `zoom` tinyint(2) NOT NULL default '1', `showemail` tinyint(1) NOT NULL default '0', `showloc` tinyint(1) NOT NULL default '1', `showmap` tinyint(1) NOT NULL default '1', UNIQUE KEY `email` (`email`), PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;