assignment 2
Tables (8)
CUSTOMER
- c_id — int — Primary key — NOT NULL — 사용자 식별자
- c_name — vachar(40) — 사용자 이름
- email — vachar(40) — 사용자 이메일
- pwd — vachar(40) — 사용자 비밀번호
- gender — vachar(40) — 사용자 성별
- phone — int — 사용자 전화번호
Comment (Comment_to)
- cm_id — int — Primary key — NOT NULL — 코멘트 식별자
- c_id — int — Foreign key → CUSTOMER.c_id — NOT NULL — 사용자 식별자
- rating — int — 평점
- comment — vachar(500) — 리뷰
- w_date — int — 리뷰 날짜
- m_id (m_id2) — int — Foreign key → Movie.m_id — NOT NULL — 영화 식별자
Genre
- g_id — int — Primary key — NOT NULL — 장르 식별자
- c_id — int — Foreign key → CUSTOMER.c_id — NOT NULL — 사용자 식별자
- g_name — vachar(40) — 장르 이름
- m_id — int — Foreign key → Movie.m_id — NOT NULL — 영화 식별자
Movie
- m_id — int — Primary key — NOT NULL — 영화 식별자
- m_type — vachar(40) — 영화 유형
- m_name — vachar(40) — 영화 이름
- start_year — int — 방영 일시
- end_year — int — 종영 일시
- runtime — int — 상영 시간
- is_adult — vachar(40) — 성인 영화 여부
- rating — int — 평점
- votes — int — 평점에 대한 투표수
- g_id — int — Foreign key → Genre.g_id — NOT NULL — 장르 식별자
- c_id — int — Foreign key → Genre.c_id — NOT NULL — 사용자 식별자
- cm_id — int — Foreign key → Comment.cm_id — NOT NULL — 코멘트 식별자
- c_id (c_id2) — int — Foreign key → Comment.c_id — NOT NULL — 사용자 식별자
- w_id (watch_id) — int — Foreign key → Watch.w_id — NOT NULL — 시청기록 식별자
- c_id (c_id3) — int — Foreign key → Watch.c_id — NOT NULL — 사용자 식별자
- Key (P_id) — int — Foreign key → Untitled.Key — NOT NULL — 참여자 식별자
Untitled (Participate)
- Key (P_id) — int — Primary key — NOT NULL — 참여자 식별자
- Field (role) — vachar(40) — 직함
- Field (character) — vachar(40) — 배역
- Field (p_name) — vachar(40) — 참여자 이름
- Field (major_work) — vachar(40) — 대표작
- m_id — int — Foreign key → Movie.m_id — NOT NULL — 영화 식별자
- Key (pr_id) — int — Foreign key → Untitled.Key — NOT NULL — 직업 식별자
Untitled (Profession)
- Key (pr_id) — int — Primary key — NOT NULL — 직업 식별자
- Field (pr_name) — vachar(40) — 직업 이름
- Key (P_id) — int — Foreign key → Untitled.Key — NOT NULL — 참여자 식별자
Watch
- w_id (watch_id) — int — Primary key — NOT NULL — 시청기록 식별자
- c_id — int — Foreign key → CUSTOMER.c_id — NOT NULL — 사용자 식별자
- watch_date — int — 시청 날짜
- stop_time — int — 시청시간
- m_id — int — Foreign key → Movie.m_id — NOT NULL — 영화 식별자
preper_genre
- pg_id — int — Primary key — NOT NULL — 선호 장르 식별자
- pg_name — vachar(40) — 선호 장르 이름
- g_id — int — Foreign key → Genre.g_id — NOT NULL — 장르 식별자
- c_id — int — Foreign key → Genre.c_id — NOT NULL — 사용자 식별자