From 0f36ca4ec1c317b07bb143d093b30a1dd535ec61 Mon Sep 17 00:00:00 2001 From: galihap76 Date: Fri, 28 Jul 2023 10:34:41 +0700 Subject: [PATCH] Add tables tasek --- tbl_tasek/tbl_auth.sql | 80 ++++++++++++++++++++++++++++++ tbl_tasek/tbl_profiles.sql | 57 +++++++++++++++++++++ tbl_tasek/tbl_roles.sql | 66 ++++++++++++++++++++++++ tbl_tasek/tbl_tabungan_pelajar.sql | 74 +++++++++++++++++++++++++++ 4 files changed, 277 insertions(+) create mode 100644 tbl_tasek/tbl_auth.sql create mode 100644 tbl_tasek/tbl_profiles.sql create mode 100644 tbl_tasek/tbl_roles.sql create mode 100644 tbl_tasek/tbl_tabungan_pelajar.sql diff --git a/tbl_tasek/tbl_auth.sql b/tbl_tasek/tbl_auth.sql new file mode 100644 index 0000000..c20e67a --- /dev/null +++ b/tbl_tasek/tbl_auth.sql @@ -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', 'admintasek@gmail.com', '$2y$10$MjX5BnJE2lyy8EHYdcABYeiu/Vgj0VVs23EALoB52MgRdxPb7O3hi', 1), +(11, 'galih anggoro prasetya', 'galihprasetya181@smk.belajar.id', '$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 */; diff --git a/tbl_tasek/tbl_profiles.sql b/tbl_tasek/tbl_profiles.sql new file mode 100644 index 0000000..d67e650 --- /dev/null +++ b/tbl_tasek/tbl_profiles.sql @@ -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, 'admintasek@gmail.com', 'img/admin.png'), +(11, 'galihprasetya181@smk.belajar.id', '../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 */; diff --git a/tbl_tasek/tbl_roles.sql b/tbl_tasek/tbl_roles.sql new file mode 100644 index 0000000..2c3764e --- /dev/null +++ b/tbl_tasek/tbl_roles.sql @@ -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 */; diff --git a/tbl_tasek/tbl_tabungan_pelajar.sql b/tbl_tasek/tbl_tabungan_pelajar.sql new file mode 100644 index 0000000..10e6cbe --- /dev/null +++ b/tbl_tasek/tbl_tabungan_pelajar.sql @@ -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, 'galihprasetya181@smk.belajar.id', 'galih anggoro prasetya', 'laki laki', 'XII TKJ (3)', '2019', '100.000', 'tidak aktif', '2023-07-26', '2023-07-26'), +(43, 'testing@gmail.com', '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 */;