-
Notifications
You must be signed in to change notification settings - Fork 0
/
wechat.sql
100 lines (82 loc) · 2.65 KB
/
wechat.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
-- phpMyAdmin SQL Dump
-- version 4.7.0
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: 2017-06-20 18:12:17
-- 服务器版本: 10.1.21-MariaDB
-- PHP Version: 5.6.30
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `wechat`
--
-- --------------------------------------------------------
--
-- 表的结构 `message`
--
CREATE TABLE `message` (
`mesId` int(11) NOT NULL,
`senderID` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`getterID` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`content` varchar(2048) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`sendTime` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`type` int(1) NOT NULL DEFAULT '0' COMMENT '0表示未读,1表示已读'
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- 表的结构 `users`
--
CREATE TABLE `users` (
`id` int(11) NOT NULL,
`username` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`password` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`sex` int(1) UNSIGNED DEFAULT '0',
`online` int(1) DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- 转存表中的数据 `users`
--
INSERT INTO `users` (`id`, `username`, `password`, `email`, `sex`, `online`) VALUES
(1, 'pigstrong', '123', '123', 0, 0),
(15, '不堪的马囹侠', 'woshi8hao', '[email protected]', 0, 0),
(6, '133', '133', '133', 0, 0),
(14, '朱强', '123', '1234', 0, 0),
(12, '赵家杰', '123', '2', 0, 0),
(16, '叼死你', '12345678', '[email protected]', 0, 0);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `message`
--
ALTER TABLE `message`
ADD PRIMARY KEY (`mesId`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- 在导出的表使用AUTO_INCREMENT
--
--
-- 使用表AUTO_INCREMENT `message`
--
ALTER TABLE `message`
MODIFY `mesId` int(11) NOT NULL AUTO_INCREMENT;
--
-- 使用表AUTO_INCREMENT `users`
--
ALTER TABLE `users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;