# Database hof_civfanatics_net
# phpMyAdmin MySQL-Dump
# version 2.2.0
# http://phpwizard.net/phpMyAdmin/
# http://phpmyadmin.sourceforge.net/ (download page)
#
# Host: localhost
# Generation Time: June 11, 2004, 2:28 am
# Server version: 3.23.58
# PHP Version: 4.2.2
# Database : `hof_civfanatics_net`
# --------------------------------------------------------

#
# Table structure for table `feudemo_auction`
#

CREATE TABLE feudemo_auction (
  id tinyint(3) unsigned NOT NULL auto_increment,
  seller tinyint(3) unsigned NOT NULL default '0',
  title varchar(128) NOT NULL default '',
  item_type set('Tile','Unit','Building') NOT NULL default '',
  item_id smallint(5) unsigned NOT NULL default '0',
  bidding_opens date NOT NULL default '0000-00-00',
  bidding_closes date NOT NULL default '0000-00-00',
  minimum_bid smallint(5) unsigned NOT NULL default '0',
  current_bid smallint(5) unsigned NOT NULL default '0',
  UNIQUE KEY id (id)
) TYPE=MyISAM;
# --------------------------------------------------------

#
# Table structure for table `feudemo_backup`
#

CREATE TABLE feudemo_backup (
  id tinyint(3) unsigned NOT NULL auto_increment,
  name varchar(64) NOT NULL default '',
  requirements int(11) NOT NULL default '0',
  cost tinyint(3) unsigned NOT NULL default '0',
  upgrade tinyint(3) unsigned NOT NULL default '0',
  upgradecost tinyint(3) unsigned NOT NULL default '0',
  labor_required tinyint(3) unsigned NOT NULL default '0',
  labor_max tinyint(3) unsigned NOT NULL default '0',
  consumed_stock tinyint(3) unsigned NOT NULL default '0',
  consumed_rate tinyint(3) unsigned NOT NULL default '0',
  output_stock tinyint(3) unsigned NOT NULL default '0',
  output_rate tinyint(3) unsigned NOT NULL default '0',
  bonus_stock tinyint(3) unsigned NOT NULL default '0',
  bonus_rate tinyint(3) unsigned NOT NULL default '0',
  UNIQUE KEY id (id)
) TYPE=MyISAM;
# --------------------------------------------------------

#
# Table structure for table `feudemo_bid`
#

CREATE TABLE feudemo_bid (
  id smallint(5) unsigned NOT NULL auto_increment,
  player tinyint(3) unsigned NOT NULL default '0',
  amount smallint(5) unsigned NOT NULL default '0',
  auction smallint(5) unsigned NOT NULL default '0',
  UNIQUE KEY id (id)
) TYPE=MyISAM;
# --------------------------------------------------------

#
# Table structure for table `feudemo_building`
#

CREATE TABLE feudemo_building (
  id smallint(5) unsigned NOT NULL auto_increment,
  tile smallint(5) unsigned NOT NULL default '0',
  owner tinyint(3) unsigned NOT NULL default '0',
  type tinyint(3) unsigned NOT NULL default '0',
  specialty tinyint(3) unsigned NOT NULL default '0',
  name varchar(64) NOT NULL default '',
  escrow tinyint(3) unsigned NOT NULL default '0',
  UNIQUE KEY id (id)
) TYPE=MyISAM;
# --------------------------------------------------------

#
# Table structure for table `feudemo_business`
#

CREATE TABLE feudemo_business (
  id tinyint(3) unsigned NOT NULL auto_increment,
  name varchar(64) NOT NULL default '',
  requirements int(11) NOT NULL default '0',
  cost tinyint(3) unsigned NOT NULL default '0',
  upgrade tinyint(3) unsigned NOT NULL default '0',
  upgrade_cost tinyint(3) unsigned NOT NULL default '0',
  labor_required tinyint(3) unsigned NOT NULL default '0',
  labor_max tinyint(3) unsigned NOT NULL default '0',
  consumed_stock tinyint(3) unsigned NOT NULL default '0',
  consumed_rate tinyint(3) unsigned NOT NULL default '0',
  output_stock tinyint(3) unsigned NOT NULL default '0',
  output_rate tinyint(3) unsigned NOT NULL default '0',
  bonus_stock tinyint(3) unsigned NOT NULL default '0',
  bonus_rate tinyint(3) unsigned NOT NULL default '0',
  UNIQUE KEY id (id)
) TYPE=MyISAM;
# --------------------------------------------------------

