chat

Tables (4)

auth_user (사용자)

  • id — Primary key — NOT NULL
  • 사용자 아이디 (username)
  • 비밀번호 (password)
  • 이름 (first_name)
  • 활성여부 (is_active)
  • 마지막 로그인 날짜 (last_login)
  • 가입일 (date_joined)

chat_message (채팅 메세지)

  • id — Primary key — NOT NULL
  • 채팅방 ID (chat_room_id) — Foreign key → chat_room.id — NOT NULL
  • 사용자 ID (user_id) — Foreign key → auth_user.id — NOT NULL
  • 메세지 (message)
  • 생성일 (created_at)

chat_room (채팅방)

  • id — Primary key — NOT NULL
  • 채팅방 명 (room_name)
  • 방상태 (status)
  • 수정일 (updated_at)
  • 생성일 (created_at)

chat_user (채팅방 사용자)

  • id — Primary key — NOT NULL
  • 채팅방 ID (chat_room_id) — Foreign key → chat_room.id — NOT NULL
  • 사용자 ID (user_id) — Foreign key → auth_user.id — NOT NULL
  • 생성일 (created_at)