Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Account Manager and Manager

Glossary

Account Manager glossary

Features

  • When you create a restaurant, there are 3 emails that you insert:
    1. Alert email -> listed in other_emails table.
    2. Your email -> listed in owners table and staff table as owner (owner_id).
    3. Owner email -> owner creation data is saved in notes in owners table.

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

  • Users marked as is_account_manager will 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