You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.7 KiB
63 lines
1.7 KiB
4 years ago
|
# 用户表 User
|
||
|
|
||
|
| 列名 | 数据类型 | 约束条件 | 含义 |
|
||
|
| ---- | -------- | -------- | ---- |
|
||
|
| id | bigint | primary key; identity | 用户编号 |
|
||
|
| user_name | varchar | not null | 用户名 |
|
||
|
| password | varchar | not null | 密码 |
|
||
|
| | | | |
|
||
|
|
||
|
|
||
|
# 论文 Paper
|
||
|
|
||
|
| 列名 | 数据类型 | 约束条件 | 含义 |
|
||
|
| ---- | -------- | -------- | ---- |
|
||
|
| Pid | int | primary key; identity | 文章编号 |
|
||
|
| Ptitle | varchar | not null | 文章标题 |
|
||
|
| Ptime | date | | 发表时间 |
|
||
|
|
||
|
|
||
|
# 作者 Author
|
||
|
|
||
|
| 列名 | 数据类型 | 约束条件 | 含义 |
|
||
|
| ---- | -------- | -------- | ---- |
|
||
|
| Aid | int | primary key; identity | 作者编号 |
|
||
|
| Aname | varchar | not null | 作者姓名 |
|
||
|
|
||
|
|
||
|
# 论文作者关系 PaperAuthor
|
||
|
|
||
|
| 列名 | 数据类型 | 约束条件 | 含义 |
|
||
|
| ---- | -------- | -------- | ---- |
|
||
|
| PAid | int | primary key; identity | 编号 |
|
||
|
| Aid | int | foreign key | 作者编号 |
|
||
|
| Pid | int | foreign key | 文章编号 |
|
||
|
|
||
|
|
||
|
# 标签 Tag
|
||
|
|
||
|
| 列名 | 数据类型 | 约束条件 | 含义 |
|
||
|
| ---- | -------- | -------- | ---- |
|
||
|
| Tid | int | primary key; identity | 标签编号 |
|
||
|
| Tname | varchar | not null | 标签描述 |
|
||
|
|
||
|
|
||
|
# 论文标签 PaperTag
|
||
|
|
||
|
| 列名 | 数据类型 | 约束条件 | 含义 |
|
||
|
| ---- | -------- | -------- | ---- |
|
||
|
| PTid | int | primary key; identity | 编号 |
|
||
|
| Pid | int | foreign key | 文章编号 |
|
||
|
| Tid | int | foreign key | 标签编号 |
|
||
|
|
||
|
|
||
|
# 笔记 Note
|
||
|
|
||
|
| 列名 | 数据类型 | 约束条件 | 含义 |
|
||
|
| ---- | -------- | -------- | ---- |
|
||
|
| Nid | int | primary key; identity | 编号 |
|
||
|
| Pid | int | foreign key | 文章编号 |
|
||
|
| Uid | int | foreign key | 用户编号 |
|
||
|
| Ntype | int | | 笔记分类 |
|
||
|
| Ncontent | varchar | | 笔记内容 |
|