sikdorangDB
Tables (21)
Category (Untitled4)
- id (pk) — Primary key — NOT NULL
- category (카테고리 이름) — String
- Order (카테고리 순서) — String
- storeId (가게 Id) — INT — Foreign key → Store.id — NOT NULL
Image (Untitled3)
- id (pk) — Primary key — NOT NULL
- ImageURL (이미지 url) — String
- menuId (메뉴 아이디) — Foreign key → Menu.id — NOT NULL
- deleted (삭제 여부) — Boolean
- order (이미지 순서)
InfomationOrder (Untitled12)
- id (pk) — Primary key — NOT NULL
- phoneNumberOrder (전화번호 순서) — String
- hoursOrder (영업 시간 순서) — String
- corkageOrder (콜키지 순서) — String
- naverPlaceOrder (네이버 플레이스 순서) — String
- wifiOrder (와이파이 순서) — String
- ToiletOrder (화장실 순서) — String
- storeId (가게 정보) — INT — Foreign key → Store.id — NOT NULL
Menu (Untitled)
- id (pk) — Primary key — NOT NULL
- menu (메뉴 이름) — String
- price (가격) — Int
- status (판매중/숨김/품절) — ENUM
- description (메뉴 설명) — String
- new (신메뉴) — Boolean
- recommened (추천메뉴) — Boolean
- popular (인기메뉴) — Boolean
- order (메뉴 순서) — String
- Categoryid (카테고리 아이디) — Int — Foreign key → Category.id — NOT NULL
- storeId (가게 아이디) — INT — Foreign key → Store.id — NOT NULL
MenuOption (Untitled2)
- id (pk) — Primary key — NOT NULL
- option (옵션 제목) — String
- menuId (메뉴 아이디) — FK — Foreign key → Menu.id — NOT NULL
- maxOption (옵션 최대 갯수) — INT
- minOption (옵션 최소 갯수) — INT
- optionRequired (옵션 필수 여부) — Boolean
RefreshToken (Untitled7)
- id (pk) — Primary key — NOT NULL
- token (리프레시 토큰) — String
- created_At (Field)
- expiresAt (만료시간) — DateTime
- userId (유저아이디) — Foreign key → User.id — NOT NULL
Store (Untitled5)
- id (pk) — Primary key — NOT NULL
- store (가게 이름) — String
- logo (매장 로고) — String
- pinNumber (핀번호) — STRING
- wifiId (와이파이 아이디) — String
- wifiPassword (와이파이 비번) — String
- phoneNumbert (전화번호) — String
- naverPlace (네이버 플레이스) — String
- corkagePossible (콜키지 가능여부) — Boolean
- corkageFree (콜키지 무료여부) — Boolean
- Toilet (화장실 정보) — String
- userId (유저 아이디) — INT — Foreign key → User.id — NOT NULL
- recommendationMode (추천 타입) — enum(simple, precise)
StoreTable (Untitled9)
- id (pk) — INT — Primary key — NOT NULL
- storeId (fk) — INT — Foreign key → Store.id — NOT NULL
- tableNumber (테이블 번호) — INT
- tableToken (테이블 토큰값) — STRING
User (Untitled6)
- id (pk) — Primary key — NOT NULL
- kakaoId (카카오 아이디) — int
- email (이메일) — string
- nickname (카카오 닉네임) — String
- created_at (가입일) — timestamp
hours (Untitled11)
- id (pk) — Primary key — NOT NULL
- storeId (가게 아이디) — INT — Foreign key → Store.id — NOT NULL
- day (요일) — ENUM(0~6)
- startHour (시작 Hour) — INT
- startMin (시작 minute) — INT
- endHour (종료 HOUR) — INT
- endMin (종료 minute) — INT
- Open (영업날) — Boolean
optionDetail (Untitled8)
- id (pk) — Primary key — NOT NULL
- optionDetail (옵션 세부사항) — String
- menuOptionId (fk) — 외래키 — Foreign key → MenuOption.id — NOT NULL
- price (가격) — INT
order (Untitled10)
- id (pk) — Primary key — NOT NULL
- token (주문자 토큰)
- created_at (주문시각)
- tableNumber (테이블 번호)
- storeId (기게 정보) — Foreign key → Store.id — NOT NULL
- accepted (주문 승인여부)
orderItem (Untitled13)
- id (pk) — Primary key — NOT NULL
- orderId (pk2) — Foreign key → order.id — NOT NULL
- quantity (수량)
- menuId (메뉴 아이디) — Foreign key → Menu.id — NOT NULL
orderItemOption (Untitled14)
- id (pk) — Primary key — NOT NULL
- orderItemId (pk2) — Foreign key → orderItem.id — NOT NULL
- menuOptionId (메뉴 옵션 아이디) — Foreign key → MenuOption.id — NOT NULL
orderItemOptionDetail (Untitled15)
- id (pk) — Primary key — NOT NULL
- orderItemOptionId (pk2) — Foreign key → orderItemOption.id — NOT NULL
- optionDetailId (옵션 디테일 아이디) — Foreign key → optionDetail.id — NOT NULL
orderWebsocketACK (Untitled16)
- id (pk) — Primary key — NOT NULL
- websocketACK (수신여부)
- orderId (주문번호) — Foreign key → order.id — NOT NULL
recommendationCategory (Untitled21)
- id (pk) — Primary key — NOT NULL
- storeId (가게 아이디) — Foreign key → Store.id — NOT NULL
- categoryId (카테고리 ID) — Foreign key → Category.id — NOT NULL
recommendationMenu (Untitled19)
- id (pk) — Primary key — NOT NULL
- menuId (메뉴 아이디) — Foreign key → Menu.id — NOT NULL
- typeId (타입 아이디) — Foreign key → recommendationTypeData.id — NOT NULL
- storeId (가게 아이디) — Foreign key → Store.id — NOT NULL
recommendationMenuCriteria (Untitled18)
- id (pk) — Primary key — NOT NULL
- storeId (fk) — Foreign key → Store.id — NOT NULL
- good (int) — Foreign key → Menu.id — NOT NULL
- normal (pk2) — Foreign key → Menu.id — NOT NULL
- bad (pk3) — Foreign key → Menu.id — NOT NULL
- taset (pk4) — Foreign key → selectTasteData.id — NOT NULL
recommendationTypeData (Untitled17)
- id (pk) — Primary key — NOT NULL
- recommendationMode (모드 종류)
- adminDescription (관리자 설명)
- type (유형)
- customerDescription (손님용 설명)
selectTasteData (Untitled20)
- id (pk) — Primary key — NOT NULL
- taste (맛)