This repository has been archived by the owner on Aug 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
277 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
-- phpMyAdmin SQL Dump | ||
-- version 5.2.1 | ||
-- https://www.phpmyadmin.net/ | ||
-- | ||
-- Host: localhost:3306 | ||
-- Generation Time: Jul 28, 2023 at 03:30 AM | ||
-- Server version: 5.7.24 | ||
-- PHP Version: 8.2.4 | ||
|
||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; | ||
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_tasek` | ||
-- | ||
|
||
-- -------------------------------------------------------- | ||
|
||
-- | ||
-- Table structure for table `tbl_auth` | ||
-- | ||
|
||
CREATE TABLE `tbl_auth` ( | ||
`id_auth` int(11) NOT NULL, | ||
`nama_lengkap` varchar(50) NOT NULL, | ||
`email` varchar(80) NOT NULL, | ||
`password` varchar(255) NOT NULL, | ||
`id_role` int(11) NOT NULL | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
|
||
-- | ||
-- Dumping data for table `tbl_auth` | ||
-- | ||
|
||
INSERT INTO `tbl_auth` (`id_auth`, `nama_lengkap`, `email`, `password`, `id_role`) VALUES | ||
(1, 'admin', '[email protected]', '$2y$10$MjX5BnJE2lyy8EHYdcABYeiu/Vgj0VVs23EALoB52MgRdxPb7O3hi', 1), | ||
(11, 'galih anggoro prasetya', '[email protected]', '$2y$10$t.EIH4xsoWQrr3ZzUgNP1.UqIZPFlkBb73pM2TgWTGHE0dtQqjqVW', 2); | ||
|
||
-- | ||
-- Indexes for dumped tables | ||
-- | ||
|
||
-- | ||
-- Indexes for table `tbl_auth` | ||
-- | ||
ALTER TABLE `tbl_auth` | ||
ADD PRIMARY KEY (`id_auth`), | ||
ADD KEY `id_role` (`id_role`); | ||
|
||
-- | ||
-- AUTO_INCREMENT for dumped tables | ||
-- | ||
|
||
-- | ||
-- AUTO_INCREMENT for table `tbl_auth` | ||
-- | ||
ALTER TABLE `tbl_auth` | ||
MODIFY `id_auth` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12; | ||
|
||
-- | ||
-- Constraints for dumped tables | ||
-- | ||
|
||
-- | ||
-- Constraints for table `tbl_auth` | ||
-- | ||
ALTER TABLE `tbl_auth` | ||
ADD CONSTRAINT `tbl_auth_ibfk_1` FOREIGN KEY (`id_role`) REFERENCES `tbl_roles` (`id_role`); | ||
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 */; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
-- phpMyAdmin SQL Dump | ||
-- version 5.2.1 | ||
-- https://www.phpmyadmin.net/ | ||
-- | ||
-- Host: localhost:3306 | ||
-- Generation Time: Jul 28, 2023 at 03:32 AM | ||
-- Server version: 5.7.24 | ||
-- PHP Version: 8.2.4 | ||
|
||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; | ||
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_tasek` | ||
-- | ||
|
||
-- -------------------------------------------------------- | ||
|
||
-- | ||
-- Table structure for table `tbl_profiles` | ||
-- | ||
|
||
CREATE TABLE `tbl_profiles` ( | ||
`id_profile` int(11) NOT NULL, | ||
`email` varchar(80) NOT NULL, | ||
`foto_profile` varchar(255) NOT NULL | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
|
||
-- | ||
-- Dumping data for table `tbl_profiles` | ||
-- | ||
|
||
INSERT INTO `tbl_profiles` (`id_profile`, `email`, `foto_profile`) VALUES | ||
(1, '[email protected]', 'img/admin.png'), | ||
(11, '[email protected]', '../img/64bf52f3859d3.jpg'); | ||
|
||
-- | ||
-- Indexes for dumped tables | ||
-- | ||
|
||
-- | ||
-- Indexes for table `tbl_profiles` | ||
-- | ||
ALTER TABLE `tbl_profiles` | ||
ADD PRIMARY KEY (`id_profile`); | ||
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 */; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
-- phpMyAdmin SQL Dump | ||
-- version 5.2.1 | ||
-- https://www.phpmyadmin.net/ | ||
-- | ||
-- Host: localhost:3306 | ||
-- Generation Time: Jul 28, 2023 at 03:32 AM | ||
-- Server version: 5.7.24 | ||
-- PHP Version: 8.2.4 | ||
|
||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; | ||
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_tasek` | ||
-- | ||
|
||
-- -------------------------------------------------------- | ||
|
||
-- | ||
-- Table structure for table `tbl_roles` | ||
-- | ||
|
||
CREATE TABLE `tbl_roles` ( | ||
`id_role` int(11) NOT NULL, | ||
`role` varchar(10) NOT NULL | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
|
||
-- | ||
-- Dumping data for table `tbl_roles` | ||
-- | ||
|
||
INSERT INTO `tbl_roles` (`id_role`, `role`) VALUES | ||
(1, 'admin'), | ||
(2, 'user'); | ||
|
||
-- | ||
-- Indexes for dumped tables | ||
-- | ||
|
||
-- | ||
-- Indexes for table `tbl_roles` | ||
-- | ||
ALTER TABLE `tbl_roles` | ||
ADD PRIMARY KEY (`id_role`); | ||
|
||
-- | ||
-- AUTO_INCREMENT for dumped tables | ||
-- | ||
|
||
-- | ||
-- AUTO_INCREMENT for table `tbl_roles` | ||
-- | ||
ALTER TABLE `tbl_roles` | ||
MODIFY `id_role` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; | ||
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 */; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
-- phpMyAdmin SQL Dump | ||
-- version 5.2.1 | ||
-- https://www.phpmyadmin.net/ | ||
-- | ||
-- Host: localhost:3306 | ||
-- Generation Time: Jul 28, 2023 at 03:33 AM | ||
-- Server version: 5.7.24 | ||
-- PHP Version: 8.2.4 | ||
|
||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; | ||
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_tasek` | ||
-- | ||
|
||
-- -------------------------------------------------------- | ||
|
||
-- | ||
-- Table structure for table `tbl_tabungan_pelajar` | ||
-- | ||
|
||
CREATE TABLE `tbl_tabungan_pelajar` ( | ||
`id_tabungan` int(11) NOT NULL, | ||
`email` varchar(80) NOT NULL, | ||
`nama_lengkap` varchar(80) NOT NULL, | ||
`jenis_kelamin` varchar(20) NOT NULL, | ||
`kelas` varchar(30) NOT NULL, | ||
`angkatan` year(4) NOT NULL, | ||
`saldo` varchar(255) NOT NULL, | ||
`status` varchar(20) NOT NULL, | ||
`created_at` date NOT NULL, | ||
`updated_at` date NOT NULL | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
|
||
-- | ||
-- Dumping data for table `tbl_tabungan_pelajar` | ||
-- | ||
|
||
INSERT INTO `tbl_tabungan_pelajar` (`id_tabungan`, `email`, `nama_lengkap`, `jenis_kelamin`, `kelas`, `angkatan`, `saldo`, `status`, `created_at`, `updated_at`) VALUES | ||
(42, '[email protected]', 'galih anggoro prasetya', 'laki laki', 'XII TKJ (3)', '2019', '100.000', 'tidak aktif', '2023-07-26', '2023-07-26'), | ||
(43, '[email protected]', 'testing', 'perempuan', 'XII TKJ (4)', '2017', '550.000', 'aktif', '2023-07-26', '2023-07-26'); | ||
|
||
-- | ||
-- Indexes for dumped tables | ||
-- | ||
|
||
-- | ||
-- Indexes for table `tbl_tabungan_pelajar` | ||
-- | ||
ALTER TABLE `tbl_tabungan_pelajar` | ||
ADD PRIMARY KEY (`id_tabungan`); | ||
|
||
-- | ||
-- AUTO_INCREMENT for dumped tables | ||
-- | ||
|
||
-- | ||
-- AUTO_INCREMENT for table `tbl_tabungan_pelajar` | ||
-- | ||
ALTER TABLE `tbl_tabungan_pelajar` | ||
MODIFY `id_tabungan` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=44; | ||
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 */; |