Account Manager and Manager
Glossary
Features

- When you create a restaurant, there are 3 emails that you insert:
- Alert email -> listed in
other_emailstable. - Your email -> listed in
ownerstable andstafftable as owner (owner_id). - Owner email -> owner creation data is saved in
notesinownerstable.
- Alert email -> listed in

- The account manager setting on the Edit User page is saved in
users.is_account_manager.

- Users marked as
is_account_managerwill be listed in the Account Manager section on Edit Restaurant. - If you add a user in Account Manager, it will be linked as
restaurants.user_id.

- The manager email on Edit Restaurant is saved as a new record in
other_emails. - It will be listed in the Manager and Other Emails column on the Restaurant page.
Account Manager on Email

The account_manager value in owner/staff/user mailers is from restaurants.user_id (the Account Manager selected on Edit Restaurant).
Rails console example: Restaurant.last.user&.email