B-6

Tables (5)

QnA

  • Key — Primary key — NOT NULL
  • 작성자 (client) — Foreign key → users.Key — NOT NULL
  • 제목 (qna_title) — varchar
  • 내용 (qna_content) — text
  • 작성날짜 (qna_created_at) — datetime
  • 수정날짜 (qna_updated_at) — datetime

challenges

  • Key — Primary key — NOT NULL
  • 작성자 (writer) — int — Foreign key → users.Key — NOT NULL
  • 제목 (title) — varchar
  • 챌린지명 (challenge_name) — varchar
  • 장르 (challenge_genre) — varchar
  • 내용 (content) — text
  • 이미지 (challenge_image) — img
  • 작성날짜 (challenge_created_at) — datetime
  • 수정날짜 (challenge_updated_at) — datetime

comments

  • Key — Primary key — NOT NULL
  • 해당 챌린지 (selected_challenge) — int — Foreign key → challenges.Key — NOT NULL
  • 작성자 (comment_writer) — int — Foreign key → users.Key — NOT NULL
  • 댓글 내용 (comment_content) — text
  • 이미지 (comment_image) — img
  • 작성날짜 (comment_created_at) — datetime
  • 수정날짜 (comment_updated_at) — datetime

mypages

  • Key — Primary key — NOT NULL
  • 유저이름 (userkey) — int — Foreign key → users.Key — NOT NULL
  • 챌린지 키 (challenge_key) — int — Foreign key → challenges.Key — NOT NULL
  • QnA 키 (qna_key) — int — Foreign key → QnA.Key — NOT NULL
  • 댓글 키 (comment_key) — int — Foreign key → comments.Key — NOT NULL

users

  • Key — Primary key — NOT NULL
  • 유저이름 (username) — varchar — NOT NULL
  • 이메일 (email) — varchar
  • 비밀번호 (password) — varchar
  • 가입일 (user_created_at) — datetime