The beginnings of a more sql-ish schema for availability were thrown away in this commit: 946802bb7ee41d12584fa1fcb49743a6488e2521
The beginnings of a more sql-ish schema for availability were thrown away in this commit: 946802b