photobooth

Tables (5)

filters (필터)

  • id (필터 ID) — uuid — Primary key — NOT NULL
  • name (필터 이름) — varchar
  • description (필터 설명) — text

frames (프레임)

  • id (개별 사진 고유 ID) — uuid — Primary key — NOT NULL
  • name (프레임 이름) — varchar
  • theme (테마) — ENUM
  • image_path (이미지 경로) — string

photo_sessions (사진 세션)

  • id (아이디) — uuid — Primary key — NOT NULL
  • cut_tyoe (컷 타입) — ENUM(4 | 6 | 12)
  • frame_id (선택한 프레임)
  • id (개별 사진 고유 ID) — uuid — Foreign key → frames.id — NOT NULL
  • createdAt (촬영시각) — datetime
  • id (필터 ID) — uuid — Foreign key → filters.id — NOT NULL

photos (사진)

  • id (개별 사진 고유 ID) — uuid — Primary key — NOT NULL
  • sessionId (세션 ID) — uuid — Foreign key → photo_sessions.id — NOT NULL
  • file_path (파일 경로) — text
  • order_index (순서) — int
  • selected (사용자 선택 여부) — boolean
  • created_at (저장시각) — datetime

share_links (공유 링크)

  • id (공유 링크 id) — uuid — Primary key — NOT NULL
  • session_id (연결된 세션) — uuid — Foreign key → photo_sessions.id — NOT NULL
  • hash (해시값(QR링크용() — varchar
  • expired_at (만료 시각) — datetime