text: -- phpMyAdmin SQL Dump
  -- version 3.5.1
  -- http://www.phpmyadmin.net
  --
  -- Host: localhost
  -- Generation Time: Jul 04, 2013 at 03:06 PM
  -- Server version: 5.5.24-log
  -- PHP Version: 5.3.13
  
  SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
  SET time_zone = "+00:00";
  
  
  /*!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 */;
  
  --
  -- Database: `survey`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `admin_users`
  --
  
  CREATE TABLE IF NOT EXISTS `admin_users` (
    `users_id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(255) NOT NULL,
    `username` varchar(255) NOT NULL,
    `password` varchar(255) NOT NULL,
    `email` varchar(255) NOT NULL,
    PRIMARY KEY (`users_id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `client_forms`
  --
  
  CREATE TABLE IF NOT EXISTS `client_forms` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `client_id` int(11) NOT NULL,
    `form_id` int(11) NOT NULL,
    `date_completed` timestamp NULL DEFAULT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `client_info`
  --
  
  CREATE TABLE IF NOT EXISTS `client_info` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `contact_salutation` varchar(10) DEFAULT NULL,
    `contact_name` varchar(255) NOT NULL,
    `company` varchar(255) NOT NULL,
    `address1` varchar(255) NOT NULL,
    `address2` varchar(255) DEFAULT NULL,
    `city` varchar(255) NOT NULL,
    `state` varchar(50) NOT NULL,
    `zip` varchar(20) NOT NULL,
    `phone_number` varchar(20) NOT NULL,
    `fax_number` varchar(20) DEFAULT NULL,
    `email_address` varchar(255) NOT NULL,
    `added` timestamp NULL DEFAULT NULL,
    `modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
    `psk` varchar(255) NOT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `form_fields`
  --
  
  CREATE TABLE IF NOT EXISTS `form_fields` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `field_type` varchar(25) NOT NULL,
    `field_length` int(3) NOT NULL,
    `max_chars` int(3) NOT NULL,
    `required` tinyint(1) NOT NULL DEFAULT '0',
    `default_value` text,
    `description` text NOT NULL,
    `field_columns` int(11) DEFAULT NULL,
    `name` varchar(255) NOT NULL,
    `type_values` text,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `form_info`
  --
  
  CREATE TABLE IF NOT EXISTS `form_info` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(255) NOT NULL,
    `description` text NOT NULL,
    `enabled` tinyint(1) DEFAULT '0',
    `letter` text NOT NULL,
    `added` timestamp NULL DEFAULT NULL,
    `modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `form_results`
  --
  
  CREATE TABLE IF NOT EXISTS `form_results` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `form_id` int(11) NOT NULL,
    `field_id` int(11) NOT NULL,
    `question_id` int(11) NOT NULL,
    `client_id` int(11) NOT NULL,
    `result` text NOT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
  
  /*!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 */;
  