Alchomist-2
Tables (9)
base_entity (베이스 엔터티)
- 생성시간 (created_at) — NOT NULL — 수정 불가능 옵션, 자동 삽입
- 수정시간 (last_modified_at)
carts (장바구니)
- Key (id) — NOT NULL — Primary key — NOT NULL
- Key (user_id) — TYPE — Foreign key → users.Key — NOT NULL
- Key (ingredient_id) — NOT NULL — Foreign key → ingredients.Key — NOT NULL
cocktails (칵테일)
- Key (id) — NOT NULL — Primary key — NOT NULL — 칵테일 아이디
- 이름 (name) — NOT NULL — NOT NULL — 칵테일 이름
- 레시피 (recipe) — NOT NULL — NOT NULL — 칵테일 레시피
- 이미지 (imgUrl) — NOT NULL — NOT NULL — 칵테일 완성 이미지
- 참고영상링크 (youtubeLink) — NOT NULL — 만드는 법 참고할 유튜브 링크
- 좋아요 (likes) — NOT NULL — 칵테일의 좋아요 수
- 테마 (thema) — NOT NULL — 칵테일의 테마
ingredients (재료)
- Key (id) — NOT NULL — Primary key — NOT NULL
- 이름 (name) — NOT NULL
- 카테고리 (type) — NOT NULL — NOT NULL
- 알코올 유무 (is_alcohol) — NOT NULL
- 단위 (measure) — NOT NULL — NOT NULL
reviews (평가)
- Key (id) — NOT NULL — Primary key — NOT NULL
- 별점 (rating)
- 내용 (description) — NOT NULL
- 이미지 (url) — NOT NULL
- Key (user_id) — TYPE — Foreign key → users.Key — NOT NULL — 사용자 아이디
- Key (cocktail_id) — NOT NULL — Foreign key → cocktails.Key — NOT NULL — 칵테일 아이디
themes (테마)
- Key (id) — NOT NULL — Primary key — NOT NULL
- 대분류 (main_category) — NOT NULL
- 소분류 (sub_category) — NOT NULL
- Key (cocktail_id) — NOT NULL — Foreign key → cocktails.Key — NOT NULL — 칵테일 아이디
user_like_cocktail (북마크 목록)
- Key (id) — NOT NULL — Primary key — NOT NULL
- Key (cocktail_id) — NOT NULL — Foreign key → cocktails.Key — NOT NULL — 칵테일 아이디
- Key (user_id) — TYPE — Foreign key → users.Key — NOT NULL — 유저 아이디
users (유저)
- Key (id) — TYPE — Primary key — NOT NULL
- 이름 (name) — NOT NULL
- 패스워드 (password) — NOT NULL — NOT NULL
- 별명 (nickname) — NOT NULL
- 이미지 (imageUrl) — NOT NULL — 향후를 위해
- 재료 (ingredient) — NOT NULL — 객체 리스트로
- 성별 (gender) — NOT NULL
- 나이 (age) — NOT NULL — UNSIGNED을 통해서 양수만 받기
- MBTI (mbti) — NOT NULL
volume (칵테일과 재료 관계테이블)
- Key (id) — NOT NULL — Primary key — NOT NULL
- Key (cocktail_id) — NOT NULL — Foreign key → cocktails.Key — NOT NULL — 칵테일 아이디
- Key (ingredient_id) — NOT NULL — Foreign key → ingredients.Key — NOT NULL — 재료 아이디
- 용량 (amount) — NOT NULL — 필요한 재료의 양