Skip to content
This repository
Browse code

database added

Signed-off-by: Buddhima Wijeweera <buddhimawijeweera@yahoo.com>
  • Loading branch information...
commit 2ffc8ca4110d18656650edcb9c3645dd0f31bcb2 1 parent 9a32ef1
Buddhima Wijeweera authored
93 GSUN-DB/gsun_places_db.sql
... ... @@ -0,0 +1,93 @@
  1 +-- phpMyAdmin SQL Dump
  2 +-- version 3.2.0.1
  3 +-- http://www.phpmyadmin.net
  4 +--
  5 +-- Host: localhost
  6 +-- Generation Time: Mar 16, 2012 at 03:48 PM
  7 +-- Server version: 5.1.36
  8 +-- PHP Version: 5.3.0
  9 +
  10 +SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
  11 +
  12 +
  13 +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  14 +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  15 +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  16 +/*!40101 SET NAMES utf8 */;
  17 +
  18 +--
  19 +-- Database: `gsun_places_db`
  20 +--
  21 +
  22 +-- --------------------------------------------------------
  23 +
  24 +--
  25 +-- Table structure for table `dictionary`
  26 +--
  27 +
  28 +CREATE TABLE IF NOT EXISTS `dictionary` (
  29 + `need` varchar(20) NOT NULL COMMENT 'user need',
  30 + `type` varchar(20) NOT NULL COMMENT 'category that belongs ',
  31 + `longitude` varchar(20) NOT NULL,
  32 + `latitude` varchar(20) NOT NULL,
  33 + `shop_id` varchar(8) NOT NULL,
  34 + KEY `longitude` (`longitude`),
  35 + KEY `latitude` (`latitude`),
  36 + KEY `shop_id` (`shop_id`)
  37 +) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  38 +
  39 +--
  40 +-- Dumping data for table `dictionary`
  41 +--
  42 +
  43 +INSERT INTO `dictionary` (`need`, `type`, `longitude`, `latitude`, `shop_id`) VALUES
  44 +('Books', 'Stationary', '80.22055530548096', '6.037437570469414', '1'),
  45 +('Pen', 'Stationary', '80.22055530548096', '6.037437570469414', '1'),
  46 +('Paper', 'Stationary', '80.22055530548096', '6.037437570469414', '1'),
  47 +('Stickers', 'Stationary', '80.22055530548096', '6.037437570469414', '1'),
  48 +('Printouts', 'Stationary', '80.22055530548096', '6.037437570469414', '1'),
  49 +('Newspapers', 'Stationary', '80.21891379356384', '6.034678208665372', '2'),
  50 +('CD', 'Computer', '80.21891379356384', '6.034678208665372', '2'),
  51 +('Books', 'Stationary', '80.21891379356384', '6.034678208665372', '2'),
  52 +('Pen', 'Stationary', '80.21891379356384', '6.034678208665372', '2'),
  53 +('Papers', 'Stationary', '80.21891379356384', '6.034678208665372', '2');
  54 +
  55 +-- --------------------------------------------------------
  56 +
  57 +--
  58 +-- Table structure for table `shops`
  59 +--
  60 +
  61 +CREATE TABLE IF NOT EXISTS `shops` (
  62 + `shop_id` bigint(10) NOT NULL AUTO_INCREMENT COMMENT 'shop id',
  63 + `shop_name` varchar(20) NOT NULL COMMENT 'name of the shop',
  64 + `longitude` varchar(20) NOT NULL COMMENT 'to east',
  65 + `latitude` varchar(20) NOT NULL COMMENT 'to north',
  66 + `address` varchar(50) NOT NULL,
  67 + `telephone_no` varchar(12) NOT NULL COMMENT 'international format',
  68 + `email` varchar(20) NOT NULL,
  69 + `discription` varchar(150) NOT NULL COMMENT 'info about shop',
  70 + KEY `shop_id_2` (`shop_id`),
  71 + KEY `shop_id` (`shop_id`),
  72 + KEY `longitude` (`longitude`),
  73 + KEY `latitude` (`latitude`)
  74 +) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
  75 +
  76 +--
  77 +-- Dumping data for table `shops`
  78 +--
  79 +
  80 +INSERT INTO `shops` (`shop_id`, `shop_name`, `longitude`, `latitude`, `address`, `telephone_no`, `email`, `discription`) VALUES
  81 +(1, 'Ariyadasa Bookshop', '80.22055530548096', '6.037437570469414', '26,\r\nOlcot Road,\r\nGalle', '+94911234567', 'ariyadasa@sltnet.lk', 'Best Book Seller in Galle'),
  82 +(2, 'Aradhana Bookshop', '80.21891379356384', '6.034678208665372', '2,\r\nMain Street,\r\nGalle', '+94911234567', 'aradhana@gmail.com', 'Newspaper seller');
  83 +
  84 +--
  85 +-- Constraints for dumped tables
  86 +--
  87 +
  88 +--
  89 +-- Constraints for table `dictionary`
  90 +--
  91 +ALTER TABLE `dictionary`
  92 + ADD CONSTRAINT `dictionary_ibfk_1` FOREIGN KEY (`longitude`) REFERENCES `shops` (`longitude`) ON DELETE CASCADE ON UPDATE CASCADE,
  93 + ADD CONSTRAINT `dictionary_ibfk_2` FOREIGN KEY (`latitude`) REFERENCES `shops` (`latitude`) ON DELETE CASCADE ON UPDATE CASCADE;
