Skip to content

Promote sessions.repository_id to a real foreign key #2

Description

@bme2003

Summary

sessions.repository_id is currently stored as a plain string. It should be a true foreign key to repositories.id.

Why

This improves data integrity and makes it easier to build richer queries safely.

Proposed Change

  • Update SQLAlchemy model
  • Add Alembic migration
  • Verify existing API behavior still works

Acceptance Criteria

  • sessions.repository_id references repositories.id
  • Migration is included
  • Tests pass after migration

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions