joomla-projects / gsoc16_shareable-draft-content

Shareable Draft Content
https://summerofcode.withgoogle.com/projects/#5268339920207872
GNU General Public License v2.0
4 stars 2 forks source link

Create database schema for storing shared links #3

Closed roland-d closed 8 years ago

roland-d commented 8 years ago

Propose a database schema for storing the shared links and other needed values.

nikitadhiman commented 8 years ago

@roland-d , article id should be the primary key field, as even when the article is updated after sharing it would still enable the use of same share link

roland-d commented 8 years ago

@nikitadhiman The article ID can't be the primary key because you can't control a primary key, this is an auto-increment value and controlled by the database.

nikitadhiman commented 8 years ago

For sharing purpose, a new field would be created containing the share link of the article. Initially, long share links would be stored in the db and later stage shortened link field can be introduced. Hence, for the fields required would be article_id, author_id (this would be useful while coding for draft manager, file_path, share_link. whenever the draft is shared the permission is 'read', thus no editing rights would be granted

nikitadhiman commented 8 years ago

https://github.com/joomla-projects/gsoc16_shareable-draft-content/pull/10/files Please review the files