-
Notifications
You must be signed in to change notification settings - Fork 0
/
users.sql
44 lines (37 loc) · 1.76 KB
/
users.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
/*
Navicat Premium Data Transfer
Source Server : Local Database
Source Server Type : MySQL
Source Server Version : 100130
Source Host : localhost:3306
Source Schema : template
Target Server Type : MySQL
Target Server Version : 100130
File Encoding : 65001
Date: 16/03/2019 18:09:56
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- 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,
`iat` datetime(0) NOT NULL,
`uat` timestamp(0) NOT NULL ON UPDATE CURRENT_TIMESTAMP(0),
PRIMARY KEY (`id_user`) USING BTREE,
UNIQUE INDEX `username`(`username`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Compact;
-- ----------------------------
-- Records of users
-- ----------------------------
INSERT INTO `users` VALUES ('143221231', 'Rahma H Slamet', '081344966375', '[email protected]', 'admin', '$2y$10$Wm88uKSK.7dKcgARHThAh.BPKJrJmmG8QHsqujM5XwByw.9dkaDAi', '', 'admin', '2017-08-03 11:00:00', '2018-11-09 16:02:33');
SET FOREIGN_KEY_CHECKS = 1;