elice-motors

Tables (5)

car model (car-model)

  • 차량 아이디 (carId) — number — Primary key — NOT NULL
  • 차량 이름 (carName) — string — NOT NULL
  • 차량 가격 (carPrice) — number — NOT NULL
  • 이미지 (img) — string — NOT NULL — 이미지는 multer로 받아와서 꺼내쓰기
  • 최대 속도 (speed) — number — NOT NULL
  • 주행 거리 (mileage) — number — NOT NULL
  • 연비 (fuel) — number — NOT NULL
  • 옵션 (option) — string — NOT NULL
  • 카테고리 (category) — string — NOT NULL
  • 색깔 (color) — string

car option model (car-option-model)

  • 옵션1 (name:light, additionalPrice:500000) — subSchema
  • 옵션2 (name:signature, additionalPrice:1000000) — subSchema
  • 옵션3 (name:special, additionalPtice:1500000) — subSchema

category model (category-model)

  • 차량 아이디 (carId) — number — Foreign key → car model.차량 아이디 — NOT NULL
  • 차량 타입 (carType) — string

order model (order-model)

  • 유저 (user) — string — NOT NULL
  • 주소 (address) — string — NOT NULL
  • 상태 (status) — string — NOT NULL
  • 총가격 (totalAmout) — number — NOT NULL
  • 상품정보 (products) — subSchema — Foreign key → car model.차량 아이디 — NOT NULL
  • id (shortId) — shortId — Foreign key → user model.id — NOT NULL

user model (user-model)

  • id (shortId) — shortId — Primary key — NOT NULL
  • role — string — NOT NULL
  • 이름 (Field) — string — NOT NULL
  • 이메일 (email) — string — NOT NULL
  • 비밀번호 (password) — string — NOT NULL
  • 번호 (phone) — string
  • 나이 (age) — number
  • 주소 (address) — string