-- MySQL dump 10.11
--
-- Host: localhost    Database: pukusuoli
-- ------------------------------------------------------
-- Server version	5.0.51a-24+lenny4

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `ps_kysymys`
--

DROP TABLE IF EXISTS `ps_kysymys`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `ps_kysymys` (
  `id` int(11) NOT NULL auto_increment,
  `kysymys` text NOT NULL,
  `luoja` int(11) NOT NULL,
  `aika` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  PRIMARY KEY  (`id`),
  KEY `luoja` (`luoja`)
) ENGINE=MyISAM AUTO_INCREMENT=41 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `ps_ominaisuus`
--

DROP TABLE IF EXISTS `ps_ominaisuus`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `ps_ominaisuus` (
  `id` int(11) NOT NULL auto_increment,
  `parametri` int(11) NOT NULL,
  `vastaaja` int(11) NOT NULL,
  `arvo` float NOT NULL,
  `aika` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  PRIMARY KEY  (`id`),
  KEY `parametri` (`parametri`),
  KEY `vastaaja` (`vastaaja`)
) ENGINE=MyISAM AUTO_INCREMENT=1320 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `ps_palaute`
--

DROP TABLE IF EXISTS `ps_palaute`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `ps_palaute` (
  `id` int(11) NOT NULL auto_increment,
  `vastaaja` int(11) NOT NULL,
  `palaute` text NOT NULL,
  `aika` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  PRIMARY KEY  (`id`),
  KEY `vastaaja` (`vastaaja`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `ps_parametri`
--

DROP TABLE IF EXISTS `ps_parametri`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `ps_parametri` (
  `id` int(11) NOT NULL auto_increment,
  `parametri` text NOT NULL,
  `yksikko` text NOT NULL,
  `aika` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=14 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `ps_vaihtoehto`
--

DROP TABLE IF EXISTS `ps_vaihtoehto`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `ps_vaihtoehto` (
  `id` int(11) NOT NULL auto_increment,
  `kysymys` int(11) NOT NULL,
  `vaihtoehto` text NOT NULL,
  `luoja` int(11) NOT NULL,
  `aika` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  PRIMARY KEY  (`id`),
  KEY `kysymys` (`kysymys`),
  KEY `luoja` (`luoja`)
) ENGINE=MyISAM AUTO_INCREMENT=366 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `ps_vastaus`
--

DROP TABLE IF EXISTS `ps_vastaus`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `ps_vastaus` (
  `id` int(11) NOT NULL auto_increment,
  `vastaaja` int(11) NOT NULL,
  `vaihtoehto` int(11) NOT NULL,
  `vastaus` tinyint(4) NOT NULL,
  `aika` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  PRIMARY KEY  (`id`),
  KEY `vastaaja` (`vastaaja`),
  KEY `vaihtoehto` (`vaihtoehto`)
) ENGINE=MyISAM AUTO_INCREMENT=24854 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2010-12-19 19:42:06
