questrip

Tables (18)

address (Untitled2)

    hint (힌트)

    • 아이디 (id) — BIGINT — Primary key — NOT NULL
    • 미션 아이디 (mission_id) — BIGINT — Foreign key → mission.id — NOT NULL
    • 유저 아이디 (user_id) — BIGINT — Foreign key → user.아이디 — NOT NULL
    • 힌트 내용 (description) — VARCHAR(255)

    hint_media (Untitled)

    • 아이디 (id) — BIGINT — Primary key — NOT NULL
    • 힌트 아이디 (hint_id) — BIGINT — Foreign key → hint.아이디 — NOT NULL
    • 미디어 주소 (url) — VARCHAR(255)
    • 미디어 타입 (type) — enum

    host (호스트)

    • 아이디 (id) — BIGINT — Primary key — NOT NULL
    • 유저 아이디 (user_id) — BIGINT — Foreign key → user.아이디 — NOT NULL
    • 인증여부 (is_certified) — enum
    • 회원등급 (grade) — enum

    mission (미션)

    • id — BIGINT — Primary key — NOT NULL
    • 퀘스트아이디 (quest_id) — BIGINT — Foreign key → quest.아이디 — NOT NULL
    • 미션 성공 조건 (term) — enum
    • 미션 내용 (description) — LONGTEXT

    mission_media (Untitled3)

    • 아이디 (id) — BIGINT — Primary key — NOT NULL
    • 미션 아이디 (mission_id) — BIGINT — Foreign key → mission.id — NOT NULL
    • 미디어 주소 (url) — VARCHAR(255)
    • 미디어 타입 (type) — enum

    quest (퀘스트)

    • 아이디 (id) — BIGINT — Primary key — NOT NULL
    • 호스트 아이디 (host_id) — BIGINT — Foreign key → host.아이디 — NOT NULL
    • 번들 아이디 (quest_bundle_id) — BIGINT — Foreign key → quest_bundle.아이디 — NOT NULL
    • 카테고리 (category) — enum
    • 퀘스트 내용 (description) — LONGTEXT
    • 경도 (longitude) — VARCHAR(255)
    • 위도 (latitude) — VARCHAR(255)
    • 주소 (address) — VARCHAR(255)
    • 지역명1 (region_1depth_name) — VARCHAR(255)
    • 지역명2 (region_2depth_name) — VARCHAR(255)
    • 지역명3 (region_3depth_name) — VARCHAR(255)
    • 도로명 (road_name) — VARCHAR(255)
    • 건물 본번 (main_building_no) — VARCHAR(255)
    • 건물 부번 (sub_building_no) — VARCHAR(255)
    • 건물 이름 (building_name) — VARCHAR(255)
    • 우편번호 (zipcode) — VARCHAR(5)
    • 생성일자 (created_at) — DATETIME
    • 수정일자 (modified_at) — DATETIME

    quest_bundle (번들)

    • 아이디 (id) — BIGINT — Primary key — NOT NULL
    • Field

    quest_image (퀘스트이미지)

    • 아이디 (id) — BIGINT — Primary key — NOT NULL
    • 퀘스트 아이디 (quest_id) — BIGINT — Foreign key → quest.아이디 — NOT NULL
    • 이미지 주소 (url) — VARCHAR(255)

    quest_info (퀘스트 정보)

    • Key — Primary key — NOT NULL

    subscription (구독정보)

    • 아이디 (id) — BIGINT — Primary key — NOT NULL
    • 아이디 (user_id) — BIGINT — Foreign key → user.아이디 — NOT NULL
    • 결제 일자 (created_at) — DATETIME
    • 결제 수단 (payment) — enum?
    • 결제 금액 (price) — INT

    user (유저)

    • 아이디 (id) — BIGINT — Primary key — NOT NULL
    • 유저 이메일 (email) — VARCHAR(255)
    • 핸드폰 번호 (phone_number) — VARCHAR(255)
    • 비밀번호 (password) — VARCHAR(255)
    • 유저권한 (role) — enum
    • 이름 (username) — VARCHAR(255)
    • 닉네임 (nickname) — VARCHAR(255)
    • 가입일시 (created_at) — DATETIME
    • 활성상태 (status) — enum

    user_accept_quest (유저 수락 퀘스트)

    • 아이디 (id) — BIGINT — Primary key — NOT NULL
    • 유저 아이디 (user_id) — BIGINT — Foreign key → user.아이디 — NOT NULL
    • 시작일시 (started_at) — DATETIME
    • 완료일시 (cleared_at) — DATETIME
    • 상태 (status) — enum
    • 번들 아이디 (quest_bundle_id) — BIGINT — Foreign key → quest_bundle.아이디 — NOT NULL

    user_deny_quest (유저 거절 퀘스트)

    • 아이디 (id) — BIGINT — Primary key — NOT NULL
    • 유저 아이디 (user_id) — BIGINT — Foreign key → user.아이디 — NOT NULL
    • 퀘스트 아이디 (quest_id) — BIGINT — Foreign key → quest.아이디 — NOT NULL
    • 거절일시 (denied_at) — DATETIME

    user_mission (유저 미션 기록)

    • 아이디 (id) — BIGINT — Primary key — NOT NULL
    • 유저 아이디 (user_id) — BIGINT — Foreign key → user.아이디 — NOT NULL
    • 미션 아이디 (mission_id) — BIGINT — Foreign key → mission.id — NOT NULL
    • 미션 시작 일시 (started_at) — DATETIME
    • 미션 완료 일시 (cleared_at) — DATETIME
    • 미션 포기 여부 (is_give_up) — enum

    user_mission_hint (유저 미션 수행 중 사용한 힌트)

    • 아이디 (id) — BIGINT — Primary key — NOT NULL
    • 유저 미션 아이디 (user_mission_id) — BIGINT — Foreign key → user_mission.아이디 — NOT NULL
    • 힌트 아이디 (hint_id) — BIGINT — Foreign key → hint.아이디 — NOT NULL
    • 힌트 사용 일시 (started_at) — DATETIME

    user_mission_media (유저 미션 미디어)

    • 아이디 (id) — BIGINT — Primary key — NOT NULL
    • 유저미션 아이디 (user_mission_id) — BIGINT — Foreign key → user_mission.아이디 — NOT NULL
    • 미디어 주소 (url) — VARCHAR(255)
    • 타입 (type) — enum

    user_prefer (유저선호)

    • 아이디 (id) — BIGINT — Primary key — NOT NULL
    • 유저 아이디 (user_id) — BIGINT — Foreign key → user.아이디 — NOT NULL
    • 음식선호 (food) — enum
    • 음료선호 (drink) — enum
    • 이동거리 (이거 변수 뭐하지) — TINYINT
    • 액티비티 (activity) — enum