61 GSUN-DB/gsun_temp_db.sql
... ... @@ -0,0 +1,61 @@
  1 +-- phpMyAdmin SQL Dump
  2 +-- version 3.2.0.1
  3 +-- http://www.phpmyadmin.net
  4 +--
  5 +-- Host: localhost
  6 +-- Generation Time: Mar 16, 2012 at 03:48 PM
  7 +-- Server version: 5.1.36
  8 +-- PHP Version: 5.3.0
  9 +
  10 +SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
  11 +
  12 +
  13 +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  14 +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  15 +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  16 +/*!40101 SET NAMES utf8 */;
  17 +
  18 +--
  19 +-- Database: `gsun_temp_db`
  20 +--
  21 +
  22 +-- --------------------------------------------------------
  23 +
  24 +--
  25 +-- Table structure for table `shops`
  26 +--
  27 +
  28 +CREATE TABLE IF NOT EXISTS `shops` (
  29 + `shop_name` varchar(30) NOT NULL,
  30 + `longitude` varchar(20) NOT NULL,
  31 + `latitude` varchar(20) NOT NULL,
  32 + `address` varchar(30) NOT NULL,
  33 + `telephone_no` varchar(12) NOT NULL,
  34 + `email` varchar(20) NOT NULL,
  35 + `discription` varchar(150) NOT NULL,
  36 + `need_type` varchar(200) NOT NULL,
  37 + PRIMARY KEY (`shop_name`)
  38 +) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  39 +
  40 +--
  41 +-- Dumping data for table `shops`
  42 +--
  43 +
  44 +
  45 +-- --------------------------------------------------------
  46 +
  47 +--
  48 +-- Table structure for table `users`
  49 +--
  50 +
  51 +CREATE TABLE IF NOT EXISTS `users` (
  52 + `user_name` varchar(20) NOT NULL,
  53 + `password` varchar(20) NOT NULL,
  54 + `email` varchar(20) NOT NULL,
  55 + `discription` varchar(150) NOT NULL
  56 +) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  57 +
  58 +--
  59 +-- Dumping data for table `users`
  60 +--
  61 +
42 GSUN-DB/gsun_users_db.sql
... ... @@ -0,0 +1,42 @@
  1 +-- phpMyAdmin SQL Dump
  2 +-- version 3.2.0.1
  3 +-- http://www.phpmyadmin.net
  4 +--
  5 +-- Host: localhost
  6 +-- Generation Time: Mar 16, 2012 at 03:48 PM
  7 +-- Server version: 5.1.36
  8 +-- PHP Version: 5.3.0
  9 +
  10 +SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
  11 +
  12 +
  13 +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  14 +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  15 +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  16 +/*!40101 SET NAMES utf8 */;
  17 +
  18 +--
  19 +-- Database: `gsun_users_db`
  20 +--
  21 +
  22 +-- --------------------------------------------------------
  23 +
  24 +--
  25 +-- Table structure for table `android_users`
  26 +--
  27 +
  28 +CREATE TABLE IF NOT EXISTS `android_users` (
  29 + `user_id` varchar(4) NOT NULL COMMENT 'user ids given',
  30 + `user_name` varchar(8) NOT NULL COMMENT 'username MAX8',
  31 + `password` varchar(200) NOT NULL COMMENT 'encrypted password',
  32 + `email` varchar(50) NOT NULL COMMENT 'user email',
  33 + `discription` varchar(150) DEFAULT NULL COMMENT 'user discription',
  34 + PRIMARY KEY (`user_id`)
  35 +) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='all users data';
  36 +
  37 +--
  38 +-- Dumping data for table `android_users`
  39 +--
  40 +
  41 +INSERT INTO `android_users` (`user_id`, `user_name`, `password`, `email`, `discription`) VALUES
  42 +('asd', 'asd', 'asd', 'asd', 'asd');

0 comments on commit 2ffc8ca

Please sign in to comment.
Something went wrong with that request. Please try again.