The first version of the schema

This is before I started filling up the database with real data and
learning about some inconsistencies…