#
# Table structure for table `feudemo_city`
#

CREATE TABLE feudemo_city (
  id smallint(5) unsigned NOT NULL auto_increment,
  tile smallint(5) unsigned NOT NULL default '0',
  mayor tinyint(3) unsigned NOT NULL default '0',
  pop tinyint(3) unsigned NOT NULL default '0',
  name varchar(64) NOT NULL default '',
  UNIQUE KEY id (id)
) TYPE=MyISAM;
# --------------------------------------------------------

#
# Table structure for table `feudemo_improvements`
#

CREATE TABLE feudemo_improvements (
  id tinyint(3) unsigned NOT NULL auto_increment,
  name varchar(32) NOT NULL default '',
  UNIQUE KEY id (id)
) TYPE=MyISAM;
# --------------------------------------------------------

#
# Table structure for table `feudemo_map`
#

CREATE TABLE feudemo_map (
  id tinyint(3) unsigned NOT NULL auto_increment,
  name varchar(32) NOT NULL default '',
  tiles int(10) unsigned NOT NULL default '0',
  width smallint(5) unsigned NOT NULL default '0',
  height smallint(5) unsigned NOT NULL default '0',
  UNIQUE KEY id (id)
) TYPE=MyISAM;
# --------------------------------------------------------

#
# Table structure for table `feudemo_player`
#

CREATE TABLE feudemo_player (
  id tinyint(3) unsigned NOT NULL auto_increment,
  name varchar(32) NOT NULL default '',
  password varchar(32) NOT NULL default '',
  email varchar(64) NOT NULL default '',
  title tinyint(3) unsigned NOT NULL default '0',
  UNIQUE KEY id (id)
) TYPE=MyISAM;
# --------------------------------------------------------

#
# Table structure for table `feudemo_resource`
#

CREATE TABLE feudemo_resource (
  id tinyint(3) unsigned NOT NULL auto_increment,
  name varchar(32) NOT NULL default '',
  fbonus tinyint(3) unsigned NOT NULL default '0',
  ftype tinyint(3) unsigned NOT NULL default '0',
  pbonus tinyint(3) unsigned NOT NULL default '0',
  ptype tinyint(3) unsigned NOT NULL default '0',
  cbonus tinyint(3) unsigned NOT NULL default '0',
  ctype tinyint(3) unsigned NOT NULL default '0',
  UNIQUE KEY id (id)
) TYPE=MyISAM;
# --------------------------------------------------------

#
# Table structure for table `feudemo_stock`
#

CREATE TABLE feudemo_stock (
  id tinyint(3) unsigned NOT NULL auto_increment,
  name varchar(32) NOT NULL default '',
  UNIQUE KEY id (id)
) TYPE=MyISAM;
# --------------------------------------------------------

#
# Table structure for table `feudemo_stockpile`
#

CREATE TABLE feudemo_stockpile (
  id tinyint(3) unsigned NOT NULL auto_increment,
  food smallint(5) unsigned NOT NULL default '0',
  production smallint(5) unsigned NOT NULL default '0',
  commerce smallint(5) unsigned NOT NULL default '0',
  labor smallint(5) unsigned NOT NULL default '0',
  tobacco smallint(5) unsigned NOT NULL default '0',
  fruit smallint(5) unsigned NOT NULL default '0',
  sugar smallint(5) unsigned NOT NULL default '0',
  grain smallint(5) unsigned NOT NULL default '0',
  beef smallint(5) unsigned NOT NULL default '0',
  fish smallint(5) unsigned NOT NULL default '0',
  venison smallint(5) unsigned NOT NULL default '0',
  whale smallint(5) unsigned NOT NULL default '0',
  iron smallint(5) unsigned NOT NULL default '0',
  coal smallint(5) unsigned NOT NULL default '0',
  crude_oil smallint(5) unsigned NOT NULL default '0',
  aluminum smallint(5) unsigned NOT NULL default '0',
  uranium smallint(5) unsigned NOT NULL default '0',
  horses smallint(5) unsigned NOT NULL default '0',
  saltpeter smallint(5) unsigned NOT NULL default '0',
  petroleum smallint(5) unsigned NOT NULL default '0',
  fuel_coal smallint(5) unsigned NOT NULL default '0',
  rubber smallint(5) unsigned NOT NULL default '0',
  fuel_cell_uranium smallint(5) unsigned NOT NULL default '0',
  dye smallint(5) unsigned NOT NULL default '0',
  incense smallint(5) unsigned NOT NULL default '0',
  spice smallint(5) unsigned NOT NULL default '0',
  ivory smallint(5) unsigned NOT NULL default '0',
  gems smallint(5) unsigned NOT NULL default '0',
  gold smallint(5) unsigned NOT NULL default '0',
  wine smallint(5) unsigned NOT NULL default '0',
  rum smallint(5) unsigned NOT NULL default '0',
  beer smallint(5) unsigned NOT NULL default '0',
  ale smallint(5) unsigned NOT NULL default '0',
  flour smallint(5) unsigned NOT NULL default '0',
  snacks smallint(5) unsigned NOT NULL default '0',
  pastries smallint(5) unsigned NOT NULL default '0',
  paper smallint(5) unsigned NOT NULL default '0',
  books smallint(5) unsigned NOT NULL default '0',
  pamphlets smallint(5) unsigned NOT NULL default '0',
  UNIQUE KEY id (id)
) TYPE=MyISAM;
# --------------------------------------------------------

