-- phpMyAdmin SQL Dump -- version 3.3.2deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Aug 27, 2010 at 05:20 PM -- Server version: 5.1.41 -- PHP Version: 5.3.2-1ubuntu4.2 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!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: `kcoda` -- -- -------------------------------------------------------- -- -- Table structure for table `comments` -- CREATE TABLE IF NOT EXISTS `comments` ( `comment_id` int(11) NOT NULL AUTO_INCREMENT, `project_id` int(11) NOT NULL, `news_id` int(11) NOT NULL, `author` varchar(50) NOT NULL, `comment` text NOT NULL, `date_posted` datetime NOT NULL, PRIMARY KEY (`comment_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Dumping data for table `comments` -- -- -------------------------------------------------------- -- -- Table structure for table `media` -- CREATE TABLE IF NOT EXISTS `media` ( `id` int(11) NOT NULL AUTO_INCREMENT, `project_id` int(11) NOT NULL, `data` longtext NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Dumping data for table `media` -- -- -------------------------------------------------------- -- -- Table structure for table `news` -- CREATE TABLE IF NOT EXISTS `news` ( `news_id` int(11) NOT NULL AUTO_INCREMENT, `news_title` varchar(250) NOT NULL, `news_content` longtext NOT NULL, `author` varchar(250) NOT NULL, `date_posted` datetime NOT NULL, PRIMARY KEY (`news_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Dumping data for table `news` -- -- -------------------------------------------------------- -- -- Table structure for table `projects` -- CREATE TABLE IF NOT EXISTS `projects` ( `project_id` int(11) NOT NULL AUTO_INCREMENT, `project_title` varchar(250) NOT NULL, /* PROJECT NAME */ `district` varchar(50) NOT NULL, /* */ `constituency` varchar(50) NOT NULL, /* */ `constituency_mp` varchar(50) NOT NULL, /* */ `location` varchar(50) NOT NULL, /* LOCATION */ `project_description` text NOT NULL, /* ACTIVITY TO BE DONE */ `start_date` datetime NOT NULL, /* ?? */ `due_date` datetime NOT NULL, /* ?? */ `estimated_cost` bigint(200) NOT NULL, /* ESTIMATED COST */ `allocated_amount_2003` bigint(200) NOT NULL, /* AMOUNT ALLOCATED 2003/04 */ `allocated_amount_2004` bigint(200) NOT NULL, /* AMOUNT ALLOCATED 2004/05 */ `allocated_amount_2005` bigint(200) NOT NULL, /* AMOUNT ALLOCATED 2005/06 */ `allocated_amount_2006` bigint(200) NOT NULL, /* AMOUNT ALLOCATED 2006/07 */ `allocated_amount_2007` bigint(200) NOT NULL, /* AMOUNT ALLOCATED 2007/08 */ `amount_spent` bigint(200) NOT NULL, /* AMOUNT SPENT TO DATE */ `financial_year` varchar(50) NOT NULL, /* ?? */ `contractor` varchar(50) NOT NULL, /* ?? */ `real_status` text NOT NULL, /* ?? */ `official_status` text NOT NULL, /* IMPLE. STATUS */ `official_remarks` text NOT NULL, /* Remarks */ `reallocated_to` varchar(50) NOT NULL, /* ?? */ `date_posted` datetime NOT NULL, `posted_by` varchar(50) NOT NULL, `latitude` float(10,6) NOT NULL, `longitude` float(10,6) NOT NULL, `status` varchar(50) NOT NULL, PRIMARY KEY (`project_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=159 ;