What would you do if they open the same client on the website and start to edit his details? Of course they will overwrite each other.
Employee A comes to the client B to do some work. That means that we create a temporary TempJobID in the local database in the table tblJobs.
Then in the table tblJobsDetails we will use this TempJobID as a foreign key.
Employee C comes to the client B to do some work. So we will create another record in tblJobs and will create another TempJobID and so on.
That means they will never overwrite each other.
Then Employee A sync his app with the server. We will create a record in the tblJobs in the main database, will get a JobID. Then will create a record in the main database in the table tblJobsDetails with JobID as a foreign key. But the main idea is that we will return a JSON string back to the app that will have a timestamp created on the server, TempJobID and whatever you want to return back to the app, let say a table name and the userID
To finish the sync process you will open a tblJobs in your app local database and update the following files in tblJobs table:
JobID - that will have a JobID created on the server so you later match this record with the main database
Received - that will have a timestamp created on the server so you won't send this record back to the server again.