I am a beginner in mySQL, just to be clear.
So, I have to make this database that is going to be connected to c# application.
The idea is to make an application for adopting a dog or cat. You can log in or register then when signed in you can navigate through menu where you one button is home button where all ads are visible then other button for dogs and other button for cats and in the end the add button where you can add a cat or dog to adopt.
My main problem is the design of the database tables.
The user table should be made out of columns with name, surname, username, password. But, do I need a table with a type of ad (cat or dog) or can I just make a table dog/cat where one column will represent the type of ad?
To mention, one user can add many ads but one ad can have two types of ad (cat/dog)..
To clarify, I want to make sure that when User is at the Add form, he can make sure he's adding a cat or dog and when he clicks add, the ad he is placing will pop up in the form where it belongs to..
I hope I am making sense.. thank you for your help!
What I have tried:
I have tried modeling the database through EER diagram and then made the database through forward engineering to get the code but I am not sure of the accuracy of the code and will it do right for the application