Bubble Chat
Tables (4)
friend (친구 관계)
- idx (고유 idx 값) — Primary key — NOT NULL
- email (이메일) — Foreign key → user.email — NOT NULL
- friend_email (친구의 이메일)
room (방 목록)
- idx (고유 idx 값) — Primary key — NOT NULL
- admin (방장) — Foreign key → user.email — NOT NULL
- room_name (방 이름)
- people (방 인원 수)
- photo_path (방 사진)
user (사용자)
- email (이메일) — Primary key — NOT NULL
- name (닉네임)
- photo_path (프로필 사진)
user_in_room (소속된 방 목록)
- idx (고유 idx 값) — Primary key — NOT NULL
- room_idx (방 고유 idx 값) — Foreign key → room.idx — NOT NULL
- email (이메일) — Foreign key → user.email — NOT NULL