假设我有一个结构,如下所示:
Doctor has_many :appointments
Patient has_many :appointments
doctors has_many :patients :through :appointments
patients has_many :doctors :through :appointments
我可以在医生下安排预约吗?这会导致任何限制还是违反最佳实践?
假设我有一个结构,如下所示:
Doctor has_many :appointments
Patient has_many :appointments
doctors has_many :patients :through :appointments
patients has_many :doctors :through :appointments
我可以在医生下安排预约吗?这会导致任何限制还是违反最佳实践?