UMC_Mission
Tables (9)
claim (Untitled8)
- id (식별자) — bigint — Primary key — NOT NULL
- user_id (사용자 식별자) — bigint — Foreign key → user.user_id — NOT NULL
- type_id (유형 식별자) — bigint — Foreign key → claim_type.type_id — NOT NULL
- img (이미지) — img_url
- title (제목) — text
- body (본문) — text
- created_at (생성 시간) — date
- updated_at (수정 시간) — date
claim_type (Untitled9)
- type_id (식별자) — bigint — Primary key — NOT NULL
- type_name (유형 이름) — varchar(10)
- created_at (생성 시간) — date
- updated_at (수정 시간) — date
favorite_food (Untitled3)
- id (식별자) — bigint — Primary key — NOT NULL
- user_id (사용자 식별자) — bigint — Foreign key → user.user_id — NOT NULL
- food_id (food 식별자) — bigint — Foreign key → food_category.food_id — NOT NULL
food_category (Untitled2)
- food_id (식별자) — bigint — Primary key — NOT NULL
- name (카테고리 이름) — varchar(20)
- created_at (생성 시간) — date
- updated_at (수정 시간) — date
mission (Untitled4)
- mission_id (미션 식별자) — bigint — Primary key — NOT NULL
- store_id (가게 식별자) — bigint — Foreign key → store.store_id — NOT NULL
- user_id (사용자 식별자) — bigint — Foreign key → user.user_id — NOT NULL
- point (포인트) — int
- amount (금액) — int
- status (상태) — enum('진행전', '진행중', '진행완료')
- isSuccessed (성공 여부) — boolean
- description (설명) — text
- mission_num (미션 달성 번호) — int
- due date (만료 시간) — date
- created_at (생성 시간) — date
- updated_at (수정 시간) — date
review (Untitled7)
- id (식별자) — bigint — Primary key — NOT NULL
- store_id (가게 식별자) — bigint — Foreign key → store.store_id — NOT NULL
- user_id (사용자 식별자) — bigint — Foreign key → user.user_id — NOT NULL
- rate (별점) — float
- img (이미지) — img_url
- description (설명) — text
- comment (답글) — text
- created_at (생성 시간) — date
- updated_at (수정 시간) — date
social (Untitled6)
- id (식별자) — bigint — Primary key — NOT NULL
- user_id (사용자 식별자) — bigint — Foreign key → user.user_id — NOT NULL
- SNS_id (SNS 아이디) — varchar(50)
- provider (SNS 종류) — ENUM(GOOGLE, NAVER, KAKAO)
- connected_at (연결 시간) — date
store (Untitled5)
- store_id (가게 식별자) — bigint — Primary key — NOT NULL
- food_id (음식 종류 식별자) — bigint — Foreign key → food_category.food_id — NOT NULL
- store_name (가게 이름) — varchar(30)
- store_img (가게 이미지) — img_url
- region (지역) — varchar(10)
- address (주소) — varchar(100)
- created_at (생성 시간) — date
- updated_at (수정 시간) — date
user (Untitled)
- user_id (사용자 식별자) — bigint — Primary key — NOT NULL
- user_name (이름) — varchar(10)
- nickname (닉네임) — varchar(10)
- email (이메일) — varchar(100)
- phone_num (전화번호) — varchar(11)
- gender (성별) — enum(MAN, WOMAN, NONE)
- profile_img (프로필 사진) — img_url
- birth (생년월일) — date
- address (주소) — varchar(100)
- point (포인트) — int
- achive_num (달성 미션 수) — int
- created_at (생성 시간) — date
- updated_at (수정 시간) — date
- inactive_date (비활성 시간) — date