mall
Tables (9)
CartItem (장바구니상품)
- cartItemId — number — Primary key — NOT NULL — 장바구니상품번호
- cartId — number — Foreign key → cart.cartId — NOT NULL — 장바구니번호
- productId — number — Foreign key → product.productId — NOT NULL — 상품번호
- cartItemCount — number — NOT NULL — 장바구니상품개수
address (주소)
- addressId — number — Primary key — NOT NULL — 주소번호
- userId — number — Foreign key → users.userId — NOT NULL — 회원번호
- address — varchar2 — 주소
cart (장바구니)
- cartId — number — Primary key — NOT NULL — 장바구니번호
- cartProductCount — number — NOT NULL — 장바구니상품개수
- userId — number — Foreign key → users.userId — NOT NULL — 회원번호
category (카테고리)
- categoryId — number — Primary key — NOT NULL — 카테고리번호
- categoryName — varchaar2 — NOT NULL — 카테고리이름
order (주문)
- oderId (orderId) — number — Primary key — NOT NULL — 주문번호
- userId — number — Foreign key → users.userId — NOT NULL — 회원번호
- totalPrice — number — NOT NULL — 주문총액
- createdAt — date — NOT NULL — 주문일자
- updateAt — date — 주문수정일자
orderDetail (주문상세)
- orderDetailId (Key) — number — Primary key — NOT NULL — 주문상세번호
- oderId (orderId) — number — Foreign key → order.oderId — NOT NULL — 주문번호
- productCount (prouductCount) — number — NOT NULL — 상품수량
- deliveryStatus — varchar2 — NOT NULL — 주문상태
- productId — number — Foreign key → product.productId — NOT NULL — 상품번호
product (상품)
- productId — number — Primary key — NOT NULL — 상품번호
- productName — varchar2 — NOT NULL — 상품명
- productPrice — number — NOT NULL — 상품가격
- categoryId — number — Foreign key → category.categoryId — NOT NULL — 카테고리번호
userRole (회원권한)
- roleId — number — Primary key — NOT NULL — 권한번호
- roleName — varchar2 — NOT NULL — 권한이름
users (회원)
- userId — number — Primary key — NOT NULL — 회원번호
- username — varchar2 — NOT NULL — 회원아이디
- password — varchar2 — NOT NULL — 회원비밀번호
- name — varchar2 — NOT NULL — 회원이름
- birthday — varchar2 — NOT NULL — 회원생년월일
- phone — varchar2 — NOT NULL — 회원전화번호
- email — varchaar2 — NOT NULL — 회원이메일
- gender — varchar2 — NOT NULL — 회원성별
- createdAt — date — NOT NULL — 생성일
- updateAt — date — 수정일
- isWithdrawn — varchar2 — NOT NULL — 탈퇴여부
- roleId — number — Foreign key → userRole.roleId — NOT NULL — 권한번호