cafe

Tables (8)

order_items (Untitled8)

  • 주문상품식별자 (id) — BIGINT — Primary key — NOT NULL
  • 상품식별자 (product_id) — BIGINT — Foreign key → products.상품식별자 — NOT NULL
  • 수량 (quantity) — BIGINT
  • 결제금액 (unit_price) — BIGDECIMAL
  • 주문식별자 (order_id) — BIGINT — Foreign key → orders.주문식별자 — NOT NULL
  • 생성일 (created_at) — TIMESTAMP

orders (Untitled)

  • 주문식별자 (id) — BIGINT — Primary key — NOT NULL
  • 주문번호 (order_num) — VARCHAR(15)
  • 총금액 (amount) — BIGDECIMAL
  • 생성일 (created_at) — TIMESTAMP
  • 삭제일 (deleted_at) — TIMESTAMP
  • 유저식별자 (user_id) — BIGINT — Foreign key → users.유저식별자 — NOT NULL

payment_histories (Untitled6)

  • 결제기록식별자 (id) — BIGINT — Primary key — NOT NULL
  • 결제금액 (payment_amount) — BIGDECIMAL
  • 결제시각 (pay_at) — TIMESTAMP
  • 수량 (quentity) — BIGINT
  • 주문식별자 (order_id) — BIGINT — Foreign key → orders.주문식별자 — NOT NULL
  • 유저식별자 (user_id) — BIGINT — Foreign key → users.유저식별자 — NOT NULL
  • 상품식별자 (product_id) — BIGINT — Foreign key → products.상품식별자 — NOT NULL

payments (Untitled5)

  • 결제식별자 (id) — BIGINT — Primary key — NOT NULL
  • 결제 금액 (amount) — BIGDECIMAL
  • 결제상태 (status) — ENUM
  • 결제시각 (pay_at) — TIMESTAMP
  • 생성일 (created_at) — TIMESTAMP
  • 주문식별자 (order_id) — BIGINT — Foreign key → orders.주문식별자 — NOT NULL

point_transactions (Untitled2)

  • 포인트내역식별자 (id) — BIGINT — Primary key — NOT NULL
  • 사용금액 (amount) — BIGDECIMAL
  • 사용여부 (status) — ENUM
  • 잔액 (balance) — BIGDECIMAL
  • 수정일 (created_at) — TIMESTAMP
  • 유저식별자 (user_id) — BIGINT — Foreign key → users.유저식별자 — NOT NULL
  • 주문식별자 (order_id) — BIGINT — Foreign key → orders.주문식별자 — NOT NULL

points (Untitled7)

  • 포인트식별자 (id) — BIGINT — Primary key — NOT NULL
  • 잔액 (balance) — BIGDECIMAL
  • 수정일 (updated_at) — TIMESTAMP
  • 유저식별자 (user_id) — BIGINT — Foreign key → users.유저식별자 — NOT NULL

products (Untitled4)

  • 상품식별자 (id) — BIGINT — Primary key — NOT NULL
  • 상품이름 (name) — VARCHAR(10)
  • 가격 (price) — BIGDECIMAL
  • 재고 (quantity) — BIGINT
  • 상태 (status) — ENUM
  • 생성일 (created_at) — TIMESTAMP

users (Untitled3)

  • 유저식별자 (id) — BIGINT — Primary key — NOT NULL
  • 닉네임 (nickname) — VARCHAR(10)
  • 이메일 (email) — VARCHAR
  • 비밀번호 (password) — VARCHAR
  • 주소 (address) — VARCHAR
  • 전화번호 (phone) — VARCHAR(15)
  • 생성일 (created_at) — TIMESTAMP