Discord

Tables (6)

BinaryContent (파일)

  • 아이디 (id) — UUID — Primary key — NOT NULL
  • 생성날짜 (createdAt) — Instant
  • 파일명 (name) — String
  • Mime타입 (contentType) — String
  • 바이너리데이터 (data) — byte[]
  • Field
  • Field2

Channel (채널)

  • 채널 아이디 (id) — UUID — Primary key — NOT NULL
  • 생성날짜 (createdAt) — Instant
  • 수정날짜 (updatedAt) — Instant
  • 이름 (name) — String
  • 주제 (topic) — String
  • 채널 타입 (type) — ChannelType
  • 설명 (description) — String

Message (메세지)

  • 메세지 아이디 (id) — UUID — Primary key — NOT NULL
  • 유저아이디 (userId) — UUID — Foreign key → User.유저아이디 — NOT NULL
  • 채널 아이디 (channelId) — UUID — Foreign key → Channel.채널 아이디 — NOT NULL
  • 아이디 (fileId) — UUID — Foreign key → BinaryContent.아이디 — NOT NULL
  • 생성날짜 (createdAt) — Instant
  • 수정날짜 (updatedAt) — Instant
  • 내용 (content) — String

ReadStatus (읽음 상태)

  • 아이디 (id) — UUID — Primary key — NOT NULL
  • 유저아이디 (userId) — UUID — Foreign key → User.유저아이디 — NOT NULL
  • 채널 아이디 (channelId) — UUID — Foreign key → Channel.채널 아이디 — NOT NULL
  • 마지막 읽은 시간 (lastReadAt) — Instant
  • 수정날짜 (updatedAt) — Instant
  • 생성날짜 (createdAt) — Instant

User (사용자)

  • 유저아이디 (id) — UUID — Primary key — NOT NULL
  • 프로필이미지 (profileId) — UUID — Foreign key → BinaryContent.아이디 — NOT NULL
  • 수정날짜 (updatedAt) — Instant
  • 생성날짜 (createdAt) — Instant
  • 이름 (name) — String
  • 이메일 (email) — String
  • 비밀번호 (password) — String

UserStatus (온라인 여부)

  • 아이디 (id) — UUID — Primary key — NOT NULL
  • 유저아이디 (userId) — UUID — Foreign key → User.유저아이디 — NOT NULL
  • 생성날짜 (createdAt) — Instant
  • 수정날짜 (updatedAt) — Instant
  • 마지막접속시간 (lastAccessedAt) — Instant