erd_Anibuddy

테이블 (4)

ChatRoom (채팅방)

  • chatRoomId (Key) — 기본 키 — NOT NULL
  • UserId (Key2) — 외래 키 → 기존UserTB.UserId — NOT NULL
  • ownerId (Key3) — 외래 키 → 기존ownerTB.ownerId — NOT NULL

Message (채팅 메세지)

  • MessageId (Key) — 기본 키 — NOT NULL
  • chatRoomId (Key3) — 외래 키 → ChatRoom.chatRoomId — NOT NULL
  • content (내용)
  • created_at (생성일시)
  • status (읽음여부)
  • role (역할)

기존UserTB (Untitled)

  • UserId (Key) — 기본 키 — NOT NULL
  • name (이름)

기존ownerTB (Untitled2)

  • ownerId (Key) — 기본 키 — NOT NULL
  • name (Field)