I'm trying to figure out the best way to setup some tables in my database. I will be saving data about users in one table and navigations in another. I will simplify the tables.
I have two tables at the moment, User that has User_ID and User_Name. Navigation that has Nav_ID and Nav_Name.
What i'm thinking about is that Every user can have there "own" navigation counter. So basicly what i'm trying to do is that the Nav_ID counter will start on 1 for every user.
The way it works now is that every user uses the same navigation table and the Nav_ID counts from 1 for everyone.
I'm thinking that i need to make a 1:n to n:1 table in the middle to connect the User and Navigation tables together. Or is there another way, heard something about surrogates or something but i dont know if its a better way.