paytalab_clone_project
테이블 (10)
게시판 (board)
- 식별 (id) — integer — 기본 키 — NOT NULL
- 가게아이디 (store_id) — integer
- 유저아이디 (user_id) — integer
- 내용 (content) — string
- 작성일 (create_at) — DateTime
- 이미지 (image) — string
- -------------- (Field)
- 좋아요 (llike)
- 댓글 (common t)
댓글 (comment)
- 식별 (id) — integer — 기본 키 — NOT NULL
- 내용 (content) — string
- 생성일 (create_at) — DateTime
- 작성한유저 (user_id) — uuid
- 게시판아이디 (board_id) — uuid
매장 (store)
- 식별 (uuid) — uuid — 기본 키 — NOT NULL
- 매장이름 (name) — string
- 전화번호 (phone_num) — string
- 주소 (address) — string
- 매장 이미지 (profile_img) — string
- 매장 소개 (profile_detail) — string
- 영업일 (working_day) — string
- 휴무일 (break_day) — string
- 현재 매장 오픈 유무 (open_or_not) — boolean
- 생성일 (create_at) — DateTime
- 위도 (latitude) — double
- 경도 (longitude) — double
- ---------------- (Field)
- 메뉴 (menus)
- 옵션 (option)
- 주문내역 (order)
- 게시판 (board)
메뉴 (menus)
- 식별 (uuid) — uuid — 기본 키 — NOT NULL
- 메뉴 이름 (name) — string
- 가격 (price) — integer
- 메뉴 설명 (profile) — string
- 메뉴 이미지 (profile_img) — string
- 판매 현황 (sale_status) — boolean
- 카테고리 아이디 (category_id) — uuid — 외래 키 → 카테고리.식별 — NOT NULL
- 매장 아이디 (store_id) — uuid — 외래 키 → 매장.식별 — NOT NULL
메인주문 (main_order)
- 식별 (uuid) — uuid — 기본 키 — NOT NULL
- 총 주문 금액 (order_total_price) — integer
- 주문한 날짜 (create_at) — DateTime
- 지불방식 (way_of_payment) — string
- 주문 처리 현황 (order_status) — boolean
- 주문 에상 시간 (expect_time) — string
- 추가요청사항 (extra_require) — string
- 주문 디테일 (js_order_data) — Jsonb
- ------------- (Field)
- 주문 상세 내역 (order_detail)
- 유저 아이디 (user_id) — uuid — 외래 키 → 유저테이블.식별 — NOT NULL
- 매장아이디 (store_id) — uuid — 외래 키 → 매장.식별 — NOT NULL
옵션 (option)
- 식별 (uuid) — uuid — 기본 키 — NOT NULL
- 옵션이름 (option_name) — string
- 추가 금액 (extra_price) — integer
- 매장 아이디 (store_id) — uuid — 외래 키 → 매장.식별 — NOT NULL
유저테이블 (users)
- 식별 (uuid) — uuid — 기본 키 — NOT NULL
- 이름 (name) — string — NOT NULL
- 이메일 (email) — string
- 비밀번호 (password) — string
- 결재비밀번호 (pay_password) — integer
- 프로파일이미지 (profile_img) — string
- 가입일 (create_at) — DateTime
- ---------- (Field)
- 게시판 (board)
- 댓글 (comment)
- 주문 (order)
카테고리 (category)
- 식별 (uuid) — uuid — 기본 키 — NOT NULL
- 카테코리 이름 (name) — string
- ----------------- (Field)
- 메뉴 (menus)
회원약관 (terms)
- 식별 (id) — integer — 기본 키 — NOT NULL
- 약관상세 (terms_detail) — string