I have three tables Teachers, Student, ViewType
table Teachers{
Id uniqueidentifier,
Name nvarchar
}
table Student{
Id uniqueidentifier,
Name nvarchar
}
table ViewType{
Id uniqueidentifier,
Type String
}
Note: Let's say for the example that ViewType is not a regular look up table.
it contains data of how to present the Teacher or Student in the ui therefor shouldn't be in the Teacher or Studenttable model.
Is there a way to create a foreign key to two tables where a key is enforced to from and only from the two tables? Thanks.