2015-01-09 57 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

是的,它被稱爲多態關聯。