example

Tables (7)

Answer (Untitled7)

  • answer_id (답변 기본 키) — BIGINT — Primary key — NOT NULL
  • Field

Member (사용자)

  • member_id (사용자 기본 키) — BIGINT — Primary key — NOT NULL
  • username (사용자 이름) — VARCHAR
  • created_at (생성 시간) — TIMESTAMP
  • updated_at (수정 시간) — TIMESTAMP

Post (게시글)

  • post_id (게시글 기본 키) — BIGINT — Primary key — NOT NULL
  • member_id (사용자 외래 키) — BIGINT — Foreign key → Member.member_id — NOT NULL
  • title (제목) — VARCHAR
  • content (내용) — VARCHAR
  • created_at (작성 시간) — TIMESTAMP
  • updated_at (수정 시간) — TIMESTAMP

Post-Tag (Untitled5)

  • post_tag_id (게시글 태그 기본 키) — BIGINT — Primary key — NOT NULL
  • post_id (게시글 기본 키) — BIGINT — Foreign key → Post.post_id — NOT NULL

Question (Untitled6)

  • question_id (질문 기본 키) — BIGINT — Primary key — NOT NULL
  • created_at (작성 시간) — TIMESTAMP
  • updated_at (수정 시간) — TIMESTAMP
  • content (Field) — VARCHAR

Scrap (스크랩)

  • scrap_id (스크랩 기본 키) — BIGINT — Primary key — NOT NULL
  • member_id (사용자 외래 키) — BIGINT — Foreign key → Member.member_id — NOT NULL
  • Field

Tag (Untitled4)

  • tag_id (태그 기본 키) — BIGINT — Primary key — NOT NULL
  • post_tag_id (게시글 태그 기본 키) — BIGINT — Foreign key → Post-Tag.post_tag_id — NOT NULL
  • post_id (게시글 기본 키) — BIGINT — Foreign key → Post-Tag.post_id — NOT NULL