db코딩보험 v2

테이블 (20)

근태 (Untitled9)

  • 날짜 (PK) — not null — 기본 키
  • 사번 (PK2) — not null — 외래 키 → 직원.사번 — NOT NULL
  • 휴가 여부 (Field2) — not null
  • 출근 여부 (Field) — not null
  • 출근 시간 (Field3) — not null
  • 퇴근 시간 (Field4) — not null
  • 추가 근무 시간 (Field5) — not null

리뷰 (Untitled20)

  • 아이디 (PK) — not null — 외래 키 → 회원.아이디 — NOT NULL
  • 영화 코드 (PK2) — not null — 외래 키 → 영화.영화 코드 — NOT NULL
  • 평점 (Field) — not null
  • 리뷰 제목 (Field4)
  • 좋아요 개수 (Field3) — not null
  • 리뷰 내용 (Field2)

발주 목록 (Untitled27)

  • 메뉴 (PK) — not null — 외래 키 → 스낵.메뉴 — NOT NULL
  • 영화관 코드 (PK2) — not null — 외래 키 → 스낵.영화관 코드 — NOT NULL
  • 발주량 (Field) — not null
  • 발주일 (Field2) — not null
  • 발주 상황 (Field3) — not null

보너스 (Untitled8)

  • 연도/월 (PK2) — not null — 기본 키 — NOT NULL
  • 사번 (PK) — not null — 외래 키 → 직원.사번 — NOT NULL
  • 보너스 (Field2) — not null

비품 관리 (Untitled23)

  • 종류 (PK) — not null — 기본 키 — NOT NULL
  • 상영관 코드 (PK2) — not null — 외래 키 → 상영관.상영관 번호
  • 영화관 코드 (PK22) — not null — 외래 키 → 상영관.영화관 코드 — NOT NULL
  • 관리 상태 (Field) — not null
  • 세부 사항 (Field2) — not null

상영관 (Untitled17)

  • 상영관 번호 (PK) — not null — 기본 키
  • 영화관 코드 (PK2) — not null — 외래 키 → 영화관.영화관 코드 — NOT NULL
  • 상영관 종류 (Field) — not null
  • 상영관 사용가능유무 (Field2) — not null

스낵 (Untitled24)

  • 메뉴 (PK) — not null — 기본 키 — NOT NULL
  • 영화관 코드 (PK2) — not null — 외래 키 → 영화관.영화관 코드 — NOT NULL
  • 가격 (Field) — not null
  • 판매량 (Field2) — not null
  • 재고 (Field3) — not null

스낵 판매 내역 (Untitled26)

  • 판매 코드 (PK) — not null — 기본 키 — NOT NULL
  • 판매 시간 (Field) — not null
  • 결제 금액 (Field2) — not null
  • 메뉴 (FK) — not null — 외래 키 → 스낵.메뉴 — NOT NULL
  • 영화관 코드 (FK2) — not null — 외래 키 → 스낵.영화관 코드 — NOT NULL
  • 쿠폰 코드 (FK3) — null — 외래 키 → 쿠폰.쿠폰 코드 — NOT NULL
  • 아이디 (FK4) — not null — 외래 키 → 회원.아이디 — NOT NULL

스케쥴 (Untitled18)

  • 스케쥴 코드 (PK) — not null — 기본 키 — NOT NULL
  • 상영 일자 (Field) — not null
  • 상영 시작 시각 (Field2) — not null
  • 상영 종료 시각 (Field3) — not null
  • 상영관 번호 (FK) — not null — 외래 키 → 상영관.상영관 번호
  • 영화 코드 (FK2) — not null — 외래 키 → 영화.영화 코드 — NOT NULL
  • 영화관 코드 (PK2) — not null — 외래 키 → 상영관.영화관 코드 — NOT NULL

영화 (Untitled12)

  • 영화 코드 (PK) — not null — 기본 키 — NOT NULL
  • 제목 (Field) — not null
  • 개봉일 (Field4) — not null
  • 마감일 (Field12) — not null
  • 상영 여부 (Field10) — not null
  • 상영 등급 (Field2) — not null
  • 러닝 타임 (Field3) — not null
  • 배급사 (Field5) — not null
  • 제작사 (Field7) — not null
  • 감독 (Field8) — not null
  • 예매율 (Field9) — not null
  • 평점 (Field13)
  • 장르 (Field14) — not null
  • 포스터 (Field6)

