# Context for Halo-Bestie Chat App

We are building chat application to help our user to share their feelings (Indonesian called it "curhat") to trainned professional. Our users will be called Customer, while our professional will be called Mitra. This is a paid service with trial period only available when user registering. The service is duration based paid service, configurable through control center. Trial period is configurable via control period, for both duration and availability.

## Phase 1

We build application for both mitra (our professional), and customer for them to communicate via chat. Control center also need to be build to manage communication (re routing, seeing whose live, etc), manage application and managing features. But on this phase, we want to start from authentication only for both Mitra, Customer and Control Center user. The functionality needed for this phase:

1. Customer can do self register or go as anonymous
2. Both anonymous and registered user can decide who they want to be called. If social login is used, system NEVER used their social name
3. Anonymity of the user can be enabled or disabled through control center
4. When the anonymity is set to disable, anonymous user will be forced to register by either linking to their social login or through phone number OTP
5. Customer registration can be done through mobile number with OTP or social login.
6. Mitra is a user that registered through control center. They wont be able to do self register
7. Mitra primary identification is phone number and logged on through OTP
8. Note that Mitra and Customer can have same number. Because mitra is also human and need to vent their problem as wel :)
9. Control center user is managed by control center admin
10. Mitra on boarding flow, is not yet covered in app. So it is a matter of creating Mitra's data, and set it to active or inactive


## Tech Stack
- mitra app -> flutter for both ios and android
- client_app -> flutter for both ios and android
- backend -> fastify
- payment gateway -> xendit
- auth -> firebase auth
- database -> postgresql