dream
Tables (9)
Coupon (.)
- 쿠폰 Id (coupon_id) — BIGINT — Primary key — NOT NULL
- 이름 (name) — VARCHAR(30)
- 할인비율 (discount_rate)
- Field (localDateTime)
Match (경기)
- 경기 Id (match_id) — BIGINT — Primary key — NOT NULL
- 유저 ID (user_id) — BIGINT — Foreign key → Stadium.유저 ID — NOT NULL
- 경기장 Id (stadium_id) — BIGINT — Foreign key → Stadium.경기장 Id — NOT NULL
- 팀 Id (team_id) — BIGINT — Foreign key → Team.팀 Id — NOT NULL
- 비용 (cost) — VARCHAR(30)
- 매치날짜 (match_date) — DateTime
- 홈 팀 (home_team) — VARCHAR(30)
- 어웨이 팀 (away_team) — VARCHAR(30)
- 생성 날짜 (localDateTime) — DateTime
MatchSeats (Untitled)
- 경기좌석 Id (matchSeat_id) — BIGINT — Primary key — NOT NULL
- 좌석 Id (seats_id) — BIGINT — Foreign key → seats.좌석 Id — NOT NULL
- 경기 Id (match_id) — BIGINT — Foreign key → Match.경기 Id — NOT NULL
- 경기장 id(경기 id에서) (stadium_id) — BIGINT
- 선택좌석 좌석수 (capacity) — BIGINT
- 선택좌석 비용 (a_seats, b_seats) — VARCHAR(30)
Reservation (예약)
- 예약 Id (reservation_id) — BIGINT — Primary key — NOT NULL
- 유저 ID(security) (user_id) — BIGINT — Foreign key → Users.유저 ID — NOT NULL
- 유저쿠폰 ID (user_coupon_id) — BIGINT — Foreign key → User Coupon.유저쿠폰 ID — NOT NULL
- 경기좌석 Id (matchSeat_id) — BIGINT — Foreign key → MatchSeats.경기좌석 Id — NOT NULL
- 좌석 Id(?) (seats_id2(matchSeats_id)) — BIGINT — Foreign key → MatchSeats.좌석 Id — NOT NULL
- 이름 (name) — VARCHAR(30)
- 생성 날짜 (localDateTime) — DateTime
- 예약여부 (is_reserved) — BOOLEAN
Stadium (경기장)
- 경기장 Id (stadium_id) — BIGINT — Primary key — NOT NULL
- 유저 ID (user_id) — BIGINT — Foreign key → Users.유저 ID — NOT NULL
- 이름 (stadium_name) — VARCHAR(30)
Team (팀)
- 팀 Id (team_id) — BIGINT — Primary key — NOT NULL
- 유저 ID (user_id) — BIGINT — Foreign key → Users.유저 ID — NOT NULL
- 이름 (name) — VARCHAR(30)
- 생성 날짜 (localDateTime) — DateTime
- 수정 날짜 (modifiedTime) — DateTime
User Coupon (..)
- 유저쿠폰 ID (user_coupon_id) — BIGINT — Primary key — NOT NULL
- 유저 ID (user_id) — BIGINT — Foreign key → Users.유저 ID — NOT NULL
- 쿠폰 Id (coupon_id2) — BIGINT — Foreign key → Coupon.쿠폰 Id — NOT NULL
- 이름 (name) — VARCHAR(30)
- 쿠폰 사용 여부 (is_used)
- Field (localDateTime)
Users (유저)
- 유저 ID (user_id) — BIGINT — Primary key — NOT NULL
- 이메일 (email) — VARCHAR(30)
- 패스워드 (password) — VARCHAR(30)
- 닉네임 (nickname) — VARCHAR(30)
- 역할 (user_role) — VARCHAR(5)
- 삭제여부 (deleted) — BOOLEAN
- 생성 날짜 (localDateTime) — DateTime
- 수정 날짜 (modifiedTime) — DateTime
- 로그인 역할 (LoginType)
seats (좌석)
- 좌석 Id (seats_id) — BIGINT — Primary key — NOT NULL
- 이름 (name) — VARCHAR(30)
- 생성 날짜 (localDateTime) — DateTime
- 수정 날짜 (modifiedTime) — DateTime