Polymorphic relationships
It's named Generic Foreign Keys. Check the Playhouse docs.
On Apr 2, 2016 2:07 PM, "Sam Milledge" notifications@github.com wrote:

> Does peewee support polymorphic relationships?
> 
> Would be awesome to have something similar to what is provided by Laravel
> and Rails:
> https://laravel.com/docs/5.1/eloquent-relationships#polymorphic-relations
> 
> http://guides.rubyonrails.org/association_basics.html#polymorphic-associations
> 
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly or view it on GitHub
> https://github.com/coleifer/peewee/issues/903
 Didn't see that, thanks!
 Thanks @arikfr ! @smilledge feel free to reply if you have follow-up questions.
 I've made a simple generic foreign key implementation: https://gist.github.com/wonderbeyond/0e1f402b7595e0b4f9f653260fed029c#file-index-md
Does peewee support polymorphic relationships?

Would be awesome to have something similar to what is provided by Laravel and Rails:
https://laravel.com/docs/5.1/eloquent-relationships#polymorphic-relations
http://guides.rubyonrails.org/association_basics.html#polymorphic-associations
