-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwesternnepal.sql
More file actions
152 lines (125 loc) · 4.9 KB
/
Copy pathwesternnepal.sql
File metadata and controls
152 lines (125 loc) · 4.9 KB
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Jan 02, 2017 at 03:18 PM
-- Server version: 10.1.13-MariaDB
-- PHP Version: 7.0.6
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 utf8mb4 */;
--
-- Database: `westernnepal`
--
-- --------------------------------------------------------
--
-- Table structure for table `favorites`
--
CREATE TABLE `favorites` (
`userID` int(11) NOT NULL,
`placeID` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `favorites`
--
INSERT INTO `favorites` (`userID`, `placeID`) VALUES
(1, 1),
(1, 2),
(1, 4),
(2, 2),
(3, 2);
-- --------------------------------------------------------
--
-- Table structure for table `places`
--
CREATE TABLE `places` (
`placeID` int(11) NOT NULL,
`placeName` varchar(50) NOT NULL,
`location` varchar(50) NOT NULL,
`NHeritages` text NOT NULL COMMENT 'Natural Heritages',
`CnRHeritages` text NOT NULL COMMENT 'Cultural/Religious Heritages',
`OAttractions` text NOT NULL COMMENT 'Other Attractions',
`Adventure` text NOT NULL COMMENT 'Adventure Options',
`travelTime` text NOT NULL COMMENT 'Best time to Travel',
`image` text NOT NULL COMMENT 'Image of location'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `places`
--
INSERT INTO `places` (`placeID`, `placeName`, `location`, `NHeritages`, `CnRHeritages`, `OAttractions`, `Adventure`, `travelTime`, `image`) VALUES
(1, 'Gulmi', 'Lumbini Zone', 'Reshunga Lake Thaple Lake Padiko Lake Raniban Lake Dhurkot''s Bichitra Cave Resunga Hill', 'Maghe Sankranti Bhagawati Mandir Thaghas Vagawati Mandir Siddhababa Mandir Khadka Ghudaune Panchawali Pratha Saraya Dance', 'Coffee farming Annapurna Himalayan Ranges can be seen from here Herbs', 'Bird Watching Hiking', 'October to December April to February', 'gulmi.png'),
(2, 'Manang', 'Gandaki Zone', 'Tilicho Lake, Annapurna and Gangapurna', 'Gompa at Manang and Braga, Gompa at Manang and Braga,Gompa at Manang and Braga', 'PhotoGraphy, Trekking Gateway', 'Short treks , Eco friendly adventures,hikings, Bujnee, Horse Riding', 'October to December,April to February', 'manang.jpg'),
(4, 'Lamjung', 'Gandaki Zone', 'Trekking route Thorang La Pass', 'cultural dances like Kaura, Chutka, Krishna Charitra, Sorothi, Ghaantu, Home Stay:Ghale Gaun, Pas Gaun, Bhujung', 'PhotoGraphy, Marshyangdi Hydro Power, Gateway to Mustang', 'Short treks , Eco friendly adventures,hikings', 'October to December\r\nApril to February', 'lamjung.jpg');
-- --------------------------------------------------------
--
-- Table structure for table `user_info`
--
CREATE TABLE `user_info` (
`userID` int(11) NOT NULL,
`fullName` varchar(100) NOT NULL,
`Email` varchar(50) NOT NULL,
`Password` varchar(50) NOT NULL,
`DOB` date NOT NULL,
`lvl` int(2) NOT NULL,
`username` varchar(50) DEFAULT NULL,
`image` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `user_info`
--
INSERT INTO `user_info` (`userID`, `fullName`, `Email`, `Password`, `DOB`, `lvl`, `username`, `image`) VALUES
(1, 'Milan Thapa', 'aryan@icomdroid.com', 'aryan', '1995-12-18', 1, 'aryan', ''),
(2, 'Omash Thapa', 'omash@icomdroid.com', 'omash', '2016-12-01', 1, 'omash', ''),
(3, 'Nita KC', 'nita@icomdroid.com', '12345678', '0000-00-00', 0, 'nita', ''),
(4, 'Nitesh Kafle', 'nitesh@outlook.com', 'nitesh', '1995-12-18', 0, 'nitesh', ''),
(5, 'Milan Khanal', 'milan@gmail.com', 'milan', '1995-03-03', 1, 'milan', '');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `favorites`
--
ALTER TABLE `favorites`
ADD PRIMARY KEY (`userID`,`placeID`),
ADD KEY `placeID` (`placeID`);
--
-- Indexes for table `places`
--
ALTER TABLE `places`
ADD PRIMARY KEY (`placeID`);
--
-- Indexes for table `user_info`
--
ALTER TABLE `user_info`
ADD PRIMARY KEY (`userID`),
ADD UNIQUE KEY `Email` (`Email`),
ADD UNIQUE KEY `username` (`username`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `places`
--
ALTER TABLE `places`
MODIFY `placeID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `user_info`
--
ALTER TABLE `user_info`
MODIFY `userID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `favorites`
--
ALTER TABLE `favorites`
ADD CONSTRAINT `favorites_ibfk_1` FOREIGN KEY (`userID`) REFERENCES `user_info` (`userID`),
ADD CONSTRAINT `favorites_ibfk_2` FOREIGN KEY (`placeID`) REFERENCES `places` (`placeID`);
/*!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 */;