Skip to content

Commit

Permalink
fix(room-conflict): primary key 변경 (room + user) (#57)
Browse files Browse the repository at this point in the history
* fix(room-conflict): primary key 변경 (room + user)

* chore: 불필요한 괄호 제거
  • Loading branch information
Mincheol Kim committed Aug 22, 2020
1 parent 3e354ea commit b1f687d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/apps/rooms/models/entity/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class Room(Base):
user_id: int = Column(
"user_id",
ForeignKey("users.uid", ondelete="CASCADE", onupdate="CASCADE"),
primary_key=True,
)
user: User = relationship(
"User",
Expand Down

0 comments on commit b1f687d

Please sign in to comment.