Shopping-mall
Tables (4)
Cart (장바구니 정보)
- Key — uuid — Primary key — NOT NULL
- userId (사용자 id) — uuid — Foreign key → User.Key — NOT NULL
- Key (Key2) — uuid — Foreign key → Product.Key — NOT NULL
- items ([{productId, size, count}]) — array
Order (Untitled)
- Key — Primary key — NOT NULL
- userId (사용자 id) — uuid — Foreign key → User.Key — NOT NULL
- Key (Key2) — uuid — Foreign key → Product.Key — NOT NULL
- address (주소) — string
- contact (연락처) — string
- items ([(productId, count, size, price)]) — array
Product (상품 정보)
- Key — uuid — Primary key — NOT NULL
- product_num (상품 번호) — number
- name (상품 이름) — string
- image (상품 사진) — string
- price (가격) — number
- description (상품 설명) — string
- stock (재고) — string
- category (카테고리) — string
- status (상태) — string
- isDeleted (삭제 여부) — boolean
User (회원 정보)
- Key — uuid — Primary key — NOT NULL
- email (이메일) — string
- password (비밀번호) — string
- name (이름) — string
- level (권한) — string