Account Manager and Manager
Glossary
Private (https://app.clickup.com/9003122396/docs/8ca1fpw-35796/8ca1fpw-41516)
Features

- when you create restaurant there are 3 email that you will insert:
- alert email → listed
other_emailstable - your email → listed on
ownerstable and onstafftable as owner (have owner_id) - owner email → all owner information from creating restaurant was saved on
notescolumn, on owners table
- alert email → listed

- Is account manager on edit user, is saved on the
userstable at is_account_manager column
- User that marked as
is_account_managerwill listed on the Account Manager section on Edit Restaurant - If you add user on Account Manager it will linked as
user_idon restaurants table

- The manager email on edit restaurant is saved as new record on
other_emailstable - It will be listed as Manager and other emails column at Restaurant Page on Admin Dashboard
Account Manager on Email
The account_manager on owner,staff and user mailer was from the user_id on the restaurants table, or the "Account Manager" from edit restaurant.
rails c: Restaurant.user&.email