ready-very public

테이블 (20)

가게 (Store)

  • Key (store_idx) — long — 기본 키 — NOT NULL
  • Key (ceo_idx) — long — 외래 키 → 사장님.Key — NOT NULL
  • 번호 (phone)
  • 영업 시간 (time)
  • 가게 이름 (name)
  • 가게 주소 (address)
  • 가게 영업중 여부 (status) — boolean — 1영업중, 0 영업종료
  • 광고 이미지 (Field)
  • 회원 등급 (grade) — 회원 등급

가게사진 (Store_img)

  • Key (store_img_idx) — long — 기본 키 — NOT NULL
  • Key (store_idx) — 외래 키 → 가게.Key — NOT NULL
  • Field (img_url)
  • Field (img_size) — ENUM

사장님 (Ceo)

  • Key (ceo_idx) — long — 기본 키 — NOT NULL
  • 이메일 (email) — NOT NULL
  • 닉네임 (nick_name) — NOT NULL
  • 프로필 이미지 (image_url) — NOT NULL
  • 연령대 (age)
  • 생일 (brith) — NOT NULL
  • 전화번호 (phone) — NOT NULL
  • 계좌번호 (account_number) — NOT NULL
  • 소셜 로그인 타입 (social_type) — NOT NULL
  • 소셜 로그인 타입의 식별자 값 (social_id) — NOT NULL
  • 유저 상태 (status) — NOT NULL
  • 리프레시 토큰 (refresh_token)
  • 최종 로그인 (last_login)
  • 삭제 요청일 (delete_at)

사장님 입점신청 (CeoMetaInfo)

  • Key (ceo_metainfo_idx) — 기본 키 — NOT NULL
  • Field

식음료 (Foodie)

  • Key (foodie_idx) — long — 기본 키 — NOT NULL
  • Key (foodie_category_dix) — 외래 키 → 식음료 카테고리.Key — NOT NULL
  • 이름 (name) — NOT NULL
  • 카테고리 (category) — NOT NULL — 추후 식믕료 카테고리 분리 생각중
  • 매진 (soldout) — boolean — NOT NULL — 0 매진 안됨 1 매진됨
  • 가격 (price) — NOT NULL
  • 이미지 (Field)
  • 히트여부 (hit) — boolean — 1이면 히트 0이면 히트 아님
  • 테이크아웃 (take_out_price) — long

식음료 옵션 (Foodie_option)

  • Key (foodie_option_idx) — long — 기본 키 — NOT NULL
  • Key (foodie_option_category_idx) — 외래 키 → 식음료 옵션 카테고리.Key — NOT NULL
  • 이름 (name) — NOT NULL
  • 추가 가격 (price) — NOT NULL

식음료 옵션 카테고리 (Foodie_option_category)

  • Key (foodie_option_category_idx) — 기본 키 — NOT NULL
  • Key (foodie_idx) — long — 외래 키 → 식음료.Key — NOT NULL
  • 이름 (name) — NOT NULL
  • 필수여부 (required) — boolean — NOT NULL — 1필수 옵션, 0 그 외

식음료 카테고리 (Foodie_category)

  • Key (foodie_category_dix) — 기본 키 — NOT NULL
  • Key (store_idx) — long — 외래 키 → 가게.Key — NOT NULL
  • Field (name)

영수증 (Receipt)

  • Key (order_idx) — long — 외래 키 → 주문.Key — NOT NULL
  • Field (type) — varchar(255)
  • Field (currency)
  • Field2 (balanceAmount) — long
  • Field3 (suppliedAmount) — long
  • Field4 (status)
  • Field5 (requestedAt)
  • Field6 (approvedAt)
  • Field (lastTransactionKey)
  • Field2 (vat) — long
  • Field3 (taxFreeAmount) — long
  • Field4 (taxExemptionAmount) — long
  • Field5 (cancels)
  • Field6 (card)
  • Field7 (receipt)
  • Field8 (checkout)
  • Field9 (easyPay)
  • Field (country)
  • Field2 (failure)
  • Field3 (discount)
  • Field4 (virtualAccount)
  • Field (transfer)
  • Field2 (cashReceipt)
  • Field3 (cashReceipts)

유저 (User)

  • Key (user_idx) — long — 기본 키 — NOT NULL — auto_increase
  • 이메일 (email) — varchar(255) — NOT NULL — 로그인 이메일
  • 닉네임 (nick_name) — NOT NULL
  • 프로필이미지 (image_url) — NOT NULL
  • 연령대 (age)
  • 생일 (brith) — NOT NULL
  • 전화번호 (phone) — NOT NULL
  • 역할 (role) — NOT NULL
  • 소셜 로그인 타입 (social_type) — NOT NULL — 오어스 회사
  • 소셜 로그인 타입의 식별자 값 (social_id) — NOT NULL
  • 유저 상태 (status) — boolean — NOT NULL — 활성 상태1, 비활성화 0
  • 리프레시 토큰 (refresh_token) — 리프레시 토큰(임시)
  • 최종 로그인 (last_login) — DateTime — 마지막 로그인
  • 삭제 요청일 (delete_at) — dateTime — 삭제 요청일 (3개월후 소프트 삭제)
  • 포인트 (total_point) — long — NOT NULL — 포인트

