Hi all;
It is my appreciate that writ your suggestion about this db that i have design for a magazine online:
-one article can belong to many categories.
-one article can have null or many photos.
-one article can have null or many tags.
Table: `tb_categories`
Columns:
`cat_id` (Primary Key)
`catname`
`parent_id`
.
Table: `tb_articles`
Columns:
`article_id`(Primary Key)
`title`
`subtitle`
`textbody`
`source_id`
`date`
`remark`
.
Table: `tb_sources`
Columns:
`source_id` (Primary Key)
`sourcename`
.
Table: `tb_photos`
Columns:
`photo_id` (Primary Key)
`photofilename`
.
Table: `tb_tags`
Columns:
`tag_id` (Primary Key)
`tagname`
.
Table: `tb_articles_photo`
Columns:
`article_id` (Foreign Key)
`photo_id` (Foreign Key)
.
Table: `tb_articles_tags`
Columns:
`article_id` (Foreign Key)
`tag_id` (Foreign Key)
.
`tb_articles_categories`
Columns:
`article_id` (Foreign Key)
`cat_id` (Foreign Key)