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 > Database Server Software > MySQL > Database design help

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-23-05, 13:47
Elitachi Elitachi is offline
Registered User
 
Join Date: Nov 2005
Posts: 2
Database design help

Hi Guys

My first post, so here goes.

I am designing a cms, but before I do that I,m concentrating on the ums - user management, now, I have designed what I think to be a good table structure but I thought I would post here for everyone to look at, and hopefully give advice.

Here it is

http://www.syl.eclipse.co.uk/images/database.jpg

Now, what do you think?

I,ll explain it a little, firstly there is the module table, this will list every unique aspect of the site, i.e contact, news, tutorials etc etc.

Then a permissions table, i.e view, edit, delete etc, I thought this would be good, otherwise I would have to create a sub module table, and create a sub module for each permission, now seeing as most modules will be using the same basic set of permissions, its easier this way.

Does the module_has_permissions table look ok to everyone? you,ll notice there is a PK called module-has_permission_id and two FK's which have also been incorporated into a unique index. Is this the correct to achieve what I want, which is this...

Modules can have any number of permissions, but a group can only be given a permission if it already exists.

If anyone can offer advice, alternate way of doing the same or thinks what I have is good, then please fell to comment.

Thanks

Elitachi
Attached Images
File Type: jpg database.jpg (98.3 KB, 77 views)
Reply With Quote
  #2 (permalink)  
Old 11-23-05, 16:40
bayder bayder is offline
Registered User
 
Join Date: Feb 2004
Posts: 18
I think you would be better putting this question is the Database Concepts & Design forum.
Reply With Quote
  #3 (permalink)  
Old 11-23-05, 22:37
Elitachi Elitachi is offline
Registered User
 
Join Date: Nov 2005
Posts: 2
Hi

Yeah sorry about that, if someone could move it, it would be appreciated.

Thanks

Elitachi
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