First Practice
테이블 (16)
가게 (Store)
- store_id (가게 식별자) — auto_increment — 기본 키 — NOT NULL
- name (가게 이름) — NOT NULL
- address (가게 주소) — NOT NULL
- region_id (지역 식별자) — auto_increment — 외래 키 → 지역.region_id — NOT NULL
공지 알람 (notice_alarm)
- 공지 알람 식별자 (id) — auto_increment — 기본 키 — NOT NULL
- 공지하다 (is_confirmed) — NOT NULL
- created_at — NOT NULL
- updated_at — NOT NULL
- 제목 (title) — NOT NULL
- 내용 (body) — NOT NULL
- 사용자 식별자 (id2) — auto_increment — 외래 키 → 사용자.사용자 식별자 — NOT NULL
마케팅 알람 (marketing_alarm)
- 마케팅 알람 식별자 (id) — auto_increment — 기본 키 — NOT NULL
- 공지하다 (is_confirmed) — NOT NULL
- created_at — NOT NULL
- updated_at — NOT NULL
- 제목 (tile) — NOT NULL
- 내용 (body) — NOT NULL
- 사용자 식별자 (id2) — auto_increment — 외래 키 → 사용자.사용자 식별자 — NOT NULL
미션 (Mission)
- mission_id (미션 식별자) — auto_increment — 기본 키 — NOT NULL
- mission_title (미션 제목) — NOT NULL
- mission_content (미션 내용) — NOT NULL
- reward_point (적립 포인트)
- is_active (미션하다) — NOT NULL
- store_id (가게 식별자) — auto_increment — 외래 키 → 가게.store_id — NOT NULL
빌리기 (rent)
- 빌리기 식별자 (id) — auto_increment — 기본 키 — NOT NULL
- created_at — NOT NULL
- updated_at — NOT NULL
- 책 식별자 (id2) — auto_increment — 외래 키 → 책.책 식별자 — NOT NULL
- 사용자 식별자 (id3) — auto_increment — 외래 키 → 사용자.사용자 식별자 — NOT NULL
사용자 (user)
- 사용자 식별자 (id) — auto_increment — 기본 키 — NOT NULL
- 이름 (name) — NOT NULL
- 닉네임 (nickname) — NOT NULL
- 전화번호 (telephone) — NOT NULL
- 성별 (gender) — NOT NULL
- created_at — NOT NULL
- updated_at — NOT NULL
- status — NOT NULL
- inactive_date — NOT NULL
사용자 (User)
- user_id (사용자 식별자) — auto_increment — 기본 키 — NOT NULL
- name (이름) — NOT NULL
- gender (성별) — NOT NULL
- date (생년월일) — NOT NULL
- address (주소) — NOT NULL
- created_at (생성 시간) — NOT NULL
- updated_at (수정 시간) — NOT NULL
사용자 미션 (User_Misson)
- user_mission_id (사용자 미션 식별자) — auto_increment — 기본 키 — NOT NULL
- status (상태) — NOT NULL
- complete (완료) — NOT NULL
- mission_id (미션 식별자2) — auto_increment — 외래 키 → 미션.mission_id — NOT NULL
- user_id (사용자 식별자) — auto_increment — 외래 키 → 사용자.user_id — NOT NULL
좋아요 (likes)
- 좋아요 식별자 (id) — auto_increment — 기본 키 — NOT NULL
- created_at — NOT NULL
- updated_at — NOT NULL
- 책 식별자 (id2) — auto_increment — 외래 키 → 책.책 식별자 — NOT NULL
- 사용자 식별자 (id3) — auto_increment — 외래 키 → 사용자.사용자 식별자 — NOT NULL
지역 (Region)
- region_id (지역 식별자) — auto_increment — 기본 키 — NOT NULL
- name (지역 이름) — NOT NULL
지역별 달성 (UserRegionProgress)
- URP_id (지역별 달성 식별자) — auto_increment — 기본 키 — NOT NULL
- cleared_count (성공 횟수)
- bonus_reward (보너스) — auto_increment
- updated_at (수정 시간) — NOT NULL
- user_id (사용자 식별자) — auto_increment — 외래 키 → 사용자.user_id — NOT NULL
- region_id (지역 식별자) — auto_increment — 외래 키 → 지역.region_id — NOT NULL
책 (book)
- 책 식별자 (id) — auto_increment — 기본 키 — NOT NULL
- 제목 (title) — NOT NULL
- 설명 (content) — NOT NULL
- created_at — NOT NULL
- updated_at — NOT NULL
- 책 종류 식별자 (id2) — auto_increment — 외래 키 → 책 종류.책 종류 식별자 — NOT NULL
책 종류 (book_category)
- 책 종류 식별자 (id) — auto_increment — 기본 키 — NOT NULL
- name — NOT NULL
- created_at — NOT NULL
- updated_at — NOT NULL
책 해시태그 (book_hash_tag)
- 책 해시태그 식별자 (id) — auto_increment — 기본 키 — NOT NULL
- 해시태그 식별자 (id2) — auto_increment — 외래 키 → 해시태그.해시태그 식별자 — NOT NULL
- 책 식별자 (id3) — auto_increment — 외래 키 → 책.책 식별자 — NOT NULL
포인트 지급 (PointHistory)
- point_id (포인트 지급 식별자) — auto_increment — 기본 키 — NOT NULL
- point_amount (포인트 양)
- point_type (포인트 종류) — NOT NULL
- created_at (생성 시간) — NOT NULL
- user_id (사용자 식별자) — auto_increment — 외래 키 → 사용자.user_id — NOT NULL
해시태그 (hash_tag)
- 해시태그 식별자 (id) — auto_increment — 기본 키 — NOT NULL
- 아룸 (name) — NOT NULL
- created_at — NOT NULL
- updated_at — NOT NULL