-
Notifications
You must be signed in to change notification settings - Fork 0
/
cariwarnet.sql
164 lines (135 loc) · 4.73 KB
/
cariwarnet.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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Jan 06, 2016 at 10:58 AM
-- Server version: 10.1.9-MariaDB
-- PHP Version: 5.5.30
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: `cariwarnet`
--
-- --------------------------------------------------------
--
-- Table structure for table `tblcomment`
--
CREATE TABLE `tblcomment` (
`com_warnet_id` int(8) NOT NULL,
`com_mbr_id` int(8) NOT NULL,
`com_desc` varchar(200) NOT NULL DEFAULT '',
`com_dt` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `tblfasilitas`
--
CREATE TABLE `tblfasilitas` (
`fsl_wrnet_id` int(8) NOT NULL,
`fsl_id` int(8) NOT NULL,
`fsl_typ` varchar(20) NOT NULL,
`fsl_name` varchar(30) NOT NULL,
`fsl_desc` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `tblmember`
--
CREATE TABLE `tblmember` (
`mbr_id` int(8) NOT NULL,
`mbr_username` varchar(64) NOT NULL,
`mbr_password` varchar(32) NOT NULL,
`mbr_name` varchar(200) NOT NULL,
`mbr_email` varchar(64) NOT NULL,
`mbr_tempat_lhr` varchar(100) DEFAULT '',
`mbr_tgl_lhr` datetime(6) NOT NULL,
`mbr_phone` varchar(30) DEFAULT '',
`mbr_mode` tinyint(4) DEFAULT '1',
`mbr_img` longblob,
`mbr_img_nm` varchar(50) DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tblmember`
--
INSERT INTO `tblmember` (`mbr_id`, `mbr_username`, `mbr_password`, `mbr_name`, `mbr_email`, `mbr_tempat_lhr`, `mbr_tgl_lhr`, `mbr_phone`, `mbr_mode`, `mbr_img`, `mbr_img_nm`) VALUES
(1, 'admin', 'admin', 'Administrator', '[email protected]', '', '2015-12-16 00:00:00.000000', '', 1, NULL, 'IMG_20140227_135334.jpg'),
(2, 'bukhari', 'tes', 'Bukhari Muslim', '[email protected]', '', '1970-01-01 00:00:00.000000', '', 1, NULL, '6_1icecreamfloat.jpg'),
(3, 'New', 'new', 'New', '[email protected]', '', '0000-00-00 00:00:00.000000', '', 1, NULL, ''),
(4, 'tes', 'tes', 'Testing', '[email protected]', '', '0000-00-00 00:00:00.000000', '', 1, NULL, ''),
(6, 'makan', 'makan', 'enak', '[email protected]', 'Test', '2015-12-11 00:00:00.000000', '', 1, NULL, ''),
(7, 'jay', 'jay', 'Jay Clarens', '[email protected]', 'Medan', '1995-12-13 00:00:00.000000', '', 1, NULL, '');
-- --------------------------------------------------------
--
-- Table structure for table `tblrating`
--
CREATE TABLE `tblrating` (
`mbr_id` int(8) NOT NULL,
`wrnet_id` int(8) NOT NULL,
`rate_val` tinyint(3) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `tblwarnet`
--
CREATE TABLE `tblwarnet` (
`wrnet_id` int(8) NOT NULL,
`wrnet_owner` int(8) NOT NULL,
`wrnet_name` varchar(64) NOT NULL,
`wrnet_alamat` varchar(200) DEFAULT '',
`wrnet_kota` varchar(50) DEFAULT '',
`wrnet_phone` varchar(30) DEFAULT NULL,
`wrnet_img` longblob,
`wrnet_img_nm` varchar(50) DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tblwarnet`
--
INSERT INTO `tblwarnet` (`wrnet_id`, `wrnet_owner`, `wrnet_name`, `wrnet_alamat`, `wrnet_kota`, `wrnet_phone`, `wrnet_img`, `wrnet_img_nm`) VALUES
(1, 1, 'Flux', 'Jln. S. Parman 104, Medan', '', '1', NULL, ''),
(2, 1, 'Level1CyberWorld', 'Gedung Parkir Kampus BINUS Anggrek LT.1', '', '1', NULL, ''),
(3, 1, 'Cyber Net', 'Jl. Darat No. 28', '', '1', NULL, '');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `tblcomment`
--
ALTER TABLE `tblcomment`
ADD PRIMARY KEY (`com_warnet_id`);
--
-- Indexes for table `tblmember`
--
ALTER TABLE `tblmember`
ADD PRIMARY KEY (`mbr_id`),
ADD UNIQUE KEY `mbr_username` (`mbr_username`);
--
-- Indexes for table `tblwarnet`
--
ALTER TABLE `tblwarnet`
ADD PRIMARY KEY (`wrnet_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `tblcomment`
--
ALTER TABLE `tblcomment`
MODIFY `com_warnet_id` int(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `tblmember`
--
ALTER TABLE `tblmember`
MODIFY `mbr_id` int(8) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `tblwarnet`
--
ALTER TABLE `tblwarnet`
MODIFY `wrnet_id` int(8) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
/*!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 */;