survey_db
테이블 (4)
답변 (answers)
- id (Key) — int — 기본 키 — NOT NULL — auto_increment
- 답변내용 (answer_content) — string — NOT NULL — 길이 최소1자, 최대 20자
- 선택지 점수 (Field2) — int — NOT NULL
- question_id — int — 외래 키 → 문항.id — NOT NULL
문항 (questions)
- id — int — 기본 키 — NOT NULL — auto_increment
- 문항제목 (question_title) — string — NOT NULL — 길이 최소5자, 최대 20자
- survey_id — int — 외래 키 → 설문지.id — NOT NULL
선택지 (options)
- id — int — 기본 키 — NOT NULL — auto_increment
- 선택지 내용 (option_content) — string — NOT NULL — 길이 최소1자, 최대 20자
- 선택지 점수 (score) — int — NOT NULL
- question_id — int — 외래 키 → 문항.id — NOT NULL
설문지 (surveys)
- id — int — 기본 키 — NOT NULL — auto_increment
- 설문지제목 (title) — string — NOT NULL — 길이 최소5자, 최대 20자