Ask_Hub

Tables (8)

Comment (댓글)

  • Key (comment_id) — bigint — Primary key — NOT NULL
  • Key (post_id) — bigint — Foreign key → Post.Key — NOT NULL
  • Key (user_id) — bigint — Foreign key → User.Key — NOT NULL
  • Key (parent_id) — bigint — Foreign key → Comment.Key — NOT NULL
  • 내용 (content) — varchar(200)
  • 익명 여부 (is_anonymous) — boolean
  • 생성일자 (created_at) — datetime
  • 수정일자 (updated_at) — datetime

Convention (컨벤션)

  • Key (convention_id) — bigint — Primary key — NOT NULL
  • Key (team_id) — bigint — Foreign key → Team.Key — NOT NULL
  • 파일 (file_url) — varchar(30)
  • 이름 (name) — varchar(100)
  • RAG 아이디 (source_id) — varchar(200)
  • 생성일자 (created_at) — datetime
  • 수정일자 (updated_at) — datetime

Message (메시지)

  • Key (message_id) — bigint — Primary key — NOT NULL
  • Key (session_id) — bigint — Foreign key → Session.Key — NOT NULL
  • 내용 (content) — text
  • 역할 (role) — enum
  • UUID (uuid) — String
  • 생성일자 (created_at) — datetime
  • 수정일자 (updated_at) — datetime

Post (게시물)

  • Key (post_id) — bigint — Primary key — NOT NULL
  • Key (user_id) — bigint — Foreign key → User.Key — NOT NULL
  • Key (comment_id) — bigint — Foreign key → Comment.Key — NOT NULL
  • 제목 (title) — varchar(30)
  • 내용 (content) — varchar(200)
  • 사진 (image_url) — varchar(30)
  • 채택 여부 (is_resolved) — boolean
  • 익명 여부 (is_anonymous) — boolean
  • 포인트 (point) — int
  • 개발직군 (position) — enum
  • 생성일자 (created_at) — datetime
  • 수정일자 (updated_at) — datetime

RefreshToken (리프레시토큰)

  • Key (token_id) — bigint — Primary key — NOT NULL
  • Key (user_id) — bigint — Foreign key → User.Key — NOT NULL
  • 토큰 (token) — varchar(512)
  • 생성일자 (created_at) — datetime
  • 만료일자 (expires_at) — datetime

Session (세션)

  • Key (session_id) — bigint — Primary key — NOT NULL
  • Key (user_id) — bigint — Foreign key → User.Key — NOT NULL
  • Key (team_id) — bigint — Foreign key → Team.Key — NOT NULL
  • 세션 이름 (name) — varchar(30)
  • UUID (uuid) — String

Team (팀)

  • Key (team_id) — bigint — Primary key — NOT NULL
  • Key (user_id) — bigint — Foreign key → User.Key — NOT NULL
  • 팀 이름 (name) — varchar(30)

User (회원)

  • Key (user_id) — bigint — Primary key — NOT NULL
  • 이메일 (email) — varchar(30)
  • 비밀번호 (password) — varchar(20)
  • 이름 (name) — varchar(10)
  • 개발파트 (position)
  • 입사일자 (joined_date) — date
  • 포인트 (point) — int
  • 생성일자 (created_at) — datetime
  • 수정일자 (updated_at) — datetime
  • 삭제일자 (deleted_at) — datetime