ULLI
Tables (5)
CompositeImage (합성이미지)
- id — bigint — Primary key — NOT NULL
- customer_id (합성 대상 사용자 ID) — bigint — Foreign key → USER.id — NOT NULL
- human_image_id (사람 원본 이미지 ID) — bigint — Foreign key → IMAGE.id — NOT NULL
- cloth_image_id (의류 이미지 ID) — bigint — Foreign key → IMAGE.customer_id — NOT NULL
- result_image_url (AI로 생성된 이미지 경로) — text
- created_at (생성일시) — timestamp
IMAGE (이미지)
- id — bigint — Primary key — NOT NULL
- customer_id (이미지 업로드 사용자 아이디) — bigint — Foreign key → USER.id — NOT NULL
- product_id (연관 상품 ID) — bigint — Foreign key → PRODUCT.id — NOT NULL
- url (원본 이미지 경로) — text
- type (타입) — enum — person, cloth, result
- created_at (업로드 시점) — timestamp
PRODUCT (상품)
- id — bigint — Primary key — NOT NULL
- name (상품명) — varchar
- price (가격) — int
- brand (브랜드) — varchar
- category (분류) — varchar
- gender (성별) — enum
- description (상품설명) — text
- created_at (생성일시) — timestamp
REQUEST_LOG (합성요청로그)
- id — bigint — Primary key — NOT NULL
- customer_id (요청 사용자 아이디) — bigint — Foreign key → USER.id — NOT NULL
- human_image_id (사람 원본 이미지 ID) — bigint — Foreign key → IMAGE.id — NOT NULL
- cloth_image_id (의류 이미지 ID) — bigint — Foreign key → IMAGE.customer_id — NOT NULL
- status (상태) — enum
- requested_at (요청일시) — timestamp
- completed_at (처리일시) — timestamp
- fail_reason (실패사유) — text
USER (고객)
- id (아이디) — bigint — Primary key — NOT NULL
- guest_id (비회원 사용자 ID (쿠키 값/기기ID 등)) — varchar
- email (이메일(회원일 경우)) — varchar
- password (비밀번호(회원일 경우)) — varchar
- is_guest (비회원 여부) — boolean
- created_at (가입일시) — timestamp