콘서트예약

테이블 (9)

Copy Of 예약 (CopyOfreservation)

  • Key (id) — int — 기본 키 — NOT NULL
  • 유저ID (user_id) — int — 외래 키 → 유저.Key — NOT NULL
  • 좌석ID (seat_id) — int — 외래 키 → 좌석.Key — NOT NULL
  • 스케쥴ID (schedule_id) — int — 외래 키 → 좌석.스케쥴ID — NOT NULL
  • 콘서트명 (concert_name) — varchar
  • 좌석번호 (seat_no)
  • 좌석등급 (seat_grade)
  • 상태 (state) — varchar
  • 가격 (price)
  • 생성시간 (created_time) — timestamp
  • 만료시간 (expired_time) — timestamp

결제내역 (payment)

  • Key (id) — int — 기본 키 — NOT NULL
  • 유저ID (user_id) — int — 외래 키 → 유저.Key — NOT NULL
  • 예약ID (reservation_id) — int — 외래 키 → 예약.Key — NOT NULL
  • 생성시간 (created_time) — timestamp

스케쥴 (schedule)

  • Key (id) — int — 기본 키 — NOT NULL
  • 콘서트ID (conceret_id) — int — 외래 키 → 콘서트.Key — NOT NULL
  • 날짜 (date) — timestamp

예약 (reservation)

  • Key (id) — int — 기본 키 — NOT NULL
  • 유저ID (user_id) — int — 외래 키 → 유저.Key — NOT NULL
  • 좌석ID (seat_id) — int — 외래 키 → 좌석.Key — NOT NULL
  • 콘서트ID (concert_id) — int — 외래 키 → 좌석.콘서트ID — NOT NULL
  • 스케쥴ID (schedule_id) — int — 외래 키 → 좌석.스케쥴ID — NOT NULL
  • 생성시간 (created_time) — timestamp
  • 만료시간 (expired_time) — timestamp
  • 상태 (state) — varchar

유저 (users)

  • Key (id) — int — 기본 키 — NOT NULL
  • 이름 (name)

좌석 (seat)

  • Key (id) — int — 기본 키 — NOT NULL
  • 콘서트ID (concert_id) — int — 외래 키 → 스케쥴.콘서트ID — NOT NULL
  • 스케쥴ID (schedule_id) — int — 외래 키 → 스케쥴.Key — NOT NULL
  • 좌석번호 (seat_no) — int
  • 상태 (state) — varchar
  • 가격 (price) — long
  • 등급 (grade) — char

콘서트 (concert)

  • Key (id) — int — 기본 키 — NOT NULL
  • 콘서트명 (name) — varchar

토큰 (token)

  • Key (id) — int — 기본 키 — NOT NULL
  • 유저ID (user_id) — int — 외래 키 → 유저.Key — NOT NULL
  • 토큰 KEY (key) — uuid
  • 생성시간 (created_time) — timestamp
  • 만료 시간 (expired_time) — timestamp
  • 상태 (state) — varchar

포인트 (point)

  • Key (id) — int — 기본 키 — NOT NULL
  • 유저ID (user_id) — int — 외래 키 → 유저.Key — NOT NULL
  • 값 (amount) — long