开发者

Folder in DB Schema

From the followi开发者_StackOverflow中文版ng simple schema:

TABLE users
id
fname
lname

TABLE assets
id
userid (fk users.id)
assetname
assetdesc

Which would be the recommended way of created "folders" or "groups" for assets. I would also apply this to MESSAGES and other types that might make use of being organized in a folder-like structure.


add two other tables:

one for the 'folder'

folder
-------
id
name

and one for the contents

folder_content
--------------
folder_id
asset_id
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