setting up moments schema