Skip to content

jaymeklein/rentrust-backend

Repository files navigation

Structure

Router (api/routes) - Maps endpoints to controller methods;
Controller (api/controllers) - Manages request/response flow and delegates to the service;
Service (api/services) - Handles business logic and data operations;
Model (api/models) - Interacts with the database;
Schema (api/schemas) - Defines Pydantic types;
Schema (db/schemas) - Defines the data structure as SQLAlchemy models;

Dynamically generate database tables

1. Inside `/rentrust`, generate the version file:
   ```bash
   alembic revision --autogenerate -m "MESSAGE"
   ```
2. Push changes to the database
   ```bash
   alembic upgrade head
   ```

Releases

No releases published

Packages

No packages published