CDB-3094 Migrates shared entities to a more generic schema so we can support sharing with user and organization.
Constraints recipient type to user and org.
Renames type column to entity_type.