parade

Tables (9)

Untitled (user_points)

  • Key (id) — BIGINT — Primary key — NOT NULL — 포인트 계좌 PK
  • id (user_Id) — BIGINT — Foreign key → users.id — NOT NULL — 사용자 PK
  • Field (point) — BIGINT — 잔여 포인트
  • Field (updatedAt) — DATETIME — 갱신 시각

concert (concerts)

  • id — BIGINT — Primary key — NOT NULL — 콘서트 PK
  • title — VARCHAR(255) — 콘서트 제목
  • content — TEXT — 콘서트 내용

concert_schedules (concert_schedule)

  • id — BIGINT — Primary key — NOT NULL — 콘서트 스케쥴 PK
  • concert_id — BIGINT — Foreign key → concert.id — NOT NULL — 콘서트 PK
  • all_seats — INT — 총 좌석 수
  • available_seats (Field) — INT — 잔여석 수
  • performance_date — DATE — 콘서트 공연일

point_history

  • id — BIGINT — Primary key — NOT NULL — history PK
  • user_id — BIGINT — Foreign key → users.id — NOT NULL — 사용자 PK
  • type — VARHCAR(20) — 결제 타입
  • amount — BIGINT — 포인트 양
  • reason — VARCHAR(255) — 세부 정보

queue_tokens

  • id — BIGINT — Primary key — NOT NULL — 대기열 번호 PK
  • user_id — BIGINT — Foreign key → users.id — NOT NULL — 사용자 PK
  • status — VARCHAR(20) — 대기 상태, WAIT: 기다리는 중, PASS: 대기열 통과 상태
  • created_at — DATETIME — 토큰 생성 시각
  • updated_at — DATETIME — 토큰 갱신 시각

seat_payments

  • id — BIGINT — Primary key — NOT NULL — 좌석 결제 PK
  • user_id — BIGINT — Foreign key → users.id — NOT NULL — 사용자 PK
  • reservation_id (seat_reservation_id) — BIGINT — Foreign key → seat_reservations.id — NOT NULL — 좌석 예약 PK
  • content — description — 결제 내역

seat_reservations

  • id — BIGINT — Primary key — NOT NULL — 좌석 예약 PK
  • user_id — BIGINT — Foreign key → users.id — NOT NULL — 사용자 PK
  • seat_id — BIGINT — Foreign key → seats.id — NOT NULL — 좌석 PK
  • status — VARCHAR(20) — 예약 상태, COMPLETE: 예약 완료, PAYING:결제중, CANCEL: 예약 취소
  • created_at — DATETIME — 예약 생성 시각

seats

  • id — BIGINT — Primary key — NOT NULL — 좌석 PK
  • schedule_id — BIGINT — Foreign key → concert_schedules.id — NOT NULL — 콘서트 스케쥴 PK
  • name — VARCHAR(10) — 좌석명
  • price — BIGINT — 좌석 예약 가격
  • status — VARCHAR(20) — 좌석 예약 상태. BOOKED : 예약된 상태, EMPTY : 예약되지 않은 상태

users

  • id — BIGINT — Primary key — NOT NULL — 사용자 PK
  • email — VARCHAR(50) — 이메일
  • password — VARCHAR(255) — 비밀번호
  • point — BIGINT — 포인트 잔액