Skip to content

Add SQLAlchemy models and database session setup#2

Merged
Orlando-Alvarez merged 2 commits into
mainfrom
feat/add-database-models
May 15, 2026
Merged

Add SQLAlchemy models and database session setup#2
Orlando-Alvarez merged 2 commits into
mainfrom
feat/add-database-models

Conversation

@Orlando-Alvarez

Copy link
Copy Markdown
Owner

Summary

This pull request adds the initial database foundation for Ticket-API.

Changes

  • Added SQLAlchemy and PostgreSQL driver dependencies.
  • Added SQLAlchemy DeclarativeBase.
  • Added initial domain models:
    • User
    • Ticket
    • Incident
  • Added model registration tests.
  • Added database URL configuration.
  • Added SQLAlchemy engine, SessionLocal, and get_db dependency.
  • Added database configuration tests.

Validation

  • Confirmed all tests pass locally with:
python -m pytest
  • Confirmed GitHub Actions CI passes successfully.

Notes

  • This PR does not connect to a real PostgreSQL database yet.
  • This PR does not add CRUD endpoints, authentication, Alembic, Docker, or deployment configuration.

@Orlando-Alvarez Orlando-Alvarez merged commit 1767fb5 into main May 15, 2026
2 checks passed
@Orlando-Alvarez Orlando-Alvarez deleted the feat/add-database-models branch May 23, 2026 19:40
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.

1 participant