backoffice_7
Tables (8)
Untitled (매장)
- Key (id) — Int — Primary key — NOT NULL
- 매장이름 (name) — String
- 매장타입 (type) — string
- 매장주소 (address) — String
- 매장번호 (phoneNumber) — String
- 매장소개 (introduction) — Text
- 영업시간 (businessHour) — Array
- 매장사이트 (homepage) — String
- 생성일시 (createdAt) — Date
- 수정일시 (updatedAt) — Date
- ID (ownerId) — Int — Foreign key → User2Info.ID — NOT NULL
Untitled (리뷰)
- Key (id) — Int — Primary key — NOT NULL
- 리뷰평가 (rating) — TinyInt
- 리뷰내용 (content) — String
- 생성일시 (createdAt) — Date
- 수정일시 (updatedAt) — Date
- 식당id (dinerId) — Int — Foreign key → Untitled.Key — NOT NULL
- 고객id (userId) — Int — Foreign key → UsersInfo.id — NOT NULL
- 메뉴id (menuId) — Int — Foreign key → menuEnroll.id
Untitled (주문)
- Key (id) — Int — Primary key — NOT NULL
- 주문금액 (amount) — Int
- 생성일시 (createdAt) — Date
- 식당id (dinerId) — Int — Foreign key → Untitled.Key — NOT NULL
- 고객id (userId) — Int — Foreign key → UsersInfo.id — NOT NULL
- 메뉴id (menuId) — Int — Foreign key → menuEnroll.id
- 상태 (state) — String
User2Info (점주정보)
- ID (id) — Int — Primary key — NOT NULL
- 가게주소 (address) — STRING — NOT NULL
- 매장 전화 번호 (PHOENumber) — STRING — NOT NULL
- 사용자구분 (type) — STRING — NOT NULL
- 점주포인트 (points) — Int
- id (id2) — Int — Foreign key → Users.id — NOT NULL
Users (사용자)
- id — Int — Primary key — NOT NULL
- 사용자메일 (email) — String
- 사용자닉네임 (nickname) — String
- 사용자비번 (password) — String
- 사용자주소 (address) — String
- 사용자폰 (phoneNumber) — String
- 사용자구분 (type) — String
- 사용자포인트 (points) — Int
- 생성일시 (createdAt) — Date
- 수정일시 (updatedAt) — Date
UsersInfo (고객정보)
- id — Int — Primary key — NOT NULL
- 고객주소 (address) — String
- 고객번호 (phoneNumber) — String
- 사용자구분 (type) — String
- 고객포인트 (points) — Int
- id (id2) — Int — Foreign key → Users.id — NOT NULL
menuEnroll (메뉴)
- id (Key) — Int — Primary key
- 이메일 주소 (email) — INTEGER — NOT NULL
- 메뉴이름 (title) — STRING — NOT NULL
- 설명 (description) — STRING — NOT NULL
- 상태 (status) — STRING — NOT NULL
- 생성일시 (createdAt) — DATE
- 수정일시 (updatedAt) — DATE — NOT NULL
- 식당id (dinerId) — Int — Foreign key → Untitled.Key — NOT NULL
orderConfirm (주문확인)
- ID (id) — Int — Primary key — NOT NULL
- 주문자 (userId) — STRING
- 상품 (menuId) — STRING
- 상태 (state) — STRING — NOT NULL — 배달 준비 중 배달 중 배달 완료
- 생성일시 (createdAt) — DATE
- 수정일시 (updatedAt) — DATE — NOT NULL
- Key (id2) — Int — Foreign key → Untitled.Key — NOT NULL
- Key (id3) — Int — Foreign key → Untitled.Key — NOT NULL