Location: PHPKode > projects > PHPBounce > PHPBounce beta 0.9.9/MySQL Files/database.sql.txt
-- phpMyAdmin SQL Dump
-- version 3.2.0.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Apr 13, 2010 at 05:07 AM
-- Server version: 5.1.36
-- PHP Version: 5.3.0

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";

--
-- Database: `bounce`
--

-- --------------------------------------------------------

--
-- Table structure for table `clients`
--

CREATE TABLE IF NOT EXISTS `clients` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) NOT NULL DEFAULT '',
  `type` varchar(100) NOT NULL DEFAULT '',
  `address` varchar(100) NOT NULL DEFAULT '',
  `phone` varchar(100) NOT NULL DEFAULT '',
  `owner` varchar(66) NOT NULL DEFAULT '',
  `techid` bigint(20) NOT NULL,
  `city` varchar(66) NOT NULL DEFAULT '',
  `state` varchar(66) NOT NULL DEFAULT '',
  `zip` varchar(66) NOT NULL DEFAULT '',
  `email` varchar(66) NOT NULL DEFAULT '',
  `ext` varchar(10) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `client_numbers`
--

CREATE TABLE IF NOT EXISTS `client_numbers` (
  `id` bigint(11) NOT NULL AUTO_INCREMENT,
  `cid` varchar(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `client_users`
--

CREATE TABLE IF NOT EXISTS `client_users` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `type` varchar(66) NOT NULL,
  `username` varchar(66) NOT NULL DEFAULT '',
  `password` varchar(66) NOT NULL DEFAULT '',
  `email` varchar(66) NOT NULL DEFAULT '',
  `name` varchar(66) NOT NULL DEFAULT '',
  `hist` varchar(100) NOT NULL,
  `account` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `company`
--

CREATE TABLE IF NOT EXISTS `company` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(66) NOT NULL,
  `phone` varchar(66) NOT NULL,
  `address` varchar(66) NOT NULL,
  `city` varchar(66) NOT NULL,
  `state` varchar(66) NOT NULL,
  `gmerchantid` varchar(66) NOT NULL,
  `gmerchantkey` varchar(66) NOT NULL,
  `country` varchar(66) NOT NULL,
  `zip` varchar(66) NOT NULL,
  `tax` float NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `invoice`
--

CREATE TABLE IF NOT EXISTS `invoice` (
  `id` bigint(11) NOT NULL AUTO_INCREMENT,
  `client` bigint(11) NOT NULL,
  `token` bigint(11) NOT NULL,
  `invdate` date NOT NULL,
  `paid` int(2) NOT NULL,
  `paiddate` date NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `invoice_items`
--

CREATE TABLE IF NOT EXISTS `invoice_items` (
  `id` bigint(11) NOT NULL AUTO_INCREMENT,
  `invoice` bigint(11) NOT NULL,
  `item` varchar(66) NOT NULL,
  `description` text NOT NULL,
  `qty` float NOT NULL,
  `price` double NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `parts`
--

CREATE TABLE IF NOT EXISTS `parts` (
  `id` bigint(11) NOT NULL AUTO_INCREMENT,
  `iid` bigint(11) NOT NULL,
  `name` varchar(66) NOT NULL,
  `cost` varchar(66) NOT NULL,
  `sale` varchar(66) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `task`
--

CREATE TABLE IF NOT EXISTS `task` (
  `id` bigint(100) NOT NULL AUTO_INCREMENT,
  `owner` int(10) NOT NULL DEFAULT '0',
  `name` varchar(66) NOT NULL DEFAULT '',
  `date` date NOT NULL DEFAULT '0000-00-00',
  `date2` date NOT NULL DEFAULT '0000-00-00',
  `comments` text NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `tickets`
--

CREATE TABLE IF NOT EXISTS `tickets` (
  `id` bigint(11) NOT NULL AUTO_INCREMENT,
  `token` varchar(100) NOT NULL,
  `client_id` bigint(11) NOT NULL,
  `date_start` date NOT NULL,
  `date_stop` date NOT NULL,
  `name` varchar(66) NOT NULL,
  `ownerid` bigint(11) NOT NULL,
  `notes` text NOT NULL,
  `status` varchar(66) NOT NULL,
  `priority` varchar(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `ticket_notes`
--

CREATE TABLE IF NOT EXISTS `ticket_notes` (
  `id` bigint(11) NOT NULL AUTO_INCREMENT,
  `ticket_id` bigint(11) NOT NULL,
  `notes` text NOT NULL,
  `tech_name` varchar(66) NOT NULL,
  `dtime` date NOT NULL,
  `time` varchar(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `timesheets`
--

CREATE TABLE IF NOT EXISTS `timesheets` (
  `id` bigint(11) NOT NULL AUTO_INCREMENT,
  `aprid` bigint(11) NOT NULL,
  `techid` bigint(11) NOT NULL,
  `client` varchar(66) NOT NULL,
  `hours` varchar(66) NOT NULL,
  `description` text NOT NULL,
  `invoice` varchar(66) NOT NULL,
  `parts` varchar(66) NOT NULL,
  `daterec` date NOT NULL,
  `time` varchar(66) NOT NULL,
  `warranty` varchar(66) NOT NULL,
  `paid` varchar(66) NOT NULL,
  `remote` varchar(66) NOT NULL,
  `approval` int(2) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `users`
--

CREATE TABLE IF NOT EXISTS `users` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `type` varchar(66) NOT NULL,
  `username` varchar(66) NOT NULL DEFAULT '',
  `password` varchar(66) NOT NULL DEFAULT '',
  `email` varchar(66) NOT NULL DEFAULT '',
  `sms` varchar(100) NOT NULL,
  `name` varchar(66) NOT NULL DEFAULT '',
  `hist` varchar(100) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
Return current item: PHPBounce