Home  >  Article  >  Backend Development  >  javascript - Database design issues regarding Timeline functionality?

javascript - Database design issues regarding Timeline functionality?

WBOY
WBOYOriginal
2016-12-05 13:44:201160browse

javascript - Database design issues regarding Timeline functionality?

As shown in the picture, this kind of Timeline is how the masters would design the database.

Then what’s a better way to make a query?

Reply content:

javascript - Database design issues regarding Timeline functionality?

As shown in the picture, this kind of Timeline is how the masters would design the database.

Then what’s a better way to make a query?

Design a database specifically to collect user operation information. The design of the database may be as follows

<code>id 序号
info_type 信息类型(published,uploaded,purchased ...)
user_id  用户id
timeline_show 显示在时间线
created_at
deleted_at</code>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn