How to create availability definitions?