소이님 바톤터치

테이블 (6)

answer (답변)

  • 답변 아이디 (id) — int — 기본 키 — NOT NULL
  • 질문 아이디 (questionId) — int — 외래 키 → questions.질문 아이디 — NOT NULL
  • 답변 내용 (answerContent) — varchar(50)
  • 답변 번호 (answerNumber) — int
  • 답변 점수 (answerScore) — int
  • 생성 시간 (createdAt) — timestamp
  • 수정 시간 (updatedAt) — timestamp
  • 삭제 시간 (deletedAt) — timestamp

eachResponse (문답)

  • 문답 아이디 (id) — int — 기본 키 — NOT NULL
  • 응답 아이디 (responseId) — int — 외래 키 → responses.응답 아이디 — NOT NULL
  • 응답한 질문 (resQuestion) — varchar(50)
  • 응답한 답변 (resAnswer) — varchar(50)
  • 항목 점수 (resScore) — int
  • 생성시간 (createdAt) — timestamp
  • 수정시간 (updatedAt) — timestamp
  • 삭제시간 (deletedAt) — timestamp

participants (참가자)

  • 참가자 아이디 (id) — int — 기본 키 — NOT NULL
  • 참가자 이메일 (email) — string
  • 생성시간 (createdAt) — timestamp
  • 수정시간 (updatedAt) — timestamp
  • 삭제시간 (deletedAt) — timestamp

questions (질문)

  • 질문 아이디 (id) — int — 기본 키 — NOT NULL
  • 설문 아이디 (surveyId) — int — 외래 키 → surveys.설문 아이디 — NOT NULL
  • 질문 내용 (questionContent) — varchar(100)
  • 질문 번호 (questionNumber) — int
  • 생성 시간 (createdAt) — timestamp
  • 수정 시간 (updatedAt) — timestamp
  • 삭제 시간 (deletedAt) — timestamp

responses (응답한 설문)

  • 응답 아이디 (id) — int — 기본 키 — NOT NULL
  • 참가자 아이디 (participantId) — int — 외래 키 → participants.참가자 아이디 — NOT NULL
  • 설문 아이디 (surveyId) — int — 외래 키 → surveys.설문 아이디 — NOT NULL
  • 제출여부 (isSubmit) — boolean
  • 합산 점수 (sumScore) — int
  • 생성시간 (createdAt) — timestamp
  • 수정시간 (updatedAt) — timestamp
  • 삭제시간 (deletedAt) — timestamp

surveys (설문)

  • 설문 아이디 (id) — int — 기본 키 — NOT NULL
  • 설문 제목 (surveyTitle) — varchar(50)
  • 생성시간 (createdAt) — timestamp
  • 수정시간 (updatedAt) — timestamp
  • 삭제시간 (deletedAt) — timestamp