Skip to content

Lab 7 #69

Merged
zezOtik merged 3 commits intomainfrom
zemliakov/lab7
Dec 18, 2025
Merged

Lab 7 #69
zezOtik merged 3 commits intomainfrom
zemliakov/lab7

Conversation

@Alexeyzem
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings December 17, 2025 06:58
@Alexeyzem Alexeyzem changed the title first itteration Lab 7 Dec 17, 2025
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

zezOtik
zezOtik previously approved these changes Dec 18, 2025
@zezOtik
Copy link
Copy Markdown
Owner

zezOtik commented Dec 18, 2025

аппрувнул, но приходите, посмотрим

@zezOtik zezOtik merged commit a0da114 into main Dec 18, 2025
1 check passed
@zezOtik zezOtik deleted the zemliakov/lab7 branch December 18, 2025 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants