Yes you're correct that database table names are generally lowercase and plural. The model class names that represent those tables are uppercase and singular and no underscores.
In the console when you're doing User.first
, it's not going directly to the database, it's actually calling .first()
on the User model, a class. So you need to find the models for the tutor_appointments and user_profiles tables, and they're likely called TutorAppointment
and UserProfile
.