Chat - ProjectInTheClass/MusicWith GitHub Wiki

μ†Œκ°œ

Chatting 정보λ₯Ό ν‘œν˜„ν•˜λŠ” Structure

κΈ°λŠ₯

  • iteration 을 μœ„ν•΄ Identifiable 속성을 μ§€μ •ν•©λ‹ˆλ‹€.
  • id: μ±„νŒ…μ˜ 고유 id λ²ˆν˜Έμž…λ‹ˆλ‹€.
  • user: μ±„νŒ…μ„ μž…λ ₯ν•œ User의 μ •λ³΄μž…λ‹ˆλ‹€.
  • text: μ±„νŒ…μ˜ Text μ •λ³΄μž…λ‹ˆλ‹€.
  • timeSong: Track μ—μ„œ μ±„νŒ…μ΄ 생성될 λ•Œμ˜ Playtime μž…λ‹ˆλ‹€.
  • parentId: ν•΄λ‹Ή μ±„νŒ…μ΄ λ‹΅μž₯일 경우, λ‹΅μž₯의 λͺ©ν‘œ μ±„νŒ…μ˜ id μž…λ‹ˆλ‹€. Optional type 으둜, λ‹΅μž₯이 아닐 경우 nil μž…λ‹ˆλ‹€.