Database¶
Database documentation for EduSync's PostgreSQL databases hosted on Aiven Cloud.
-
Schema Reference
Complete schema documentation for all six databases.
Database Overview¶
EduSync uses six PostgreSQL databases hosted on Aiven Cloud:
| Database | Service | Port | Purpose |
|---|---|---|---|
auth_db |
Auth Service | 3001 | Users, profiles, OTPs |
market_db |
Marketplace Service | 3002 | Vendors, products, orders, payments |
rent_db |
RentHub Service | 3003 | Rental listings, transactions |
newsbox_db |
NewsBox Service | 3004 | Posts, comments, votes |
chat_db |
Chat Service | 3006 | Chatrooms, messages, participants |
issue_db |
Issue Service | 3007 | Issue reports, responses |
Notices Service
The Notices service uses in-memory caching instead of a database, scraping data from the UIU website.
Connection¶
All databases connect to Aiven PostgreSQL:
Population Order¶
Due to foreign key constraints, populate databases in this order:
- auth_db (First) - Contains all user references
- market_db (Second) - References user IDs
- rent_db (Third) - References user IDs