chatroom

테이블 (4)

사용자 (Untitled)

  • 로컬 이메일 (email) — NULL
  • SNS 아이디 (snsId) — NULL
  • 비밀번호 (password) — NULL
  • 로그인 전략 (strategy) — NOT NULL
  • 닉네임 (nickname) — NOT NULL
  • 사용자 사진 (user_img) — NULL
  • 사용자 설명 (user_desc) — NULL

채팅 (Untitled4)

  • 채팅 아이디 (char_id) — NOT NULL — 기본 키 — NOT NULL
  • 메세지 아이디 (message_id) — NOT NULL
  • 송신 유저 (send_id)
  • 수신 유저 (recipient_id)
  • 내용 (context)
  • 보낸시간 (timestamp)

채팅방 (Untitled2)

  • 채팅방 아이디 (chatroom_id) — NOT NULL — 기본 키 — NOT NULL
  • 채팅방 이름 (chatroom_name)
  • 채팅방 커버 (chatroom_img)
  • 장소 (chatroom_place)

채팅방-멤버 (Untitled3)

  • 채팅방 아이디 (chatroom_id) — NOT NULL — 기본 키 — NOT NULL
  • 채팅방 아이디 (chatroom_id2) — NOT NULL — 외래 키 → 채팅방.채팅방 아이디 — NOT NULL