-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathusers.sql
More file actions
26 lines (21 loc) · 802 Bytes
/
users.sql
File metadata and controls
26 lines (21 loc) · 802 Bytes
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
/*
Navicat Premium Data Transfer
Target Server Type : MySQL
Target Server Version : 50650
File Encoding : 65001
Date: 18/03/2023 03:30:17
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for users
-- ----------------------------
DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
`user_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`openid` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '小程序openid',
`create_at` datetime NOT NULL COMMENT '注册时间',
PRIMARY KEY (`user_id`) USING BTREE,
UNIQUE INDEX `openid`(`openid`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1048 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Compact;
SET FOREIGN_KEY_CHECKS = 1;