Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR introduces a FastAPI-based room booking system with PostgreSQL database integration. The implementation includes REST API endpoints for managing rooms and bookings, containerized deployment with Docker, and async database operations using SQLAlchemy.
Key changes:
- FastAPI application with room and booking management endpoints
- PostgreSQL database with Docker Compose orchestration
- Pydantic models for request/response validation and SQLAlchemy ORM models for data persistence
Reviewed changes
Copilot reviewed 10 out of 13 changed files in this pull request and generated 15 comments.
Show a summary per file
| File | Description |
|---|---|
| requirements.txt | Defines Python dependencies including FastAPI, SQLAlchemy, and asyncpg |
| docker-compose.yaml | Configures PostgreSQL and FastAPI containers with health checks and dependencies |
| Dockerfile | Sets up Python 3.11 container for the FastAPI application |
| app/main.py | FastAPI application entry point with lifespan management for database tables |
| app/router_room.py | REST endpoints for adding and retrieving rooms |
| app/router_booking.py | REST endpoints for booking operations (add, get, delete, check availability) |
| app/operations/database_operations.py | Business logic for room and booking workflows with async database operations |
| app/operations/database_migrations.py | Database table creation and deletion utilities |
| app/models/store_models.py | Pydantic models for API request/response validation |
| app/models/database_models.py | SQLAlchemy ORM models for room and booking tables |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
students_folder/zemliakov_alexey/lab7/app/operations/database_operations.py
Show resolved
Hide resolved
students_folder/zemliakov_alexey/lab7/app/operations/database_operations.py
Show resolved
Hide resolved
students_folder/zemliakov_alexey/lab7/app/operations/database_operations.py
Show resolved
Hide resolved
students_folder/zemliakov_alexey/lab7/app/operations/database_migrations.py
Show resolved
Hide resolved
zezOtik
previously approved these changes
Dec 18, 2025
Owner
|
аппрувнул, но приходите, посмотрим |
zezOtik
approved these changes
Dec 18, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.