I have an appointment app that allows clients to create doctor appointments. An admin would then award the appointment to available doctors. Part of the app reads as follows