Defining a proper Schema for a custom field Type in Drupal 8+ doesn't seem to be very well documented yet. Luckily, the core gives us some good examples to start from. For that reason, you should have a look into the core modules that
This post saved you a lot of time and headache?
Then I'd be very happy about a delicious coffee! Or a helpful book from my wish list.
Or are you looking for professional web software development?
Our experienced team at webks GmbH consults, develops & implements individual, innovative web, eCommerce, Drupal CMS & mobile applications.