I'm coding a Classified Ads web application. The application has several types of Ads:
- General ads(electronics, toys, pets, books...)
- Real estate (houses, apartments, terrains...)
- Vehicles (motocycles, cars, vans, trucks...)
Each type has several common fields (id, title, description) and also some that are exclusive to its kind:
- General Ads (no exclusive fields)
- Real estate (area, type-of-property...)
- Vehicles (type-of-vehicle, cubic-capacity, kilometers...)
What is the most recommended approach to this situation?
- A table that contains all fields and leave empty the fields that
don't apply to the current recordset. - A main table with the fields common to all Ads, and an additional table for each type of Ad that has exclusive fields.
- One table for each type of Ad.
- Other