이벤트 (Event)

  • Key (idx) — 기본 키 — NOT NULL
  • Field2 (main_img) — String — NOT NULL — 메인 이벤트 이미지 url
  • Field (redirect_url)
  • Field2 (is_active)

장바구니 (Cart)

  • Key (cart_idx) — long — 기본 키 — NOT NULL
  • Key (user_idx) — long — 외래 키 → 유저.Key — NOT NULL — auto_increase
  • Key (store_idx) — long — 외래 키 → 가게.Key — NOT NULL
  • Field (isOrdered) — boolean
  • Field2 (isDeleted) — boolean

장바구니 상세 (Cart_item)

  • Key (cart_item_idx) — 기본 키 — NOT NULL
  • Key (cart_idx) — long — 외래 키 → 장바구니.Key — NOT NULL
  • Key (foodie_idx) — long — 외래 키 → 식음료.Key — NOT NULL
  • 수량 (count) — long — NOT NULL

장바구니 옵션 (Cart_option)

  • Key (cart_option_idx) — long — 기본 키 — NOT NULL
  • Key (cart_item_idx) — 외래 키 → 장바구니 상세.Key — NOT NULL
  • Key (foodie_option_idx) — long — 외래 키 → 식음료 옵션.Key — NOT NULL
  • Key (foodie_option_category_idx) — 외래 키 → 식음료 옵션 카테고리.Key — NOT NULL

주문 (Order)

  • Key (order_idx) — long — 기본 키 — NOT NULL
  • Key (ceo_idx) — long — 외래 키 → 가게.Key — NOT NULL
  • Key (cart_idx) — long — 외래 키 → 장바구니.Key — NOT NULL
  • Key (user_idx) — long — 외래 키 → 유저.Key — NOT NULL — auto_increase
  • Key (coupon_idx) — 외래 키 → 쿠폰.Key — NOT NULL
  • Field (amount) — 결제 가격
  • Field (paymentKey) — 결제 키 값
  • Field (orderId) — NOT NULL — 주문 Id
  • Field (orderName)
  • Field (totalAmount) — 토스 결제 금액
  • Field (method) — 결제 방법
  • Field (orderNumber) — 주문 번호
  • Field2 (progress) — 주문 진행 상황
  • Field (point) — 사용 포인트

주문 상세 (Order_item)

  • Key (order_item_idx) — 기본 키 — NOT NULL
  • Key (foodie_idx) — long — 외래 키 → 식음료.Key — NOT NULL
  • 식음료 갯수 (count) — int

주문 상세 옵션 (Order_item_option)

  • Key (order_item_option_idx) — 기본 키 — NOT NULL
  • Key (order_item_idx) — 외래 키 → 주문 상세.Key — NOT NULL
  • Key (foodie_option_idx) — long — 외래 키 → 식음료 옵션.Key — NOT NULL
  • Key (foodie_option_category_idx) — 외래 키 → 식음료 옵션 카테고리.Key — NOT NULL

쿠폰 (Coupon)

  • Key (coupon_idx) — 기본 키 — NOT NULL
  • Key (coupon_detail_idx) — long — 외래 키 → 쿠폰 상세.Key — NOT NULL
  • Key (user_idx) — long — 외래 키 → 유저.Key — NOT NULL — auto_increase
  • 사용갯수 (used) — long — NOT NULL
  • Field (version) — Int
  • 발급갯수 (issued) — long — NOT NULL

쿠폰 상세 (Coupon_detail)

  • Key (coupon_detail_idx) — long — 기본 키 — NOT NULL
  • 할인가격 (sale) — long — NOT NULL
  • 이름 (name) — NOT NULL
  • 만료일 (expire) — Date — NOT NULL
  • 발행처 (publisher) — long — NOT NULL — 레디베리(null)가 발급한 쿠폰인지, 아니면 사장님(ceo_idx)이 발급인지

포인트 (Point)

  • Key (point_idx) — long — 기본 키 — NOT NULL
  • Key (order_idx) — long — 외래 키 → 주문.Key — NOT NULL
  • Key (user_idx) — long — 외래 키 → 유저.Key — NOT NULL — auto_increase
  • Field (point) — long — NOT NULL — 발생/사용 포인트
  • Field (isDelete) — Boolean — NOT NULL