graph TD
A[Next.js Frontend] -->|API Requests| B[Ruby on Rails Backend]
B <-->|Read/Write| C[(PostgreSQL Database)]
D[FreeSWITCH] <-->|CDR and Call Data| C
B <-->|API Calls| D
subgraph Database
C
end
subgraph Application Layer
A
B
D
end
security considerations:
The only way to make a call to postgres is via RoR