UOS-CONNECTION

Tables (5)

Chat (chat)

  • chat_id (Key) — BIGINT — Primary key — NOT NULL
  • user_id (Key2) — BIGINT — Foreign key → User.user_id — NOT NULL
  • other_user_id (상대 유저) — BIGINT
  • unread_message_cnt (읽지 않은 메시지 개수) — INT
  • created_at (생성 시각) — TIMESTAMP
  • updated_at (업데이트 시각) — TIMESTAMP

Message (message)

  • message_id (Key) — BIGINT — Primary key — NOT NULL
  • chat_id (Key2) — BIGINT — Foreign key → Chat.chat_id — NOT NULL
  • user_id (Key3) — BIGINT — Foreign key → Chat.user_id — NOT NULL
  • content (메시지) — VARCHAR(255)
  • created_at (생성 시각) — TIMESTAMP
  • updated_at (업데이트 시각) — TIMESTAMP

Post (post)

  • post_id (Key) — BIGINT — Primary key — NOT NULL
  • user_id (Key2) — BIGINT — Foreign key → User.user_id — NOT NULL
  • title (포스트 제목) — VARCHAR(255)
  • content (포스트 설명) — VARCHAR(255)
  • image (포스트 사진) — VARCHAR(255)
  • label (포스트 라벨) — VARCHAR(255)
  • created_at (생성 시각) — TIMESTAMP
  • updated_at (업데이트 시각) — TIMESTAMP

User (user)

  • user_id (Key) — BIGINT — Primary key — NOT NULL
  • nickname (이름) — VARCHAR(255)
  • password (비밀번호) — VARCHAR(50)
  • email (이메일) — VARCHAR(50)
  • image (이미지) — VARCHAR(255)
  • score (평점) — FLOAT
  • desc (한 줄 소개) — VARCHAR(255)
  • report (신고 당한 횟수) — INT
  • favorite_post (즐겨 찾기 게시글 아이디 모음) — VARCHAR(255)
  • created_at (생성 시각) — TIMESTAMP
  • updated_at (업데이트 시각) — TIMESTAMP

User_info (user_info)

  • info_id (Key) — BIGINT — Primary key — NOT NULL
  • user_id (Key2) — BIGINT — Foreign key → User.user_id — NOT NULL
  • type (타입) — ENUM
  • content (정보) — VARCHAR(255)