영화관 (Untitled)

  • 영화관 코드 (PK) — not null — 기본 키 — NOT NULL
  • 영화관 이름 (Field) — not null
  • 연락처 (Field2) — not null
  • 주소 (Field3) — not null
  • 지역분류 (Field4) — not null

예매 정보 (Untitled21)

  • 예매 코드 (PK) — not null — 기본 키 — NOT NULL
  • 결제 금액 (Field2) — not null
  • 예매 취소여부 (Field)
  • 쿠폰 코드 (FK1) — null — 외래 키 → 쿠폰.쿠폰 코드 — NOT NULL
  • 아이디 (FK2) — not null — 외래 키 → 회원.아이디 — NOT NULL
  • 스케쥴 코드 (PK2) — not null — 외래 키 → 스케쥴.스케쥴 코드 — NOT NULL

예약된 좌석 (Untitled5)

  • 예매 코드 (PK) — not null — 외래 키 → 예매 정보.예매 코드 — NOT NULL
  • 좌석 코드 (PK2) — not null — 외래 키 → 좌석현황.좌석 코드 — NOT NULL
  • 스케쥴 코드 (PK22) — not null — 외래 키 → 좌석현황.스케쥴 코드 — NOT NULL

좌석현황 (Untitled19)

  • 좌석 코드 (PK) — not null — 기본 키 — NOT NULL
  • 스케쥴 코드 (PK2) — not null — 외래 키 → 스케쥴.스케쥴 코드 — NOT NULL
  • 좌석배정유무 (Field) — not null
  • 행/열 (Field2) — not null

직원 (Untitled2)

  • 사번 (PK) — not null — 기본 키 — NOT NULL
  • 비밀번호 (Field9) — null
  • 직급 (Field) — not null
  • 이름 (Field2) — not null
  • 주민번호 (Field3) — not null
  • 연락처 (Field4) — null
  • 계좌번호 (Field5) — not null
  • 이메일 (Field6) — not null
  • 기본급 (Field7) — not null — NOT NULL
  • 영화관 코드 (FK) — not null — 외래 키 → 영화관.영화관 코드 — NOT NULL

출연 배우 (Untitled14)

  • 배우 코드 (Key) — 기본 키 — NOT NULL
  • 배우 이름 (Field2)
  • 영화 코드 (PK) — not null — 외래 키 → 영화.영화 코드 — NOT NULL

쿠폰 (Untitled29)

  • 쿠폰 코드 (PK) — not null — 기본 키 — NOT NULL
  • 유효기간 (Field) — not null
  • 사용 여부 (Field2) — not null
  • 할인율 (Field3) — not null
  • 아이디 (FK) — not null — 외래 키 → 회원.아이디 — NOT NULL

회계 (Untitled25)

  • 연도/월 (PK) — not null — 기본 키 — NOT NULL
  • 영화관 코드 (PK2) — not null — 외래 키 → 영화관.영화관 코드 — NOT NULL
  • 티켓 판매 수익 (Field) — not null
  • 스낵 판매 수익 (Field2) — not null
  • 광고 수익 (Field3) — not null
  • 기타 지출 (Field4) — not null
  • 인건비 (Field5) — not null

회원 (Untitled10)

  • 아이디 (PK) — not null — 기본 키 — NOT NULL
  • 비밀번호 (Field2) — not null
  • 이름 (Field3) — not null
  • 성별 (Field4) — not null
  • 연락처 (Field6) — not null
  • 주민번호 (Field5) — not null
  • 이메일 (Field7) — not null
  • 가입날짜 (Field) — not null
  • 등급 (Field8)

휴가 신청 내역 (슬라이드 28 목록) (Untitled3)

  • 휴가 신청 코드 (PK@) — not null — 기본 키 — NOT NULL
  • 휴가 날짜 (Field) — not null
  • 결재 여부 (Field2) — not null
  • 결재 담당자 (Field3)
  • 사번 (PK2) — not null — 외래 키 → 직원.사번 — NOT NULL