UMC_Spring

테이블 (9)

Untitled (STORE)

  • Key (id) — bigint — 기본 키 — NOT NULL
  • Key (location_id) — bigint — 외래 키 → Untitled.Key — NOT NULL
  • Field (name) — varchar(50)
  • Field (address) — varchar(300)
  • Field (is_deleted) — boolean
  • Field (created_at) — datetime(6)
  • Field (updated_at) — datetime(6)

Untitled (MISSION)

  • Key (id) — bigint — 기본 키 — NOT NULL
  • Key (store_id) — bigint — 외래 키 → Untitled.Key — NOT NULL
  • Field (name) — varchar(100)
  • Field (point) — bigint
  • Field (is_deleted) — boolean
  • Field (created_at) — datetime(6)
  • Field (updated_at) — datetime(6)

Untitled (FAVORIT_CATEGORY)

  • Key (id) — bigint — 기본 키 — NOT NULL
  • Field (name) — varchar(100)
  • Field (is_deleted) — boolean
  • Field (created_at) — datetime(6)
  • Field (updated_at) — datetime(6)

Untitled (USER_FAVOR)

  • Key (id) — bigint — 기본 키 — NOT NULL
  • Key (user_id) — bigInt — 외래 키 → 사용자.아이디 — NOT NULL
  • Key (category_id) — bigint — 외래 키 → Untitled.Key — NOT NULL
  • Field (iis_deleted) — boolean
  • Field (created_at) — datetime(6)
  • Field (updated_at) — datetime(6)

Untitled (USER_REVIEW)

  • Key (id) — bigint — 기본 키 — NOT NULL
  • Key (user_mission_id) — bigint — 외래 키 → 유저 미션.아이디 — NOT NULL
  • Key (mission_id) — bigint — 외래 키 → 유저 미션.미션 아이디 — NOT NULL
  • Key (user_id) — bigInt — 외래 키 → 유저 미션.사용자아이디 — NOT NULL
  • Field (content) — text
  • Field (score) — float
  • Field (is_deleted) — boolean
  • Field (created_at) — datetime(6)
  • Field (updated_at) — datetime(6)

Untitled (LOCATION)

  • Key (id) — bigint — 기본 키 — NOT NULL
  • Field (name) — varchar(100)

사용자 (USER)

  • 아이디 (id) — bigint — 기본 키 — NOT NULL
  • 이름 (name) — int
  • 성별 (gender) — int
  • 생일 (birth) — datetime(6)
  • 주소 (address) — datetime(6)
  • 포인트 (point) — datetime(6)
  • 이메일 (email) — int
  • 전화번호 (phone_number) — varchar(100)
  • 비밀번호 (password) — int
  • 삭제여부 (is_deleted) — boolean
  • 생성일자 (created_at) — int
  • 수정일자 (updated_at) — datetime(6)

알림 (NOTICE)

  • 아이디 (id) — bigint — 기본 키 — NOT NULL
  • 사용자 아이디 (user_id) — bigint — 외래 키 → 사용자.아이디 — NOT NULL
  • 내용 (content) — int
  • 생성일자 (created_at) — int
  • 수정일자 (updated_at) — datetime(6)

유저 미션 (USER_MISSION)

  • 아이디 (id) — int — 기본 키 — NOT NULL
  • 사용자아이디 (user_id) — bigint — 외래 키 → 사용자.아이디 — NOT NULL
  • 미션 아이디 (mission_id) — bigint — 외래 키 → Untitled.Key — NOT NULL
  • Field (deadline) — datetime(6)
  • Field (state) — enum("도전 전", "도전 중", "미션 성공", "미션 실패"
  • Field (is_deleted) — boolean
  • Field (created_at) — datetime(6)
  • Field (updated_at) — datetime(6)