create table entries (
  username varchar not null references users(username),
  entry_type varchar(16) not null,
  id bigserial not null,
  timestamp timestamptz,
  payload jsonb not null,
  
  primary key(username, entry_type, id)
);
