Skip to content

Commit

Permalink
add database.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangrenyang committed Dec 23, 2020
1 parent 74c160b commit 9970f72
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions packages/requirements/database.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
## 题目(subjects)
|字段名|类型|说明|
|:----|:----|:----|
|id|int(11)|ID|
|name|varchar(255)|标题|
|content|text|内容|
|description|varchar(255)|描述|
|created_at|datetime|创建时间|
|updated_at|datetime|更新时间|


## 每日一题(days)
|字段名|类型|说明|
|:----|:----|:----|
|id|int(11)|ID|
|subject_id|int(11)|题目ID|
|description|varchar(255)|描述|
|publish_date|date|发布日期|
|created_at|datetime|创建时间|
|updated_at|datetime|更新时间|



## 每日一题回答(day_answers)
|字段名|类型|说明|
|:----|:----|:----|
|id|int(11)|ID|
|day_id|int(11)|每日一题ID|
|content|int(11)|ID|
|id|text|回答|
|description|varchar(255)|描述|
|created_at|datetime|创建时间|
|updated_at|datetime|更新时间|

0 comments on commit 9970f72

Please sign in to comment.