updated appointments schema