-
Notifications
You must be signed in to change notification settings - Fork 0
/
dev_dompet_dhuafa.sql
executable file
·272 lines (251 loc) · 19.7 KB
/
dev_dompet_dhuafa.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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
/*
Navicat Premium Data Transfer
Source Server : localhost
Source Server Type : MySQL
Source Server Version : 50724
Source Host : localhost:3306
Source Schema : dev_dompet_dhuafa
Target Server Type : MySQL
Target Server Version : 50724
File Encoding : 65001
Date: 23/04/2020 06:26:58
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for data_donasi
-- ----------------------------
DROP TABLE IF EXISTS `data_donasi`;
CREATE TABLE `data_donasi` (
`id_data_donasi` int(11) NOT NULL AUTO_INCREMENT,
`id_donasi` varchar(16) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL COMMENT 'nomor referensi/kode konfirmasi',
`id_donatur` int(11) NULL DEFAULT NULL,
`id_jenis_donasi` int(11) NULL DEFAULT NULL,
`id_subjenis_donasi` int(11) NULL DEFAULT NULL,
`id_target_donasi` int(11) NULL DEFAULT NULL,
`id_metode_pembayaran` int(11) NULL DEFAULT NULL,
`nominal` int(50) NULL DEFAULT NULL,
`kode_unik` int(10) NULL DEFAULT NULL,
`total_pembayaran` int(50) NULL DEFAULT NULL COMMENT 'nominal+kode_unik',
`status` enum('0','1','2') CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT '0' COMMENT '0=menunggu_pembayaran; 1=lunas; 2=expired',
`iat` datetime(0) NULL DEFAULT NULL,
`uat` timestamp(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0),
PRIMARY KEY (`id_data_donasi`) USING BTREE,
UNIQUE INDEX `id_donasi`(`id_donasi`) USING BTREE,
INDEX `id_donatur`(`id_donatur`) USING BTREE,
INDEX `id_target_donasi`(`id_target_donasi`) USING BTREE,
INDEX `id_metode_pembayaran`(`id_metode_pembayaran`) USING BTREE,
INDEX `id_jenis_donasi`(`id_jenis_donasi`) USING BTREE,
INDEX `id_subjenis_donasi`(`id_subjenis_donasi`) USING BTREE,
CONSTRAINT `data_donasi_ibfk_1` FOREIGN KEY (`id_donatur`) REFERENCES `data_donatur` (`id_donatur`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `data_donasi_ibfk_2` FOREIGN KEY (`id_target_donasi`) REFERENCES `master_target_donasi` (`id_target_donasi`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `data_donasi_ibfk_3` FOREIGN KEY (`id_metode_pembayaran`) REFERENCES `master_metode_pembayaran` (`id_metode_pembayaran`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `data_donasi_ibfk_4` FOREIGN KEY (`id_jenis_donasi`) REFERENCES `master_jenis_donasi` (`id_jenis_donasi`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `data_donasi_ibfk_5` FOREIGN KEY (`id_subjenis_donasi`) REFERENCES `master_subjenis_donasi` (`id_subjenis_donasi`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 13 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of data_donasi
-- ----------------------------
INSERT INTO `data_donasi` VALUES (7, '3159603183605277', 20926841, 91077432, 56880199, NULL, 76957036, 200000, 297, 200297, '0', '2020-04-21 09:56:53', '2020-04-21 23:14:21');
INSERT INTO `data_donasi` VALUES (9, '9108076948953142', 20926841, 72584460, NULL, NULL, 88246397, 250000, 662, 250662, '0', '2020-04-21 10:35:14', '2020-04-21 10:35:14');
INSERT INTO `data_donasi` VALUES (10, '5634351952180497', 82693815, 72584460, NULL, NULL, 88246397, 100000, 748, 100748, '0', '2020-04-21 10:38:27', '2020-04-21 10:38:27');
INSERT INTO `data_donasi` VALUES (11, '3600635517889471', 99513672, 49014882, 99102513, NULL, 49288787, 20000, 473, 20473, '0', '2020-04-21 10:44:31', '2020-04-21 10:44:31');
INSERT INTO `data_donasi` VALUES (12, '7513040862899653', 82504789, 72584460, 67350812, 22152874, 77823354, 400000, 812, 400812, '1', '2020-04-22 09:45:43', '2020-04-22 17:05:35');
-- ----------------------------
-- Table structure for data_donatur
-- ----------------------------
DROP TABLE IF EXISTS `data_donatur`;
CREATE TABLE `data_donatur` (
`id_data_donatur` int(11) NOT NULL AUTO_INCREMENT,
`id_donatur` int(11) NULL DEFAULT NULL,
`nama_donatur` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`sapaan` enum('Bapak','Ibu','Saudara','Saudari') CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`email` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`telepon` varchar(16) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`alamat` text CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL,
`tipe_donatur` enum('personal','institusi') CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`institusi` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`npwp` varchar(50) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`negara` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`provinsi` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`kota` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`kodepos` varchar(16) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`iat` datetime(0) NULL DEFAULT NULL,
`uat` timestamp(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0),
PRIMARY KEY (`id_data_donatur`) USING BTREE,
UNIQUE INDEX `id_donatur`(`id_donatur`) USING BTREE,
UNIQUE INDEX `telepon`(`telepon`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 13 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of data_donatur
-- ----------------------------
INSERT INTO `data_donatur` VALUES (7, 73821590, 'Ari', 'Bapak', '[email protected]', '0801213123', '', 'personal', '', '', 'Indonesia', '', '', '', '2020-04-21 09:15:23', '2020-04-21 09:15:23');
INSERT INTO `data_donatur` VALUES (9, 20926841, 'Akhmad', 'Bapak', '[email protected]', '121212121212', '', 'personal', '', '', 'Indonesia', '', '', '', '2020-04-21 09:56:53', '2020-04-21 09:56:53');
INSERT INTO `data_donatur` VALUES (10, 82693815, 'Adi', 'Saudara', '[email protected]', '082723123123', '', 'personal', '', '', 'Indonesia', '', '', '', '2020-04-21 10:38:27', '2020-04-21 10:38:27');
INSERT INTO `data_donatur` VALUES (11, 99513672, 'Rahmad', 'Bapak', '[email protected]', '0231312313', '', 'personal', '', '', 'Indonesia', '', '', '', '2020-04-21 10:44:31', '2020-04-21 10:44:31');
INSERT INTO `data_donatur` VALUES (12, 82504789, 'Weeny', 'Ibu', '[email protected]', '0321237312', '', 'personal', '', '', 'Indonesia', '', NULL, '', '2020-04-22 09:45:43', '2020-04-22 09:45:43');
-- ----------------------------
-- Table structure for data_konfirmasi_donasi
-- ----------------------------
DROP TABLE IF EXISTS `data_konfirmasi_donasi`;
CREATE TABLE `data_konfirmasi_donasi` (
`id_data_konfirmasi_donasi` int(11) NOT NULL AUTO_INCREMENT,
`id_konfirmasi_donasi` int(11) NULL DEFAULT NULL,
`id_donasi` varchar(16) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`bank_nama` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`bank_cabang` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`bank_norek` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`bank_atas_nama` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`tanggal_bayar` datetime(0) NULL DEFAULT NULL,
`bukti_pembayaran` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`catatan` text CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL,
`iat` datetime(0) NULL DEFAULT NULL,
`uat` timestamp(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0),
PRIMARY KEY (`id_data_konfirmasi_donasi`) USING BTREE,
UNIQUE INDEX `id_konfirmasi_donasi`(`id_konfirmasi_donasi`) USING BTREE,
UNIQUE INDEX `id_donasi`(`id_donasi`) USING BTREE,
CONSTRAINT `data_konfirmasi_donasi_ibfk_1` FOREIGN KEY (`id_donasi`) REFERENCES `data_donasi` (`id_donasi`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 40 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of data_konfirmasi_donasi
-- ----------------------------
INSERT INTO `data_konfirmasi_donasi` VALUES (39, 52539418, '7513040862899653', 'BNI', '', '', '', '2020-04-23 00:00:00', '1587593135_9387a0b86a20d380c378.png', 'finally', '2020-04-22 17:05:35', '2020-04-22 17:05:35');
-- ----------------------------
-- Table structure for master_jenis_donasi
-- ----------------------------
DROP TABLE IF EXISTS `master_jenis_donasi`;
CREATE TABLE `master_jenis_donasi` (
`id_master_jenis_donasi` int(11) NOT NULL AUTO_INCREMENT,
`id_jenis_donasi` int(11) NULL DEFAULT NULL,
`jenis_donasi` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`iat` datetime(0) NULL DEFAULT NULL,
`uat` timestamp(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0),
PRIMARY KEY (`id_master_jenis_donasi`) USING BTREE,
UNIQUE INDEX `id_jenis_donasi`(`id_jenis_donasi`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of master_jenis_donasi
-- ----------------------------
INSERT INTO `master_jenis_donasi` VALUES (1, 91077432, 'Zakat', '2020-04-19 03:51:11', '2020-04-19 03:51:41');
INSERT INTO `master_jenis_donasi` VALUES (2, 72584460, 'Infaq/Sedekah', '2020-04-19 03:51:14', '2020-04-19 03:51:41');
INSERT INTO `master_jenis_donasi` VALUES (3, 46238496, 'Waqaf', '2020-04-19 03:51:16', '2020-04-19 03:51:41');
INSERT INTO `master_jenis_donasi` VALUES (4, 49014882, 'Kemanusiaan', '2020-04-19 03:51:19', '2020-04-19 03:51:41');
-- ----------------------------
-- Table structure for master_metode_pembayaran
-- ----------------------------
DROP TABLE IF EXISTS `master_metode_pembayaran`;
CREATE TABLE `master_metode_pembayaran` (
`id_master_metode_pembayaran` int(11) NOT NULL AUTO_INCREMENT,
`id_metode_pembayaran` int(11) NULL DEFAULT NULL,
`metode_pembayaran` enum('BNI Syariah','BCA','Mandiri','Muamalat') CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`norek` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`atas_nama` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`type` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`image` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`iat` datetime(0) NULL DEFAULT NULL,
`uat` timestamp(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0),
PRIMARY KEY (`id_master_metode_pembayaran`) USING BTREE,
UNIQUE INDEX `id_metode_pembayaran`(`id_metode_pembayaran`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of master_metode_pembayaran
-- ----------------------------
INSERT INTO `master_metode_pembayaran` VALUES (2, 76957036, 'Mandiri', '152.0011.7600.51', 'Yayasan Dompet Dhuafa Republika Rekening Zakat ', 'donasi', 'logo-mandiri.png', '2020-04-19 04:11:49', '2020-04-22 00:01:37');
INSERT INTO `master_metode_pembayaran` VALUES (3, 42256129, 'BCA', '789.038.7777', 'Yayasan Dompet Dhuafa Republika Rekening Zakat ', 'donasi', 'logo-bca.png', '2020-04-19 04:11:49', '2020-04-22 00:01:57');
INSERT INTO `master_metode_pembayaran` VALUES (4, 45259423, 'Muamalat', '801.004.8527 ', 'Yayasan Dompet Dhuafa Republika Rekening Zakat ', 'donasi', 'logo-muamalat.png', '2020-04-19 04:11:49', '2020-04-22 00:02:11');
INSERT INTO `master_metode_pembayaran` VALUES (5, 88246397, 'BNI Syariah', '015.938.7145', 'Yayasan Dompet Dhuafa Republika Rekening Zakat', 'sedekah', 'logo-bni.png', '2020-04-19 09:46:12', '2020-04-22 06:23:53');
INSERT INTO `master_metode_pembayaran` VALUES (6, 49288787, 'Muamalat', '801.004.8528', 'Yayasan Dompet Dhuafa Republika Rekening Zakat', 'sedekah', 'logo-muamalat.png', '2020-04-19 09:46:12', '2020-04-22 00:02:12');
INSERT INTO `master_metode_pembayaran` VALUES (7, 77823354, 'Mandiri', '152.0022.9992.92 ', 'Yayasan Dompet Dhuafa Republika Rekening Zakat', 'sedekah', 'logo-mandiri.png', '2020-04-19 09:46:12', '2020-04-22 00:01:39');
-- ----------------------------
-- Table structure for master_subjenis_donasi
-- ----------------------------
DROP TABLE IF EXISTS `master_subjenis_donasi`;
CREATE TABLE `master_subjenis_donasi` (
`id_master_subjenis_donasi` int(11) NOT NULL AUTO_INCREMENT,
`id_subjenis_donasi` int(11) NULL DEFAULT NULL,
`id_jenis_donasi` int(11) NULL DEFAULT NULL,
`subjenis_donasi` varchar(200) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`iat` datetime(0) NULL DEFAULT NULL,
`uat` timestamp(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0),
PRIMARY KEY (`id_master_subjenis_donasi`) USING BTREE,
UNIQUE INDEX `id_subjenis_donasi`(`id_subjenis_donasi`) USING BTREE,
INDEX `id_jenis_donasi`(`id_jenis_donasi`) USING BTREE,
CONSTRAINT `master_subjenis_donasi_ibfk_1` FOREIGN KEY (`id_jenis_donasi`) REFERENCES `master_jenis_donasi` (`id_jenis_donasi`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 14 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of master_subjenis_donasi
-- ----------------------------
INSERT INTO `master_subjenis_donasi` VALUES (1, 56880199, 91077432, 'Zakat Fitrah', '2020-04-19 03:52:53', '2020-04-19 03:55:31');
INSERT INTO `master_subjenis_donasi` VALUES (2, 16858220, 91077432, 'Zakat Maal', '2020-04-19 03:52:56', '2020-04-19 03:55:31');
INSERT INTO `master_subjenis_donasi` VALUES (3, 40650232, 91077432, 'Fidyah', '2020-04-19 03:52:59', '2020-04-19 03:55:31');
INSERT INTO `master_subjenis_donasi` VALUES (4, 78760362, 72584460, 'Pendidikan', '2020-04-19 03:54:52', '2020-04-19 03:55:31');
INSERT INTO `master_subjenis_donasi` VALUES (5, 17817724, 72584460, 'Kesehatan', '2020-04-19 03:54:52', '2020-04-19 03:55:31');
INSERT INTO `master_subjenis_donasi` VALUES (6, 67350812, 72584460, 'Sosial', '2020-04-19 03:54:52', '2020-04-19 03:55:31');
INSERT INTO `master_subjenis_donasi` VALUES (7, 64183258, 72584460, 'Dakwah', '2020-04-19 03:54:52', '2020-04-19 03:55:31');
INSERT INTO `master_subjenis_donasi` VALUES (8, 67323192, 72584460, 'Ekonomi', '2020-04-19 03:54:52', '2020-04-19 03:55:31');
INSERT INTO `master_subjenis_donasi` VALUES (9, 96699437, 46238496, 'Waqaf Qur\'an', '2020-04-19 03:56:38', '2020-04-19 03:57:01');
INSERT INTO `master_subjenis_donasi` VALUES (10, 92168993, 46238496, 'Waqaf Masjid', '2020-04-19 03:56:38', '2020-04-19 03:57:01');
INSERT INTO `master_subjenis_donasi` VALUES (11, 27227237, 46238496, 'Waqaf Pesantren', '2020-04-19 03:56:38', '2020-04-19 03:57:01');
INSERT INTO `master_subjenis_donasi` VALUES (12, 61048920, 49014882, 'Bencana Alam', '2020-04-19 03:57:49', '2020-04-19 03:58:26');
INSERT INTO `master_subjenis_donasi` VALUES (13, 99102513, 49014882, 'Bantuan untuk Palestina', '2020-04-19 03:57:51', '2020-04-19 03:58:26');
-- ----------------------------
-- Table structure for master_target_donasi
-- ----------------------------
DROP TABLE IF EXISTS `master_target_donasi`;
CREATE TABLE `master_target_donasi` (
`id_master_target_donasi` int(11) NOT NULL AUTO_INCREMENT,
`id_target_donasi` int(11) NULL DEFAULT NULL,
`id_subjenis_donasi` int(11) NULL DEFAULT NULL,
`target_donasi` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`iat` datetime(0) NULL DEFAULT NULL,
`uat` timestamp(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0),
PRIMARY KEY (`id_master_target_donasi`) USING BTREE,
UNIQUE INDEX `id_target_donasi`(`id_target_donasi`) USING BTREE,
INDEX `id_subjenis_donasi`(`id_subjenis_donasi`) USING BTREE,
CONSTRAINT `master_target_donasi_ibfk_1` FOREIGN KEY (`id_subjenis_donasi`) REFERENCES `master_subjenis_donasi` (`id_subjenis_donasi`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 18 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of master_target_donasi
-- ----------------------------
INSERT INTO `master_target_donasi` VALUES (1, 49647637, 16858220, 'Emas', '2020-04-19 04:00:30', '2020-04-19 04:02:38');
INSERT INTO `master_target_donasi` VALUES (2, 53330514, 16858220, 'Penghasilan', '2020-04-19 04:00:30', '2020-04-19 04:02:38');
INSERT INTO `master_target_donasi` VALUES (3, 23207905, 16858220, 'Simpanan', '2020-04-19 04:00:30', '2020-04-19 04:02:38');
INSERT INTO `master_target_donasi` VALUES (4, 83337664, 16858220, 'Perdagangan', '2020-04-19 04:00:30', '2020-04-19 04:02:38');
INSERT INTO `master_target_donasi` VALUES (5, 42122642, 78760362, 'Sekolah Literasi Indonesia', '2020-04-19 04:03:21', '2020-04-19 04:03:41');
INSERT INTO `master_target_donasi` VALUES (6, 17527834, 78760362, 'Pelatihan guru', '2020-04-19 04:03:24', '2020-04-19 04:04:29');
INSERT INTO `master_target_donasi` VALUES (7, 45686355, 17817724, 'Layanan kesehatan cuma-cuma', '2020-04-19 04:04:55', '2020-04-19 04:09:27');
INSERT INTO `master_target_donasi` VALUES (8, 84354954, 17817724, 'Kursi roda untuk dhuafa', '2020-04-19 04:04:55', '2020-04-19 04:09:27');
INSERT INTO `master_target_donasi` VALUES (9, 33267044, 17817724, 'Ambulance gratis', '2020-04-19 04:04:55', '2020-04-19 04:09:27');
INSERT INTO `master_target_donasi` VALUES (10, 28721748, 67350812, 'Kado untuk anak yatim', '2020-04-19 04:05:38', '2020-04-19 04:09:27');
INSERT INTO `master_target_donasi` VALUES (11, 22152874, 67350812, 'Sembako untuk dhuafa', '2020-04-19 04:05:40', '2020-04-19 04:09:27');
INSERT INTO `master_target_donasi` VALUES (12, 15736309, 64183258, 'Sedekah untuk guru mengaji', '2020-04-19 04:06:56', '2020-04-19 04:09:27');
INSERT INTO `master_target_donasi` VALUES (13, 66583779, 64183258, 'Sedekah dai pedalaman', '2020-04-19 04:06:56', '2020-04-19 04:09:27');
INSERT INTO `master_target_donasi` VALUES (14, 51902592, 67323192, 'Rumah produksi', '2020-04-19 04:08:07', '2020-04-19 04:09:27');
INSERT INTO `master_target_donasi` VALUES (15, 62307373, 67323192, 'Perempuan wirausaha', '2020-04-19 04:08:07', '2020-04-19 04:09:27');
INSERT INTO `master_target_donasi` VALUES (16, 80464292, 67323192, 'Modal usaha untuk dhuafa', '2020-04-19 04:08:07', '2020-04-19 04:09:27');
INSERT INTO `master_target_donasi` VALUES (17, 65015874, 67323192, 'Ternak untuk dhuafa', '2020-04-19 04:08:07', '2020-04-19 04:09:27');
-- ----------------------------
-- Table structure for users
-- ----------------------------
DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
`id_user` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
`fullname` varchar(50) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
`notelp` varchar(13) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
`email` varchar(50) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
`username` varchar(32) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
`password` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
`foto` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
`roles` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT '09:00',
`status_aktif` enum('0','1') CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT '1',
`iat` datetime(0) NOT NULL,
`uat` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0),
`active_timestamps_since` datetime(0) NULL DEFAULT NULL,
PRIMARY KEY (`id_user`) USING BTREE,
UNIQUE INDEX `username`(`username`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of users
-- ----------------------------
INSERT INTO `users` VALUES ('143221231', 'Rahma H Slamet', '081344966375', '[email protected]', 'admin', '$2y$10$Wm88uKSK.7dKcgARHThAh.BPKJrJmmG8QHsqujM5XwByw.9dkaDAi', '', 'admin', '1', '2017-08-03 11:00:00', '2018-11-09 16:02:33', NULL);
SET FOREIGN_KEY_CHECKS = 1;