티켓구조대

테이블 (6)

공연 (Concerts)

  • 공연ID (concert_id) — not null — 기본 키 — NOT NULL
  • 유저ID(공연 개최자) (user_id) — not null — 외래 키 → 회원.유저ID — NOT NULL
  • 공연장ID (concert_hall_id) — not null — 외래 키 → 공연장.공연장ID — NOT NULL
  • 공연 제목 (title) — not null
  • 공연 설명 (description) — not null
  • 공연 시작 일시 (start_time) — not null
  • 예매 시작 시간 (ticket_open) — not null
  • 예매 마감 시간 (ticket_close) — not null
  • 매진 여부 (is_sold_out) — not null
  • 생성일 (created_at) — not null
  • 수정일 (modified_at) — not null

공연장 (Stages)

  • 공연장ID (stagel_id) — not null — 기본 키 — NOT NULL
  • 총좌석수 (total_seats) — not null
  • 공연장명 (stage_name) — not null
  • 상태 (status) — not null
  • 생성일 (created_at) — not null
  • 수정일 (modified_at) — not null

공연좌석정보 (Concert_Seats)

  • 공연좌석정보ID (seat_info_id) — not null — 기본 키 — NOT NULL
  • 좌석ID (seat_id) — not null — 외래 키 → 좌석.좌석ID — NOT NULL
  • 공연ID (concert_id) — not null — 외래 키 → 공연.공연ID — NOT NULL
  • 예약ID (booking_id) — not null — 외래 키 → 예약.예약ID — NOT NULL
  • 예매여부 (is_reserved) — not null

예약 (Bookings)

  • 예약ID (booking_id) — not null — 기본 키 — NOT NULL
  • 유저ID (user_id) — not null — 외래 키 → 회원.유저ID — NOT NULL
  • 공연ID (concert_id) — not null — 외래 키 → 공연.공연ID — NOT NULL
  • 취소 여부 (isCanceled) — not null
  • 생성일 (created_at) — not null
  • 수정일 (modified_at) — not null

좌석 (Seats)

  • 좌석ID (seat_id) — not null — 기본 키 — NOT NULL
  • 공연장ID (concert_hall_id) — not null — 외래 키 → 공연장.공연장ID — NOT NULL
  • 좌석명 (seat_name) — not null
  • 좌석 가격 (seat_price) — not null
  • 생성일 (created_at) — not null
  • 수정일 (modified_at) — not null

회원 (Users)

  • 유저ID (user_id) — not null — 기본 키 — NOT NULL
  • 이메일 (email) — not null
  • 비밀번호 (password) — not null
  • 닉네임 (nickname) — not null
  • 포인트 (point) — not null
  • 권한 (roles) — not null
  • 탈퇴여부 (isDeleted) — not null
  • 생성일 (created_at) — not null
  • 수정일 (modified_at) — not null