forked from sandyh90/Codeigniter3-absen-digital
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path127_0_0_1 absendigital sql.sql
173 lines (144 loc) · 5.12 KB
/
127_0_0_1 absendigital sql.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
165
166
167
168
169
170
171
172
173
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 21 Okt 2021 pada 10.50
-- Versi server: 10.5.11-MariaDB
-- Versi PHP: 7.4.21
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: `absensi_online`
--
CREATE DATABASE IF NOT EXISTS `absensi_online` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `absensi_online`;
-- --------------------------------------------------------
--
-- Struktur dari tabel `db_absensi`
--
CREATE TABLE `db_absensi` (
`id_absen` bigint(20) NOT NULL,
`kode_absen` varchar(100) NOT NULL,
`nama_pegawai` varchar(125) NOT NULL,
`kode_pegawai` varchar(125) NOT NULL,
`tgl_absen` varchar(125) NOT NULL,
`jam_masuk` varchar(13) NOT NULL,
`jam_pulang` varchar(13) NOT NULL,
`status_pegawai` int(1) NOT NULL,
`keterangan_absen` varchar(100) NOT NULL,
`maps_absen` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Struktur dari tabel `db_rememberme`
--
CREATE TABLE `db_rememberme` (
`id_session` int(11) NOT NULL,
`kode_pegawai` varchar(125) NOT NULL,
`username` varchar(255) NOT NULL,
`user_agent` varchar(35) NOT NULL,
`agent_string` varchar(255) NOT NULL,
`platform` varchar(128) NOT NULL,
`user_ip` varchar(35) NOT NULL,
`cookie_hash` varchar(255) NOT NULL,
`expired` int(128) NOT NULL,
`date_created` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Struktur dari tabel `db_setting`
--
CREATE TABLE `db_setting` (
`status_setting` int(1) NOT NULL DEFAULT 0,
`nama_instansi` varchar(255) NOT NULL,
`jumbotron_lead_set` varchar(125) NOT NULL,
`nama_app_absensi` varchar(20) NOT NULL DEFAULT 'Absensi Online',
`logo_instansi` varchar(255) NOT NULL,
`timezone` varchar(35) NOT NULL,
`absen_mulai` varchar(13) NOT NULL,
`absen_mulai_to` varchar(13) NOT NULL,
`absen_pulang` varchar(13) NOT NULL,
`maps_use` int(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `db_setting`
--
INSERT INTO `db_setting` (`status_setting`, `nama_instansi`, `jumbotron_lead_set`, `nama_app_absensi`, `logo_instansi`, `timezone`, `absen_mulai`, `absen_mulai_to`, `absen_pulang`, `maps_use`) VALUES
(1, '[Ubah Nama Instansi]', '[Ubah Text Berjalan Halaman Depan Disini Pada Setting Aplikasi]', 'Absensi Online', 'default-logo.png', 'Asia/Jakarta', '06:00:00', '11:00:00', '16:00:00', 1);
-- --------------------------------------------------------
--
-- Struktur dari tabel `user`
--
CREATE TABLE `user` (
`id_pegawai` int(11) NOT NULL,
`nama_lengkap` varchar(125) NOT NULL,
`username` varchar(125) NOT NULL,
`password` varchar(256) NOT NULL,
`role_id` int(1) NOT NULL,
`umur` int(11) NOT NULL,
`image` varchar(125) NOT NULL,
`qr_code_image` varchar(125) NOT NULL,
`kode_pegawai` varchar(125) NOT NULL,
`instansi` varchar(125) NOT NULL,
`jabatan` varchar(125) NOT NULL,
`npwp` varchar(255) NOT NULL,
`tgl_lahir` varchar(25) NOT NULL,
`tempat_lahir` varchar(25) NOT NULL,
`jenis_kelamin` varchar(25) NOT NULL,
`bagian_shift` int(11) NOT NULL,
`is_active` int(1) NOT NULL,
`qr_code_use` int(2) NOT NULL,
`last_login` int(11) NOT NULL,
`date_created` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `user`
--
INSERT INTO `user` (`id_pegawai`, `nama_lengkap`, `username`, `password`, `role_id`, `umur`, `image`, `qr_code_image`, `kode_pegawai`, `instansi`, `jabatan`, `npwp`, `tgl_lahir`, `tempat_lahir`, `jenis_kelamin`, `bagian_shift`, `is_active`, `qr_code_use`, `last_login`, `date_created`) VALUES
(12, 'Admin', 'admin', '$2y$10$sZVyS3G6aVjMRoLq0JhuZuiAat.QjOOtbcyohRih3IxtQaEvJG4Eq', 1, 18, 'default.png', 'no-qrcode.png', '293571010111', '[Ubah Nama Instansi]', 'Test', 'Tidak Ada', '2020-09-08', 'Test', 'Laki - Laki', 1, 1, 0, 1634813295, 1584698797);
--
-- Indexes for dumped tables
--
--
-- Indeks untuk tabel `db_absensi`
--
ALTER TABLE `db_absensi`
ADD PRIMARY KEY (`id_absen`);
--
-- Indeks untuk tabel `db_rememberme`
--
ALTER TABLE `db_rememberme`
ADD PRIMARY KEY (`id_session`);
--
-- Indeks untuk tabel `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`id_pegawai`);
--
-- AUTO_INCREMENT untuk tabel yang dibuang
--
--
-- AUTO_INCREMENT untuk tabel `db_absensi`
--
ALTER TABLE `db_absensi`
MODIFY `id_absen` bigint(20) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT untuk tabel `db_rememberme`
--
ALTER TABLE `db_rememberme`
MODIFY `id_session` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT untuk tabel `user`
--
ALTER TABLE `user`
MODIFY `id_pegawai` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=42;
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 */;