semoThon-Survey
Tables (7)
Gifticon (tb_gifticon)
- 기프티콘 아이디 (gifticon_id) — NOT NULL — Primary key — NOT NULL
- 유저 아이디 (user_id) — NOT NULL — Foreign key → User.유저 아이디 — NOT NULL
- 기프티콘 제목 (user_balance) — NULL
- 기프티콘 url (Field)
Reward (tb_Reward)
- 설문조사 응답자 아이디 (reward_id) — NOT NULL — Primary key — NOT NULL
- 설문아이디 (survey_id) — NOT NULL — Foreign key → Survey.설문아이디 — NOT NULL
- 설문조사 응답자 아이디 (response_id) — NOT NULL — Foreign key → SurveyResponse.설문조사 응답자 아이디 — NOT NULL
- 기프티콘 URL 또는 코드 (reward_gift_url) — NULL
- 보상지급여부 (reward_status) — NOTNULL
- 보상지급일시 (reward_sent_at)
Survey (tb_survey)
- 설문아이디 (survey_id) — NOT NULL — Primary key — NOT NULL
- 유저 아이디 (user_id) — NOT NULL — Foreign key → User.유저 아이디 — NOT NULL
- 설문 제목 (survey_title) — NOT NULL
- 설문 설명 (survey_description) — NOTNULL
- 지급 보상 정보 (survey_reward) — NULL
- 설문 공유 url (survey_url) — NULL
- 설문 시작일 (survey_start_at) — NOTNULL
- 설문 종료일 (survey_end_at) — NOTNULL
- 활성화 여부 (survey_active) — NOTNULL
- 설문 생성일 (survey_created_at) — NOTNULL
SurveyAnswer (tb_answer)
- 응답별 개별 답변 ID (answer_id) — NOT NULL — Primary key — NOT NULL
- 설문조사 응답자 아이디 (response_id) — NOT NULL — Foreign key → SurveyResponse.설문조사 응답자 아이디 — NOT NULL
- 문항 아이디 (question_id) — NOT NULL — Foreign key → SurveyQuestion.문항 아이디 — NOT NULL
- 문항 답변 (answer_text) — NULL
SurveyQuestion (tb_question)
- 문항 아이디 (question_id) — NOT NULL — Primary key — NOT NULL
- 설문아이디 (survey_id) — NOT NULL — Foreign key → Survey.설문아이디 — NOT NULL
- 문항 내용 (question_text) — NOTNULL
- 문항 타입(객관식, 주관식) (question_type) — NOTNULL
- 문항 객관식 선택지 (question_options) — NULL
- 문한 번호 (question_order)
SurveyResponse (tb_response)
- 설문조사 응답자 아이디 (responder_id) — NOT NULL — Primary key — NOT NULL
- 설문아이디 (survey_id) — NOT NULL — Foreign key → Survey.설문아이디 — NOT NULL
- 응답자 연락처 (responder_number) — NULL
- 응답자 보상지급여부 (responder_rewarded) — NOTNULL
- 제출 일시 (responder_submitted_at)
User (tb_user)
- 유저 아이디 (user_id) — NOT NULL — Primary key — NOT NULL
- 유저 닉네임 (user_nickname) — NULL
- 유저 전화번호 (user_number) — NULL
- 유저 리워드 잔액 (user_balance) — NULL