Add internal schema.
Merge pull request #429 from MastodonC/feature/entity-schema-fix

Add internal schema for entities.