MySQL Database

Here is an example of our database tables.  There are two tables posts and users, which contain the users login details and the information input from the form (posts).  It took a while to populate, this was one of the things Chris and I did over the Easter break.

The posts table contains the data input in the form as well as the id of the user and the id of the listing.  It has the following columns, id, user id (who listed it), title, price, location, type, bedroom number, photo (name), photo path, description and the date and time the listing was added.

The posts table

posts

 

The users table contains the users details and login information that was input when they signed up and has the following columns, id, username, password, first name, last name and email address.

The users table

users

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s