You can store a JSON as string (or json/jsonb) and...
# exposed
m
You can store a JSON as string (or json/jsonb) and use jackson polymorphic deserialization with the JsonSubTypes annotation