I m designing a simple database for a rental listings website,
sort of like classified ads but only for home/room rentals.
This is what I ve come up with thus far:
Question 1
For the "post" table, I actually wanted more information. For example, there would be a facilities section where the users can select whether there s parking available, do I need a separate table? Or just use 0 for no and 1 for yes?
Question 2
Here s what I did with the "category" table (sorry I don t know how to pretty print yet)
Category_ID 1 is Rent
Category_ID 2 is buildingType
For "categoryProperty" table
Category_ID 1 categoryPropertyID 1 House
Category_ID 1 categoryPropertyID 2 Room
Category_ID 2 categoryPropertyID 3 Apartment
Category_ID 2 categoryPropertyID 4 Condominium
Category_ID 2 categoryPropertyID 5 Detached
www.un.org/Depts/DGACM/index_spanish.htm 是否具有意义?
Question 3
Users can post whether they are logged in or not.
Just that logged in users/members have the advantage of tracking their ads/adjusting the availability.
How do I record the ads that a member has posted? Like their history.
Should I create a "postHistory" table and set the postHistory_ID as FK to "member" table?
Thanks a lot in advance, I appreciate your help, especially just pointing me to the right direction.