Jump to content

Database Structure


leeschill

Recommended Posts

Hi all :D ,

I am hoping for some guidance in structuring my database. I am having a hard time imagining/picturing how this would work without creating thousands of database tables in the system.

 

I am looking to build a membership system where USERS can log in and name their price on services from multiple SERVICE PROVIDERS. All is closed bidding. I would then like the SERVICE PROVIDERS to log in and view their bids and be able to hit a REJECT or ACCEPT button that the USERS can then relog in and see. There would be hundreds of service providers in each state. I\'ve looked at the Membership Tutorial and have started on some of the work but can\'t figure out how this will work without creating thousands of tables.

 

Any ideas or thoughts that I can feed off of? :shock:

 

:idea: Well maybe have different privileges set up so one table could be viewed by both but only give write privileges to the Service Provider??

Link to comment
Share on other sites

you wouldn\'t really need that many tables

 

A very basic layout but you could try something like this

 

Users

user_id

username

 

Services

service_id

provider_id

service_desc

service_price

 

bids

bid_id

bidder_id

service_id

bid_price

 

 

Like I said, very basic but you get the idea?

 

then when the service provider logs in you just select the services with their provider_id (which would be their user id) and the bids that deal with their service id\'s. That way they only see their services and bids.

Link to comment
Share on other sites

DylanBlitz had some good thinking but he didn\'t really make clear that either you need a seperate provider table (and this would be where the provider would indicate their location (state/zip etc), or you could use Users for that, and have an attribute of that table that would indicate whether the user was a a user or a provider.

 

I would recommend that you might want to retain the services of an experienced developer who understands data modelling and can help you make sure you have the right database structure.

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.