laserlight wrote:At a glance, it looks okay. I think you should also tell us what are the entities, their attributes, and their relationships. At the moment I can deduce these by looking at the schema, but that means I have to assume that your schema is appropriate, when that is precisely the thing you are worried about 😉
Thank you soooo much for answering the question. I appreciate the fact that you took time out to actually look at the layout and try to decipher thru my awful drawing skills!🙂
Basically, I am simply following a road map. From the id of the listing, I am taking a relation to each of the other aspects. The relation is put in a separate table.
For example, the user of the listing is tracked by putting the id of the listing and the id of its user in one table and they are made into a primary key.
From the id of the user in this table, all user info can be tracked by simply looking up that id in the userinfo table. Then, there is a relationship whether the user is a 'premium' type, 'silver' type or 'free' type....this is again done in the same way as above....just put both ids together in one table and then track out the info from the related table.
All the rest of the are also doing the same thing... the subcategory to which the ad belongs to, the category to which that subcategory belongs. Then the money-range the ad belongs to and finally, the class (Buying,selling,renting, or leasing) to which the ad belongs to.
I'll add the city/location tables next, in the same way...
By the way, the only tables that are going to keep getting updated by the users are the listing table and the userinfo table...rest of them are going to remain pretty much stationary, as you may have guessed...I'm telling that just for information
Again, thank you very, very much for answering. Now I can breath a sigh of relief and go ahead with developing my first big project!