Jump to content

Need Help Creating A Databse


iNko

Recommended Posts

Hi, i need help creating a database for a software that im supposed to do. My english isnt the best but ill try to my best to explain what i need and hopefully someone will understand and help me.

 

My assignment - "reminder" software. It would read messages from database and display them on desktop.

 

Heres a pic of the database im trying to make:

 

2iruh6q.png

There would be 1 person (administrator) that creates new users (or deletes old ones), those users then can login to the software and are able to receive messages.

 

I was thinking that administrator could write a message, pick date (year/month/day), and then pick a user ID (to send this message to one specific person) or group ID (to send this message to many people). All this would be done from database.

 

What i need help with - figure out what "fields" i need (like - username/password/message_year/message_month etc)

This is what iv come up with so far:

5yhq2e.png

 

Am i going in the right direction with this? any help or tips would be greatly appreciated.

 

P.S. sorry if i posted this in the wrong section or this isnt the forum for this kinda stuff :x

Link to comment
Share on other sites

Do not hold separate day, month and year. Use DATETIME fields. (Time is usually relevant for messages)

 

Your design only allows for a user to be in a single group. Introduce a membership table to allow for a many to many relation between groups and users

 

You also have two addressees per message (to user and to group). I'd introduce a "receipt" table. Write to this when a message is sent, one row per recipient. When they read it, timestamp it. This will let you know who has read them and when.

 

See my attached image (they disintegrate when I paste directly on this board)

post-3105-0-57431300-1350129125_thumb.png

Edited by Barand
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.