-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpdb.sql
45 lines (38 loc) · 1.67 KB
/
phpdb.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
/*
Navicat Premium Data Transfer
Source Server : localhost
Source Server Type : MySQL
Source Server Version : 50736
Source Host : localhost:3306
Source Schema : phpdb
Target Server Type : MySQL
Target Server Version : 50736
File Encoding : 65001
Date: 15/04/2022 16:48:35
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for msgs
-- ----------------------------
DROP TABLE IF EXISTS `msgs`;
CREATE TABLE `msgs` (
`m_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '留言ID',
`m_content` text CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT '留言内容',
`m_time` int(11) NOT NULL COMMENT '留言时间',
`u_id` int(11) NOT NULL COMMENT '用户ID',
PRIMARY KEY (`m_id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = '留言表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for users
-- ----------------------------
DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
`u_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '用户ID',
`u_name` varchar(20) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT '用户名',
`u_pass` char(32) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT '用户密码',
`u_pic` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL COMMENT '用户头像',
`u_time` int(11) NOT NULL COMMENT '注册时间',
PRIMARY KEY (`u_id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = '用户表' ROW_FORMAT = Dynamic;
SET FOREIGN_KEY_CHECKS = 1;