If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > How to design an approval worflow?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-19-09, 10:57
lopes_andre lopes_andre is offline
Registered User
 
Join Date: Oct 2008
Posts: 4
How to design an approval worflow?

Hi,

I need to design a approval workflow for a blog.

I have 3 types of users. "Administrators", "Managers" and "Writers".

The "Managers" approve "Writers" posts and the "Administrator" approve the "Managers" decisions.

How can I design the database to handle this?

Best Regards,
André.
Reply With Quote
  #2 (permalink)  
Old 08-19-09, 11:39
dportas dportas is offline
Registered User
 
Join Date: Dec 2007
Location: London, UK
Posts: 732
AdministratorApproval {Post, Administrator}
ManagerApproval {Post, Manager}
Post {Post, Writer}

If every post is to be approved by one manager and one admin then Post is the key of all three tables. If more than one manager/admin may approve a single post then make the key {Post, Manager}, {Post, Administrator} accordingly.
Reply With Quote
  #3 (permalink)  
Old 08-19-09, 11:49
lopes_andre lopes_andre is offline
Registered User
 
Join Date: Oct 2008
Posts: 4
Thanks for your reply. I got it!

Best Regards,
André.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On