A picture does more justice so I'll start with that.
So in my Relation_Type table I have several different Types (Owner, Reviewer, Approver, etc).
In my Relation_Status table I have different status' for some of the types:
Reviwer: (Pending Feedback, Feedback Received)
Approver: (Pending Decision, Approved, Denied)
My problem is that I don't know how to enforce the relationship that says if the relation type is feedback limit the status to only the feedback status'.
Right now the way this is modeled a relation type of Feedback can have any status which is a logical inconsistency. Also, not all Types have a Status.
So any tips on how to model this so it enforces the dependency ?
Thanks, Raul