#
# Table structure for table `feudemo_tile`
#

CREATE TABLE feudemo_tile (
  id smallint(5) unsigned NOT NULL auto_increment,
  name varchar(64) NOT NULL default '',
  owner tinyint(3) unsigned NOT NULL default '0',
  x tinyint(3) unsigned NOT NULL default '0',
  y tinyint(3) unsigned NOT NULL default '0',
  type tinyint(3) unsigned NOT NULL default '0',
  resource tinyint(3) unsigned NOT NULL default '0',
  improvements int(10) unsigned NOT NULL default '0',
  escrow tinyint(3) unsigned NOT NULL default '0',
  visible tinyint(3) unsigned NOT NULL default '0',
  UNIQUE KEY id (id)
) TYPE=MyISAM;
# --------------------------------------------------------

#
# Table structure for table `feudemo_tile_types`
#

CREATE TABLE feudemo_tile_types (
  id tinyint(3) unsigned NOT NULL auto_increment,
  name varchar(64) NOT NULL default '',
  food tinyint(3) unsigned NOT NULL default '0',
  production tinyint(3) unsigned NOT NULL default '0',
  commerce tinyint(3) unsigned NOT NULL default '0',
  ibonus tinyint(3) unsigned NOT NULL default '0',
  mbonus tinyint(3) unsigned NOT NULL default '0',
  rbonus tinyint(3) unsigned NOT NULL default '0',
  UNIQUE KEY id (id)
) TYPE=MyISAM;
# --------------------------------------------------------

#
# Table structure for table `feudemo_title`
#

CREATE TABLE feudemo_title (
  id tinyint(3) unsigned NOT NULL auto_increment,
  name varchar(32) NOT NULL default '',
  tilerequirement tinyint(3) unsigned NOT NULL default '0',
  unitrequirement tinyint(3) unsigned NOT NULL default '0',
  connectionrequirement tinyint(3) unsigned NOT NULL default '0',
  titlesrequirement tinyint(3) unsigned NOT NULL default '0',
  cost smallint(5) unsigned NOT NULL default '0',
  bonus tinyint(3) unsigned NOT NULL default '0',
  commandleader tinyint(3) unsigned NOT NULL default '0',
  UNIQUE KEY id (id)
) TYPE=MyISAM;
# --------------------------------------------------------

#
# Table structure for table `feudemo_unit`
#

CREATE TABLE feudemo_unit (
  id smallint(5) unsigned NOT NULL auto_increment,
  tile smallint(5) unsigned NOT NULL default '0',
  owner double NOT NULL default '0',
  type smallint(5) unsigned NOT NULL default '0',
  name varchar(64) NOT NULL default '',
  hp tinyint(3) unsigned NOT NULL default '0',
  escrow tinyint(3) unsigned NOT NULL default '0',
  alive tinyint(3) unsigned NOT NULL default '1',
  UNIQUE KEY id (id)
) TYPE=MyISAM;
# --------------------------------------------------------

#
# Table structure for table `feudemo_unit_types`
#

CREATE TABLE feudemo_unit_types (
  id tinyint(3) unsigned NOT NULL auto_increment,
  name varchar(32) NOT NULL default '',
  a tinyint(3) unsigned NOT NULL default '0',
  d tinyint(3) unsigned NOT NULL default '0',
  m tinyint(3) unsigned NOT NULL default '0',
  UNIQUE KEY id (id)
) TYPE=MyISAM;