Skip to content

Commit

Permalink
fix: user stop's relationship
Browse files Browse the repository at this point in the history
  • Loading branch information
tanguynicolas committed May 19, 2024
1 parent 09b5ebc commit 03fe238
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
30 changes: 30 additions & 0 deletions alembic/versions/00dc0e2586f0_fix_user_stop_s_relationship.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
"""Fix user stop's relationship
Revision ID: 00dc0e2586f0
Revises: c292109472f2
Create Date: 2024-05-19 17:42:31.962504
"""
from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision: str = '00dc0e2586f0'
down_revision: Union[str, None] = 'c292109472f2'
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
pass
# ### end Alembic commands ###


def downgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
pass
# ### end Alembic commands ###
1 change: 1 addition & 0 deletions src/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,4 @@ class User(Base):

city: Mapped[City] = relationship(back_populates="users")
zone: Mapped[Zone] = relationship(back_populates="users")
stop: Mapped[Stop] = relationship(back_populates="users")

0 comments on commit 03fe238

Please sign in to comment.