cake

테이블 (4)

사용자 (User)

  • 회원번호 (user_id) — number — 기본 키 — NOT NULL — NOT NULL
  • 이름 (name) — string
  • 편지 (letters) — Letter[]

커스텀 케이크 (Custom_Cake)

  • 케이크 id (cake_id) — number — 외래 키 → 케이크.케이크 id — NOT NULL
  • 모양 (shape) — enum
  • 색상 (color) — string
  • 윗면 장식 (top_decorator) — enum
  • 윗면장식 색상 (top_decorator_color) — string
  • 옆면 장식 (side_decorator) — enum
  • 옆면 장식 색상 (side_decorator_color) — string
  • 추가 장식 (item) — number
  • 레터링 (lettering) — {content: string, color: string, font: number}

케이크 (Cake)

  • 케이크 id (cake_id) — number — 기본 키 — NOT NULL
  • 편지 id (letter_id) — number — 외래 키 → 편지.편지 id — NOT NULL
  • 케이크 타입 (cake_type) — enum
  • 커스텀 케이크 (cake) — Custom_Cake

편지 (Letter)

  • 편지 id (letter_id) — number — 기본 키 — NOT NULL
  • 회원번호 (user_id) — number — 외래 키 → 사용자.회원번호 — NOT NULL — NOT NULL
  • 이름 (name) — string — NOT NULL
  • 편지 (content) — string
  • 케이크 (cake) — Cake
  • 공개 여부 (isPrivate) — boolean