db코딩보험 수정본

테이블 (27)

고충 (Untitled7)

  • 신고자 (PK) — not null — 외래 키 → 직원.사번 — NOT NULL
  • 내용 (Field) — not null

공지 (Untitled6)

  • 사번 (PK) — not null — 외래 키 → 직원.사번 — NOT NULL
  • 내용 (Field) — not null
  • 작성일 (Field2) — not null
  • 영화관 코드 (FK) — not null — 외래 키 → 영화관.영화관 코드 — NOT NULL

권한 (Untitled5)

  • 권한 코드 (PK) — not null — 기본 키 — NOT NULL
  • 권한 이름 (Field) — not null

권한 부여 (Untitled30)

  • 사번 (PK) — not null — 외래 키 → 직원.사번 — NOT NULL
  • 권한 코드 (PK2) — not null — 외래 키 → 권한.권한 코드 — NOT NULL

근태 (Untitled9)

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

급여 (Untitled8)

  • 사번 (PK) — not null — 외래 키 → 직원.사번 — NOT NULL
  • 기본급 (Field) — not null
  • 보너스 (Field2) — not null

리뷰 (Untitled20)

  • 아이디 (PK) — not null — 외래 키 → 회원.아이디 — NOT NULL
  • 영화 코드 (PK2) — not null — 외래 키 → 영화.영화 코드 — NOT NULL
  • 평점 (Field) — not null
  • 작성 시간 (Field2) — not null
  • 좋아요 개수 (Field3) — not null

메세지 (Untitled4)

  • 메세지 코드 (PK) — not null — 기본 키 — NOT NULL
  • 내용 (Field) — not null — NOT NULL
  • 작성 시간 (Field2) — not null
  • 발신자 사번 (FK) — not null — 외래 키 → 직원.사번 — NOT NULL
  • 수신자 사번 (FK2) — not null — 외래 키 → 직원.사번 — NOT NULL

발주 (Untitled27)

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

배우 정보 (Untitled13)

  • 배우 코드 (PK) — not null — 기본 키 — NOT NULL
  • 이름 (Field) — not null
  • 국적 (Field2) — not null
  • 배우소개 (Field3) — not null

부서 (Untitled3)

  • 부서명 (PK) — not null — 기본 키 — NOT NULL
  • 업무내용 (Field) — not null

비품 (Untitled23)

  • 종류 (PK) — not null — 기본 키 — NOT NULL
  • 상영관 코드 (PK2) — not null — 외래 키 → 상영관.상영관 코드
  • 관리 상태 (Field) — not null

상영관 (Untitled17)

  • 상영관 코드 (PK) — not null — 기본 키
  • 상영관 종류 (Field) — not null
  • 상영관 사용가능유무 (Field2) — not null
  • 영화관 코드 (PK2) — not null — 외래 키 → 영화관.영화관 코드 — 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 — 외래 키 → 상영관.상영관 코드
  • 영화 코드 (PK2) — not null — 외래 키 → 영화.영화 코드 — NOT NULL

영화 (Untitled12)

  • 영화 코드 (PK) — not null — 기본 키 — NOT NULL
  • 제목 (Field) — not null
  • 상영 등급 (Field2) — not null
  • 러닝 타임 (Field3) — not null
  • 개봉일 (Field4) — not null
  • 배급사 (Field5) — not null
  • 누적 관객수 (Field6) — not null
  • 제작사 (Field7) — not null
  • 감독 (Field8) — not null
  • 예매율 (Field9) — not null
  • 상영 여부 (Field10) — not null

영화 장르 (Untitled16)

  • 영화 코드 (PK) — not null — 외래 키 → 영화.영화 코드 — NOT NULL
  • 종류 (Field) — not null

영화관 (Untitled)

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

예매 정보 (Untitled21)

  • 예매 코드 (PK) — not null — 기본 키 — NOT NULL
  • 결제 방법 (Field) — not null
  • 결제 금액 (Field2) — not null
  • 스케쥴 코드 (FK) — not null — 외래 키 → 스케쥴.스케쥴 코드 — NOT NULL
  • 쿠폰 코드 (FK1) — null — 외래 키 → 쿠폰.쿠폰 코드 — NOT NULL
  • 아이디 (FK2) — not null — 외래 키 → 회원.아이디 — NOT NULL
  • 좌석 코드 (FK3) — not null — 외래 키 → 해당좌석현황.좌석 코드 — NOT NULL

직원 (Untitled2)

  • 사번 (PK) — not null — 기본 키 — NOT NULL
  • 직급 (Field) — not null
  • 이름 (Field2) — not null
  • 주민번호 (Field3) — not null
  • 연락처 (Field4) — not null
  • 계좌번호 (Field5) — not null
  • 이메일 (Field6) — not null
  • 잔여 휴가 (Field7) — not null — NOT NULL
  • 사진 (Field8) — not null
  • 영화관 코드 (FK) — not null — 외래 키 → 영화관.영화관 코드 — NOT NULL
  • 부서명 (FK2) — not null — 외래 키 → 부서.부서명 — NOT NULL

출연 배우 (Untitled14)

  • 영화 코드 (PK) — not null — 외래 키 → 영화.영화 코드 — NOT NULL
  • 배우 코드 (PK2) — not null — 외래 키 → 배우 정보.배우 코드 — NOT NULL
  • 역할 (Field) — not null

쿠폰 (Untitled29)

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

해당좌석현황 (Untitled19)

  • 좌석 코드 (PK) — not null — 기본 키 — NOT NULL
  • 좌석배정유무 (Field) — not null
  • 행/열 (Field2) — 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
  • 가입날짜 (Field) — not null
  • 비밀번호 (Field2) — not null
  • 이름 (Field3) — not null
  • 성별 (Field4) — not null
  • 주소 (Field5) — not null
  • 연락처 (Field6) — not null
  • 이메일 (Field7) — not null
  • 등급 (FK) — not null — 외래 키 → 회원 등급.등급 종류 — NOT NULL

회원 등급 (Untitled11)

  • 등급 종류 (PK) — not null — 기본 키 — NOT NULL
  • 등급 기준 (Field) — not null