Commit Graph

2 Commits

Author SHA1 Message Date
Rezon Philip 9559607fe0 feat(tenant): Add full tenant & user onboarding pipeline with routing + integration
This update adds complete tenant management to the backend:
- Added tenant models, repositories, services, and handlers
- Added user registration flow that creates tenant + user in a transaction
- Added tenant retrieval endpoints (GetTenant, GetMyTenant)
- Configured new routes and integrated handlers into SetUpRoutes
- Wired repositories, services, and handlers into main.go
- Implemented slug generation, validation, and transactional creation logic

Includes updates across:
- models (tenants)
- repositories (tenant_repository)
- services (tenant_service)
- handlers (tenant_handler, user_handler)
- routes and main.go for full system integration
2025-12-11 02:12:24 +05:30
Rezon Philip 05b056c804 chore(postgres_db): Relocated database files to outside backend, init DockerFile, expand docker-compose
This commit relocates the database files to outside the backend folder, to the root aurganize folder.
- we initialise the backend Dockerfile.dev
- we expand the docker-compose to migrate our backend to docker

This improves developer experience and standardizes database operations for the entire backend team.

Story: E1-004 - PostgreSQL Database Setup
2025-12-03 22:57:47 +05:30