-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path0. DB.sql
More file actions
99 lines (46 loc) · 905 Bytes
/
Copy path0. DB.sql
File metadata and controls
99 lines (46 loc) · 905 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
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
-- 一个问答信息表
CREATE DATABASE IF NOT EXISTS tophot default charset utf8;
-- 问题
create table question(
qid int unsigned auto_increment,
title varchar(200),
description TEXT,
createTime TIMESTAMP DEFAULT NOW(),
primary key(qid)
)DEFAULT CHARSET=utf8;
INSERT INTO question(title, description) values("哈哈", "呱呱");
-- 回答
/*
*/
create table answer(
uid
content
answerTime
)DEFAULT CHARSET=utf8;
-- 登陆账户
/*
用户id
登陆邮箱
密码
账户创建时间
*/
create table account(
aid int unsigned auto_increment,
email varchar(100),
password varchar(1024),
signupTime timestamp default now(),
primary key(aid)
)DEFAULT CHARSET=utf8;
-- 用户信息
/*
*/
create table user(
uid
name
gender
birthday
portt
)DEFAULT CHARSET=utf8;
--
create table xx(
)DEFAULT CHARSET=utf8;