I'm creating an application to monitor the aquarium settings using the following scheme:
The user can monitor as many tanks as he wants, but every time he adds a new aquarium, these two tables should be created and always linked.
And the water parameters need to be maintained over time as I'll use them on a chart. Showing changes over time. For example, a chart showing the amount of salt over the course of a week.
That's where my doubt comes in, because I'm starting to program in a little while.
I've been researching and seen what foreign key might be useful in my case, but I do not know if that would help me or how to proceed.
Note: Just a clarification. I do not need the be-a-bá, I have a basic knowledge on Android. I know how to handle a db, do CRUD operations, Cursor, ContentProvider, etc. But I'm lost in this case. I do not want to look lazy. Just no sense of which way to go or what tools to use.