티켓24

테이블 (15)

결제 (PAYMENT)

  • payment_id — INT
  • booking_id — INT — NOT NULL
  • amount — DECIMAL(10, 2) — NOT NULL
  • status — VARCHAR(20) — NOT NULL
  • payment_time — DATETIME
  • payment_method_id — INT — NOT NULL

결제 메소드 (PAYMENT_METHOD)

  • payment_method_id — INT
  • method_name — VARCHAR(50) — NOT NULL
  • method_type — VARCHAR(20) — NOT NULL

공연 (show)

  • 공연시퀀스 (show_sq) — not null — 기본 키 — NOT NULL
  • 메인이미지 (main_image) — not null
  • 서브이미지 (sub_image) — not null
  • 상세이미지 (detailed _image) — not null
  • 공연시작일 (start_date) — not null
  • 공연종료일 (end_date) — not null
  • 예매시작일 (reservation_date) — not null
  • 공연제목 (show_name) — not null
  • 출연진 (cast) — not null
  • 연출 (director) — not null
  • 공연시간 (show_time) — not null
  • 관람연령 (viewing_age) — not null
  • 공연상태 (show_stat) — not null
  • 공연장시퀀스 (concert_hall_sq) — not null — 외래 키 → 공연장.공연장시퀀스 — NOT NULL
  • 카테고리시퀀스 (category_sq) — not null — 외래 키 → 카테고리.카테고리시퀀스 — NOT NULL

공연장 (concert_hall)

  • 공연장시퀀스 (concert_hall_sq) — not null — 기본 키 — NOT NULL
  • 공연장명 (concert_hall_name) — not null
  • 우편번호 (concert_hall_post) — not null
  • 공연장주소 (concert_hall_basic_addr) — not null
  • 상세주소 (concert_hall_detail_addr) — not null
  • 가로 좌석수 (concert_hall_width) — not null
  • 세로 좌석수 (concert_hall_height) — not null
  • 공연장상태 (concert_hall_stat) — not null

공연좌석 (show_seat)

  • 좌석시퀀스 (seat_sq) — not null — 외래 키 → 좌석.좌석시퀀스 — NOT NULL
  • 좌석구분시퀀스 (seat_class_sq) — not null — 외래 키 → 좌석구분.좌석구분시퀀스 — NOT NULL

알림 (alarm)

  • 알림시퀀스 (alarm_ sq) — not null — 기본 키 — NOT NULL
  • 알림상태 (alarm_stat) — not null
  • 회원시퀀스 (user_sq) — not null — 외래 키 → 회원.회원시퀀스 — NOT NULL
  • 공연시퀀스 (show_sq) — not null — 외래 키 → 공연.공연시퀀스 — NOT NULL

알림함 (notification)

  • 알림함시퀀스 (notification_sq) — not null — 기본 키 — NOT NULL
  • 수신자 (recipients) — not null
  • 제목 (recipients_title) — not null
  • 내용 (recipients_content) — not null
  • 등록날짜 (recipients_reg_date) — not null

예매 (ticketing)

  • 예매시퀀스 (ticketing_ sq) — not null — 기본 키 — NOT NULL
  • 예매날짜 (ticketing_date) — not null
  • 회원시퀀스 (user_sq) — not null — 외래 키 → 회원.회원시퀀스 — NOT NULL

좌석 (seat)

  • 좌석시퀀스 (seat_sq) — not null — 기본 키 — NOT NULL
  • 좌석번호 (seat_no) — not null
  • 공연장시퀀스 (concert_hall_sq) — not null — 외래 키 → 공연장.공연장시퀀스 — NOT NULL

좌석구분 (seat_class)

  • 좌석구분시퀀스 (seat_class_sq) — not null — 기본 키 — NOT NULL
  • 좌석등급 (seat_class) — not null
  • 좌석가격 (seat_price) — not null
  • 공연시퀀스 (show_sq) — not null — 외래 키 → 공연.공연시퀀스 — NOT NULL

카테고리 (category)

  • 카테고리시퀀스 (category_sq) — not null — 기본 키 — NOT NULL
  • 카테고리번호 (category_no) — not null
  • 카테고리이름 (category_name) — not null

티켓 (ticket)

  • 티켓시퀀스 (ticket_sq) — not null — 기본 키 — NOT NULL
  • 티켓번호 (ticket_no) — not null
  • 티켓좌석 (ticket_seat) — not null
  • 티켓가격 (ticket_seat_price) — not null
  • 티켓상태 (ticket_stat) — not null
  • 티켓활성화 (ticket_active) — not null
  • 회차시퀀스 (showing_sq) — not null — 외래 키 → 회차.회차시퀀스 — NOT NULL
  • 예매시퀀스 (ticketing_sq) — not null — 외래 키 → 예매.예매시퀀스 — NOT NULL

회원 (users)

  • 회원시퀀스 (user_sq) — not null — 기본 키 — NOT NULL
  • 회원아이디 (user_id) — not null
  • 회원비밀번호 (user_password) — not null
  • 회원이름 (user_name) — not null
  • 생년월일 (user_ birthday) — not null
  • 성별 (gender) — not null
  • 전화번호 (user_phone) — not null
  • 이메일 (user_email) — not null
  • 우편번호 (user_post) — not null
  • 주소 (user_basic_addr) — not null
  • 상세주소 (user_detail_addr) — not null
  • 가입날짜 (user_join_date) — not null
  • 탈퇴날짜 (user_withdrawal_date)
  • 회원등급 (user_role) — not null
  • 회원상태 (user_stat) — not null
  • 약관동의 (agree) — not null

회차 (showing)

  • 회차시퀀스 (showing_sq) — not null — 기본 키 — NOT NULL
  • 회차공연날짜 (showing_date) — not null
  • 회차공연시작시간 (start_time) — not null
  • 회차공연종료시간 (end_time) — not null
  • 공연정보 (show_information) — not null
  • 공연회차상태 (showing_stat) — not null
  • 공연시퀀스 (show_ sq) — not null — 외래 키 → 공연.공연시퀀스 — NOT NULL

회차좌석 (showing_seat)

  • 회차좌석시퀀스 (showing_seat_sq) — not null — 기본 키 — NOT NULL
  • 회차좌석번호 (showing_seat_no) — not null
  • 회차좌석상태 (showing_seat_stat) — not null
  • 회차시퀀스 (showing_sq) — not null — 외래 키 → 회차.회차시퀀스 — NOT NULL
  • 좌석구분시퀀스 (seat_class_sq) — not null — 외래 키 → 좌석구분.좌석구분시퀀스 — NOT NULL