Hyodori
테이블 (12)
GDS설문문항 (gds_questions)
- gds_id — bigint — 기본 키 — NOT NULL
- 질문 (question) — text
- 질문유형 (category) — enum
- 생성일 (created_at) — datetime(6)
GDS응답 (user_gds_responses)
- response_id — bigint — 기본 키 — NOT NULL
- gds_id — bigint — 외래 키 → GDS설문문항.gds_id — NOT NULL
- user_id — bigint — 외래 키 → user.user_id — NOT NULL
- 설문응답 (response) — enum
- 응답날짜 (response_at) — date
- 사이클 (cycle) — int
user
- user_id — bigint — 기본 키 — NOT NULL
- 사용자 이름 (name) — varchar(20)
- 전화번호 (phone_number) — varchar(15)
- 비밀번호 (password) — varchar(255)
- 생성일 (created_at) — datetime(6)
- 수정일 (updated_at) — datetime(6)
user_mission (Untitled)
- user_mission_id — bigint — 기본 키 — NOT NULL
- mission_id (mission_id2) — bigint — 외래 키 → 미션.mission_id — NOT NULL
- user_id — bigint — 외래 키 → user.user_id — NOT NULL
- 완료여부 (is_done) — boolean
- 리마인드 여부 (is_reminded) — boolean
- 완료시간 (completed_at) — datetime(6)
- 생성일 (created_at) — datetime(6)
관심사항목 (interest)
- interest_id — bigint — 기본 키 — NOT NULL
- 관심사명 (interest_name) — varchar(40)
- 생성일 (created_at) — datetime(6)
- 수정일 (updated_at) — datetime(6)
긴급대응정보 (emergency_info)
- emergency_info_id — bigint — 기본 키 — NOT NULL
- 혈액형 (blood_type) — enum
- 복용약물 (medications) — text
- 병력 (medical_history) — text
- 자택주소 (address) — varchar(255)
- 긴급연락이름 (emergency_contact_name) — varchar(20)
- 긴급연락번호 (emergency_contact_phone) — varchar(15)
- 생성일 (created_at) — datetime(6)
- 수정일 (updated_at) — datetime(6)
- user_id — bigint — 외래 키 → user.user_id — NOT NULL
마음분석 (mind_report)
- report_id — bigint — 기본 키 — NOT NULL
- user_id — bigint — 외래 키 → user.user_id — NOT NULL
- 주차 (report_week) — date
- 총점 (total_score) — int
- 만족도점수 (satisfaction) — int
- 흥미점수 (interest) — int
- 긍정점수 (positivity) — int
- 감정점수 (emotion) — int
- 자존감점수 (self_esteem) — int
- 건강점수 (health) — int
- 생성일 (created_at) — datetime(6)
미션 (mission)
- mission_id — bigint — 기본 키 — NOT NULL
- 미션명 (mission_name) — varchar(20)
- 미션 카테고리 (mission_category) — enum
- 생성일 (created_at) — datetime(6)
사용자개인정보 (personal_info)
- personal_info_id — bigint — 기본 키 — NOT NULL
- 기상시간 (wakeup_time) — time
- 취침시간 (sleep_time) — time
- 아침식사시간 (breakfast_time) — time
- 점심식사시간 (lunch_time) — time
- 저녁식사시간 (dinner_time) — time
- 복약시간 (medicine_time) — time
- 생성일 (created_at) — datetime(6)
- 수정일 (updated_at) — datetime(6)
- user_id — bigint — 외래 키 → user.user_id — NOT NULL
사용자의 관심사 (user_interest)
- interest_id — bigint — 외래 키 → 관심사항목.interest_id — NOT NULL
- user_id — bigint — 외래 키 → user.user_id — NOT NULL
- 생성일 (created_at) — datetime(6)
- 수정일 (updated_at) — datetime(6)
알림 (notification)
- notification_id — bigint — 기본 키 — NOT NULL
- user_id — bigint — 외래 키 → user.user_id — NOT NULL
- 알림종류 (notification_type) — enum
- 알림내용 (notification_content) — string
- 생성일 (created_at) — datetime
- 확인여부 (notification_read) — boolean
행복처방 (happy_prescribe)
- prescribe_id — bigint — 기본 키 — NOT NULL
- 현재상태 (status) — text
- 행복처방 (prescribe) — text
- report_id — bigint — 외래 키 → 마음분석.report_id — NOT NULL