Okay, so I have created a ticket system for jobs at work.
There are three tables:
Job:
id|subject|flag|status|deadline|ts
Team:
id|jobID|userID|vocation
and exchange:
id|details|foreignID|table|polyflag|userID|ts
Basically a job is created, inserted into job
, the team is built up and inserted into team
and any posts and conversation for this particular job is put into exchange
.
But what I would like to do is find out if a user has not read any posts in a particular job. Because at the moment, they are having to actually go into the job page, and see if there is anything new in there they havent seen. If their job list is particularly large, this will become a problem.
So if a user posts something new, and they havent loaded the job and seen it, I want to be able to show them that somehow. The problem is I have no idea how I can do it.
Suggestions?