In a classifieds website, you have several categories (cars, mc, houses etc). For every category chosen, a hidden div becomes visible and shows additional options the user may specify if he/she wishes.
I am creating a db now, and I have read some articles about normalization and making it optimized etc...
Here is my layup today
CATEGORY TABLE:
- cars
- mc
- houses
CLASSIFIED TABLE:
- headline
- description
- hide_telephone_nr
- changeable
- action
- price
- modify_date
POSTER TABLE:
- name
- passw
- tel
- email
AREA TABLE:
- area
- community
CARS TABLE:
- year
- fuel
- gearbox
- colour
MC TABLE:
- year
- type
HOUSE TABLE:
- Villa
- Apartment
- Size
- rooms
etc
I have so far one table for each category, so that is around 30 tables. Isn't that too many?
I haven't created PK or FK for any of these so far, haven't got that far yet...
Could you tell me if this setup is good, or should I have it made differently?
ALSO, how would you setup the FK and the PK here?
Thanks