v1
Tables (5)
Flight (비행기 테이블)
- 비행기 아이디 (FlightId) — NOTNULL — Primary key — NOT NULL
- 비행기 출발 시간 (departureTime) — NOTNULL
- 비행기 도착 시간 (arrivalTime) — NOTNULL
- 비행기 출발지 (origin) — NOTNULL
- 비행기 도착지 (destination) — NOTNULL
Member (유저 테이블)
- 유저 아이디 (UserId) — NOTNULL — Primary key — NOT NULL
- 이름 (Name) — NOTNULL
- 비밀번호 (Password) — NOTNULL
- 이메일 (Email) — NOTNULL
- 전화번호 (PhoneNumber) — NOTNULL
Payment (결제 테이블)
- 주문 아이디 (OrderId) — NOTNULL — Primary key — NOT NULL
- 예약 아이디 (ReservationId) — NOTNULL — Foreign key → Reservation.예약 아이디 — NOT NULL
- 승객 아이디 (UserId) — NOTNULL — Foreign key → Reservation.승객 아이디 — NOT NULL
- 좌석 아이디 (SeatId) — NOTNULL — Foreign key → Reservation.좌석 아이디 — NOT NULL
- 비행기 아이디 (FlightId) — NOTNULL — Foreign key → Reservation.비행기 아이디 — NOT NULL
- 결제번호 (serialNumber) — NOTNULL
- 결제시각 (createdAt) — NOTNULL
- 취소여부 (isCancled) — NOTNULL
Reservation (예약 테이블)
- 예약 아이디 (ReservationId) — NOTNULL — Primary key — NOT NULL
- 승객 아이디 (UserId) — NOTNULL — Foreign key → Member.유저 아이디 — NOT NULL
- 좌석 아이디 (SeatId) — NOTNULL — Foreign key → Seat.좌석 아이디 — NOT NULL
- 비행기 아이디 (FlightId) — NOTNULL — Foreign key → Seat.비행기 아이디 — NOT NULL
- 예약 날짜 (reservationDate) — NOTNULL
- 결제 여부 (isPayment) — NOTNULL
Seat (좌석 테이블)
- 좌석 아이디 (SeatId) — NOTNULL — Primary key — NOT NULL
- 비행기 아이디 (FlightId) — NOTNULL — Foreign key → Flight.비행기 아이디 — NOT NULL
- 좌석 가격 (price) — NOTNULL
- 좌석 등급 (grade) — NOTNULL
- 구매 가능 여부 (isAvailable) — NOTNULL