-
Notifications
You must be signed in to change notification settings - Fork 137
/
Copy pathinvitation_code.sql
35 lines (29 loc) · 1.27 KB
/
invitation_code.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
/*
Navicat Premium Data Transfer
Source Server : 阿里云学生机
Source Server Type : MySQL
Source Server Version : 50726
Source Host : nikm.cn:3306
Source Schema : ms
Target Server Type : MySQL
Target Server Version : 50726
File Encoding : 65001
Date: 29/05/2020 17:27:06
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for invitation_code
-- ----------------------------
DROP TABLE IF EXISTS `invitation_code`;
CREATE TABLE `invitation_code` (
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`code` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '邀请码',
`create_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建时间',
`update_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '修改时间',
`status` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '状态 1已使用 0未使用',
`email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '注册的账号',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `uk_code`(`code`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1019 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
SET FOREIGN_KEY_CHECKS = 1;