CREATE TABLE `#__contact_details` ( `id` integer NOT NULL auto_increment, `name` varchar(255) NOT NULL default '', `alias` varchar(255) NOT NULL default '', `con_position` varchar(255) default NULL, `address` text, `suburb` varchar(100) default NULL, `state` varchar(100) default NULL, `country` varchar(100) default NULL, `postcode` varchar(100) default NULL, `telephone` varchar(255) default NULL, `fax` varchar(255) default NULL, `misc` mediumtext, `image` varchar(255) default NULL, `imagepos` varchar(20) default NULL, `email_to` varchar(255) default NULL, `default_con` tinyint(1) unsigned NOT NULL default '0', `published` tinyint(1) NOT NULL default '0', `checked_out` integer unsigned NOT NULL default '0', `checked_out_time` datetime NOT NULL default '0000-00-00 00:00:00', `ordering` integer NOT NULL default '0', `params` text NOT NULL, `user_id` integer NOT NULL default '0', `catid` integer NOT NULL default '0', `access` tinyint(3) unsigned NOT NULL default '0', `mobile` varchar(255) NOT NULL default '', `webpage` varchar(255) NOT NULL default '', `sortname1` varchar(255) NOT NULL, `sortname2` varchar(255) NOT NULL, `sortname3` varchar(255) NOT NULL, `language` char(7) NOT NULL, `created` datetime NOT NULL default '0000-00-00 00:00:00', `created_by` int(10) unsigned NOT NULL default '0', `created_by_alias` varchar(255) NOT NULL default '', `modified` datetime NOT NULL default '0000-00-00 00:00:00', `modified_by` int(10) unsigned NOT NULL default '0', `metakey` text NOT NULL, `metadesc` text NOT NULL, `metadata` text NOT NULL, `featured` tinyint(3) unsigned NOT NULL default '0' COMMENT 'Set if article is featured.', `xreference` varchar(50) NOT NULL COMMENT 'A reference to enable linkages to external data sets.', `publish_up` datetime NOT NULL default '0000-00-00 00:00:00', `publish_down` datetime NOT NULL default '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `idx_access` (`access`), KEY `idx_checkout` (`checked_out`), KEY `idx_state` (`published`), KEY `idx_catid` (`catid`), KEY `idx_createdby` (`created_by`), KEY `idx_featured_catid` (`featured`,`catid`), KEY `idx_language` (`language`), KEY `idx_xreference` (`xreference`) ) DEFAULT CHARSET=utf8;