*_h5p_contents table and mapping to *_h5p_tags

Forums: 

I'm trying to find the mapping between the content and the tags.

But I cannot see the usage of a foreign key in *_h5p_contents table that (would) map to *_h5p_tags?

What am I missing..?

I also tried to find the database schema for H5P that show all key dependencies, but can't find it on the site.

Any help would be great, thanks.

otacke's picture

It's an n:m relationship: a content can have multiple tags, and a tag can be assigned to multiple contents. Ergo, you cannot sensibly use foreign keys directly. There must be a lookup table ... Well, *_h5p_contents_tags is what you're looking for.