fitfurni
Tables (5)
Category (카테고리)
- id (카테고리 ID) — Primary key — NOT NULL
- name (카테고리 이름) — String — NOT NULL
Furniture (가구)
- id (가구ID) — PK — Primary key — NOT NULL
- id (카테고리 ID) — Foreign key → Category.id — NOT NULL
- name (가구 이름) — String
- brand (브랜드) — String — NOT NULL
- width (가로) — Float — NOT NULL
- depth (세로) — Float — NOT NULL
- height (높이) — Float — NOT NULL
- price (가격) — Int — NOT NULL
- Star (별점) — Float
- image_url (이미지 링크) — String
- product_url (구매 링크) — String
- category_id (카테고리 참조) — FK
RecommendationLog (추천로그)
- id (로그 ID) — Primary key — NOT NULL
- id (가구ID) — PK — Foreign key → Furniture.id — NOT NULL
- id (카테고리 ID) — Foreign key → Furniture.id — NOT NULL
- id (요청ID) — Foreign key → Request.id — NOT NULL
- id (사용자ID) — PK — Foreign key → Request.id — NOT NULL
- id (카테고리 ID2) — Foreign key → Request.id — NOT NULL
- request_id (요청 참조 ID)
- furniture_id (추천된 가구)
- rank (추천 순위) — Int
- recommended_at (추천 일시) — DateTime — NOT NULL
Request (요청)
- id (요청ID) — Primary key — NOT NULL
- id (사용자ID) — PK — Foreign key → User.id — NOT NULL
- id (카테고리 ID) — Foreign key → Category.id — NOT NULL
- user_id (요청한 사용자) — NOT NULL
- width (사용 가능한 공간 가로(입력받은)) — Float — NOT NULL
- depth (공간 깊이(입력받은)) — Float — NOT NULL
- height (공간 높이(입력받은)) — Float — NOT NULL
- category_id (찾는 가구 카테고리)
- created_at (요청 시간) — DateTime — NOT NULL
User (사용자)
- id (사용자ID) — PK — Primary key — NOT NULL
- email (사용자 이메일) — String
- created_at (가입일자) — DateTime — NOT NULL