-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdb_teachmenow.sql
115 lines (93 loc) · 2.77 KB
/
db_teachmenow.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
-- phpMyAdmin SQL Dump
-- version 4.9.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Sep 27, 2020 at 02:58 PM
-- Server version: 10.4.8-MariaDB
-- PHP Version: 7.3.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
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: `db_teachmenow`
--
-- --------------------------------------------------------
--
-- Table structure for table `section`
--
CREATE TABLE `section` (
`id_section` int(11) NOT NULL,
`title` varchar(256) NOT NULL,
`banner` varchar(256) NOT NULL,
`content` mediumtext NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `section`
--
INSERT INTO `section` (`id_section`, `title`, `banner`, `content`) VALUES
(1, 'Home', 'home.png', '1'),
(2, 'About Us', 'about-us.png', ''),
(3, 'Features', 'features.png', ''),
(4, 'Screenshot', 'screenshot.png', ''),
(5, 'Komentar', 'screenshot.png', '');
-- --------------------------------------------------------
--
-- Table structure for table `tb_content`
--
CREATE TABLE `tb_content` (
`id_content` int(11) NOT NULL,
`content_1` mediumtext DEFAULT NULL,
`content_2` mediumtext DEFAULT NULL,
`content_3` mediumtext DEFAULT NULL,
`content_4` mediumtext DEFAULT NULL,
`content_5` mediumtext DEFAULT NULL,
`content_6` mediumtext DEFAULT NULL,
`content_7` mediumtext DEFAULT NULL,
`content_8` mediumtext DEFAULT NULL,
`content_9` mediumtext DEFAULT NULL,
`content_10` mediumtext DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE TABLE `user` (
`id` int(11) NOT NULL,
`nama` varchar(120) NOT NULL,
`username` varchar(120) NOT NULL,
`password` varchar(256) NOT NULL,
`role` varchar(128) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `user`
--
INSERT INTO `user` (`id`, `nama`, `username`, `password`, `role`) VALUES
(1, 'Admin', 'admin', '$2y$10$9hg/Vt3wEXntQrA.ypucoOqDl9nw1dmhuE/5gC9QRVmzBjzZxfl5y', 'Admin');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `section`
--
ALTER TABLE `section`
ADD PRIMARY KEY (`id_section`);
--
-- Indexes for table `tb_content`
--
ALTER TABLE `tb_content`
ADD PRIMARY KEY (`id_content`);
--
-- Indexes for table `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`id`);
COMMIT;
/*!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 */;