2015-01-09 25 views
0

는 이름이나 이런 스키마 패턴이 있습니까 :entity_id/entity_type 용어/패턴?

movies 
====== 
id 

series 
====== 
id 


assets 
====== 
entity_type (i.e. 'movies' or 'series') 
entity_id (the id of either the movie or series record) 
... 

이 좋은 또는 나쁜 생각하면 내가 물어 아니에요은 - 그것이 이름 및/또는 관련 패턴이 불과합니다.

감사합니다.

답변

0

예, 다형성 연관성으로 알려져 있습니다.