I have a model and view for user created appointments. I am adding the ability for staff to create ‘official’ appointments. These appointments will have additional options and events available, but for the most part the appointment models will have similar attributes (a date, a location, a client).
What I would like to do is have a single model that takes care of all appointments and pass in parameters to create default attributes depending on if a user or a staff member created the appointment.
Is this a clean way organize appointments, or should I be having separate models for each type of appointment?
This sounds like a place where you’d want to extend your existing
Appointmentmodel. Don’t just set different attributes based on who creates it.