SQL to define a schema for storage of events in Postgresql.