Danthis ERD
테이블 (15)
강의 (LECTURE)
- Key (id) — 기본 키 — NOT NULL
- Field (name)
- Field (tutor_id)
- Field (price)
- Field (level)
- Field (spec_intro)
- Field (spec_target)
- Field (spec_image)
- Field (spec_video)
- Field (spec_url)
- Key (id2) — 외래 키 → 댄서.Key — NOT NULL
게시글 (POST)
- Key (id) — 기본 키 — NOT NULL
- Field (title)
- Field (content)
- Field (image_url)
- Field (created_at)
- Field (updated_at)
- Key (user_id) — 외래 키 → 사용자.Key — NOT NULL
게시글 별 댓글 (post_comment)
- Key (id) — 기본 키 — NOT NULL
- Key (post_id) — 외래 키 → 게시글.Key — NOT NULL
- Key (comment_id) — 외래 키 → 댓글.Key — NOT NULL
- Key — 외래 키 → 게시글.Key — NOT NULL
게시글 사진 (post_image)
- Key (id) — 기본 키 — NOT NULL
- Key (post_id) — 외래 키 → 게시글.Key — NOT NULL
- Field (image_url)
- Field (created_at)
- Key — 외래 키 → 게시글.Key — NOT NULL
댄서 (DANCER)
- Key (id) — 기본 키 — NOT NULL
- Field (name)
- Field (instar_account)
- Field (intro)
- Field (spec)
댄서 사진 (dancer_image)
- Key (id) — 기본 키 — NOT NULL
- Field (iamge_url)
- Key (dancer_id) — 외래 키 → 댄서.Key — NOT NULL
댓글 (COMMENT)
- Key (id) — 기본 키 — NOT NULL
- Field (content)
- Field (created_at)
- Key (user_id) — 외래 키 → 사용자.Key — NOT NULL
리뷰 (REVIEW)
- Key (id) — 기본 키 — NOT NULL
- Field (title)
- Field (content)
- Field (score)
- Key (id2) — 외래 키 → 강의.Key — NOT NULL
- Key (user_id) — 외래 키 → 사용자.Key — NOT NULL
리뷰 사진 (review_image)
- Key (id) — 기본 키 — NOT NULL
- Field (image_url)
- Field (creatd_at)
- Key (id2) — 외래 키 → 리뷰.Key — NOT NULL
- Key — 외래 키 → 리뷰.Key — NOT NULL
사용자 (USER)
- Key (id) — 기본 키 — NOT NULL
- Field (nickname)
- Field (gender)
- Field (email)
- Field (inactive_date)
- Field (profile_image_url)
선호 강의 (favorite_lecture)
- Key (id) — 기본 키 — NOT NULL
- Key (lecture_id) — 외래 키 → 강의.Key — NOT NULL
- Key (user_id) — 외래 키 → 사용자.Key — NOT NULL
선호 댄서 (favorite_dancer)
- Key (id) — 기본 키 — NOT NULL
- Key (dancer_id) — 외래 키 → 댄서.Key — NOT NULL
- Key (user_id) — 외래 키 → 사용자.Key — NOT NULL
선호장르 (favorite_genre)
- Key (id) — 기본 키 — NOT NULL
- Key (genre_id) — 외래 키 → 장르.Key — NOT NULL
- Key (user_id) — 외래 키 → 사용자.Key — NOT NULL
수강 강의 (taking_lecture)
- Key (id) — 기본 키 — NOT NULL
- Key (lecture_id) — 외래 키 → 강의.Key — NOT NULL
- Key (user_id) — 외래 키 → 사용자.Key — NOT NULL
장르 (genre)
- Key (id) — 기본 키 — NOT NULL
- Field (name)