Im trying to design a database to use in SQL server , the design i've got now is working but It just doesn't look right to me and there must be a better way to set things out. I've also noticed that potentially i've got a many to many relationship here 
Heres the current situation
Theres 3 tables
USERTYPES
USERS
TICKETS
The users table holds the user information i.e.
userID
userName
Phone Number
userTypeID *
It contains a foreign key called userTypeID which is a primary key of USERTYPES
The USERTYPES table contains the two types of users on the system , these are standard and admin, so the table looks like this.
USERTYPESID
typeName
The TICKETS table holds the ticket details of tickets submitted by users. so
ticketID
ticketName
ticketDescription
DueDate
ticketRequestor *
AssignedTo *
Now here is where I have the problem, the ticketRequestor is a foreign key of the STAFF table staffID however AssignedTo is also a foreign key of the STAFF table staffID.
Currently in order to get this working i've had to turn off the enforce relationship for the AssignedTO - staffID link but idealy I think this enforce relationship should be on to ensure its a truely relational.
SOOO a ticket contains a staff member who opens the ticket and the ticket also contains another staff member who is class as an admin assigned to it. so each ticket can have 1 or more staff members assigned and each staff member cna have many tickets so there I have a many to many.
I'm not sure how to sort this , I could insert another link table say called
adminTicketLinkTable
--------------------
ticketID
staffID
--------------------
but I still dont think that looks right
any ideas as to what I need to do to organise the relationships better ?
thanks
Heres the current situation
Theres 3 tables
USERTYPES
USERS
TICKETS
The users table holds the user information i.e.
userID
userName
Phone Number
userTypeID *
It contains a foreign key called userTypeID which is a primary key of USERTYPES
The USERTYPES table contains the two types of users on the system , these are standard and admin, so the table looks like this.
USERTYPESID
typeName
The TICKETS table holds the ticket details of tickets submitted by users. so
ticketID
ticketName
ticketDescription
DueDate
ticketRequestor *
AssignedTo *
Now here is where I have the problem, the ticketRequestor is a foreign key of the STAFF table staffID however AssignedTo is also a foreign key of the STAFF table staffID.
Currently in order to get this working i've had to turn off the enforce relationship for the AssignedTO - staffID link but idealy I think this enforce relationship should be on to ensure its a truely relational.
SOOO a ticket contains a staff member who opens the ticket and the ticket also contains another staff member who is class as an admin assigned to it. so each ticket can have 1 or more staff members assigned and each staff member cna have many tickets so there I have a many to many.
I'm not sure how to sort this , I could insert another link table say called
adminTicketLinkTable
--------------------
ticketID
staffID
--------------------
but I still dont think that looks right
any ideas as to what I need to do to organise the relationships better ?
thanks