-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththegaqkr_elixir.sql
131 lines (111 loc) · 3.9 KB
/
thegaqkr_elixir.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
-- phpMyAdmin SQL Dump
-- version 4.0.10.7
-- http://www.phpmyadmin.net
--
-- Host: localhost:3306
-- Generation Time: Sep 01, 2016 at 09:25 AM
-- Server version: 5.6.23-72.1-log
-- PHP Version: 5.4.31
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: `thegaqkr_elixir`
--
-- --------------------------------------------------------
--
-- Table structure for table `banks`
--
CREATE TABLE IF NOT EXISTS `banks` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(200) NOT NULL,
`address` varchar(400) NOT NULL,
`city` varchar(50) NOT NULL,
`pin` int(11) NOT NULL,
`lat` float(10,6) NOT NULL,
`lang` float(10,6) NOT NULL,
`time_open` varchar(100) NOT NULL,
`days` varchar(100) NOT NULL,
`phone_numbers` varchar(100) NOT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;
-- --------------------------------------------------------
--
-- Table structure for table `notifications`
--
CREATE TABLE IF NOT EXISTS `notifications` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`city` varchar(100) NOT NULL,
`blood_group` varchar(20) NOT NULL,
`timestamp` int(11) NOT NULL,
`notif_title` varchar(300) NOT NULL,
`notif_text` text NOT NULL,
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `pins`
--
CREATE TABLE IF NOT EXISTS `pins` (
`country_code` varchar(2) COLLATE armscii8_bin NOT NULL,
`ID` int(11) NOT NULL AUTO_INCREMENT,
`pin_code` varchar(20) COLLATE armscii8_bin NOT NULL,
`place_name` varchar(180) COLLATE armscii8_bin NOT NULL,
`state` varchar(100) COLLATE armscii8_bin NOT NULL,
`state_code` varchar(20) COLLATE armscii8_bin NOT NULL,
`sub_1` varchar(100) COLLATE armscii8_bin NOT NULL,
`sub_code_1` varchar(20) COLLATE armscii8_bin NOT NULL,
`sub_2` varchar(100) COLLATE armscii8_bin NOT NULL,
`sub_code_2` varchar(20) COLLATE armscii8_bin NOT NULL,
`lat` float(10,6) NOT NULL,
`lang` float(10,6) NOT NULL,
`accuracy` int(1) NOT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=armscii8 COLLATE=armscii8_bin AUTO_INCREMENT=925181 ;
-- --------------------------------------------------------
--
-- Table structure for table `posts`
--
CREATE TABLE IF NOT EXISTS `posts` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`user` int(11) NOT NULL,
`title` varchar(200) NOT NULL,
`para` text NOT NULL,
`city` varchar(200) NOT NULL,
`blood_group` varchar(4) NOT NULL,
`phon_number` varchar(10) NOT NULL,
`time` int(11) NOT NULL,
`pin` int(11) NOT NULL,
`address` varchar(400) NOT NULL,
`lat` float(10,6) NOT NULL,
`lang` float(10,6) NOT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=16 ;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE IF NOT EXISTS `users` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`pin` int(11) NOT NULL,
`user_login` varchar(200) NOT NULL,
`full_name` varchar(200) NOT NULL,
`user_pass` varchar(200) NOT NULL,
`user_email` varchar(100) NOT NULL,
`donated_to` text NOT NULL,
`mobile` varchar(200) NOT NULL,
`lat` float(10,6) NOT NULL,
`lang` float(10,6) NOT NULL,
`blood_group` varchar(5) NOT NULL,
`city` varchar(100) NOT NULL,
`verified` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`ID`),
UNIQUE KEY `user_login` (`user_login`),
UNIQUE KEY `user_email` (`user_email`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=57 ;
/*!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 */;