Skip to content

Conversation

@tgyuuAn
Copy link
Member

@tgyuuAn tgyuuAn commented May 19, 2025

1. 🔥 변경된 내용

  • userId에 따라 Room 다중 사용자 구분
2025-05-205.05.34-ezgif.com-resize-video.mov

2. 💡 알게된 부분

  • 하나의 어플에서 여러명의 사용자를 수용하는 어플일 때, 안드로이드 Room은 하나의 DB를 이용해야 하므로 userId를 PrimaryKey에 추가해서 이를 관리한다.




  • 복합키를 사용할 경우 Relation으로 묶기가 불가능. Relation은 단일 컬럼에 대해서만 관계를 표현할 수 있음.
  • 이럴 경우에는 Query로 직접 가져와서 매핑해줘야 함.
image

@tgyuuAn tgyuuAn self-assigned this May 19, 2025
@tgyuuAn tgyuuAn added 기능 ⚒️ 새로운 기능 구현 ⚒️ 새롭게 알게 됨 📖 나 tgyuu가 새롭게 알게된 부분 📖 labels May 19, 2025
@tgyuuAn tgyuuAn merged commit 6fc38b6 into develop May 20, 2025
1 check passed
@tgyuuAn tgyuuAn deleted the feature/IDLE-000 branch May 20, 2025 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

기능 ⚒️ 새로운 기능 구현 ⚒️ 새롭게 알게 됨 📖 나 tgyuu가 새롭게 알게된 부분 📖

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants