게임 투게더

테이블 (12)

Address extend Member (Enum type)

  • String (city)

CreatedData (Untitled)

  • LocalDate (create)
  • LocalDate (createUpdate)

FriendShip (친구)

  • Long (id) — PK — 기본 키 — NOT NULL
  • Long (id2) — FK — 외래 키 → User.Long — NOT NULL
  • Long (id3) — PK — 외래 키 → User.Long — NOT NULL
  • String (nicName)

Message (채팅)

  • Long (id) — PK — 기본 키 — NOT NULL
  • Long (teamId) — PK — 외래 키 → Team Room.Long — NOT NULL
  • Long (userId) — PK — 외래 키 → User.Long — NOT NULL
  • String (content)
  • Localdate (sendTime)
  • int (unread_count)

PointTranjection (포인트)

  • Long (id) — PK — 기본 키 — NOT NULL
  • int (dealPoint)
  • LocalDate (createDate)
  • String (history)
  • String (division)

Role (enum)

  • Long (id) — PK — 외래 키 → User.Long — NOT NULL
  • String (Reader)
  • String (User)

Team (팀)

  • Long (id) — PK — 기본 키 — NOT NULL
  • String (teamName)
  • String (teamcontent)
  • LocalDate (teamMeetTime)
  • int (reamCount)

Team Room (팀 방)

  • Long (id) — PK — 기본 키 — NOT NULL
  • Long (memberId) — PK — 외래 키 → User.Long — NOT NULL
  • Long (teamId) — PK — 외래 키 → Team.Long — NOT NULL
  • String (nicname)

UnreadMember (안 읽은 유저)

  • Long (id) — PK — 외래 키 → Message.Long — NOT NULL
  • Sring (userId)
  • Long (teamRoom)

User (유저)

  • Long (id) — PK — 기본 키 — NOT NULL
  • Long (id2) — PK — 외래 키 → PointTranjection.Long — NOT NULL
  • String (name)
  • int (phone)
  • String (nicName)
  • int (age)
  • int (password)
  • Adrees (address)
  • CreateData (createdata)
  • String (image)
  • String (userStatus)
  • int (point)

alarm (알림)

  • Long (id) — PK — 기본 키 — NOT NULL
  • Long (messageId) — PK — 외래 키 → Message.Long — NOT NULL
  • String (title)
  • String (content)
  • LocalDate (createDate)

board (커뮤니티)

  • Long (id) — PK — 기본 키 — NOT NULL
  • Long (id2) — PK — 외래 키 → User.Long — NOT NULL
  • String (nicName)
  • String (title)
  • String (content)
  • String (image)