DoriDos_ERD
Tables (11)
Category
- 아이디 (id) — bigint — Primary key — NOT NULL — key
- 카테고리이름 (name) — varchar(255) — NOT NULL
- 부모아이디 (parent_id) — bigint
Outbox
- 아이디 (id) — bigint — Primary key — NOT NULL
- 결제번호 (aggregate_id) — bigint — NOT NULL
- 이벤트타입 (eventType) — varchar — NOT NULL
- 내용 (payload) — varchar — NOT NULL
- 발행상태 (status) — varchar — NOT NULL
- 생성일 (create_at) — datetime — NOT NULL
Place
- 아이디 (id) — bigint — Primary key — NOT NULL
- 장소명 (name) — varchr — NOT NULL
- 위치 (location) — varchar — NOT NULL
- 생성일 (creat_at) — datetime — NOT NULL
- 수정일 (update_at) — datetime — NOT NULL
Reservation
- 예매ID (id) — bigint — Primary key — NOT NULL — key
- 티켓아이디 (ticket_id) — bigint — Foreign key — NOT NULL
- 예약일 (create_at) — datetime — NOT NULL
- Key — Foreign key → Ticket.아이디 — NOT NULL
Review
- 아이디 (id) — bigint — Primary key — NOT NULL
- 내용 (content) — varchar — NOT NULL
- 별점 (rating) — bigint — NOT NULL
- 생성일 (create_at) — datetime — NOT NULL
- 수정일 (update_at) — datetime — NOT NULL
- 삭제일 (delete_at) — datetime
- 유저아이디 (user_id) — bigint — Foreign key → Ticket.아이디 — NOT NULL
- 티켓아이디 (ticket_id) — bigint — Foreign key → User.아이디 — NOT NULL — key
Schedule
- 아이디 (id) — bigint — Primary key — NOT NULL
- 시작일 (startDate) — datetime — NOT NULL
- 종료일 (endDate) — datetime — NOT NULL
- 생성일 (create_at) — datetime — NOT NULL
- 수정일 (update_atd) — datetime — NOT NULL
- 티켓아이디 (ticket_id) — bigint — Foreign key → Ticket.아이디 — NOT NULL
- 좌석아이디 (scheduleSeat_id) — bigint — Foreign key → SechduleSeat.아이디 — NOT NULL
Seat
- 아이디 (id) — bigint — Primary key — NOT NULL — key
- 구역 (section) — varchar — NOT NULL
- 좌석번호 (seatNum) — bigint — NOT NULL
- 가격 (price) — bigint — NOT NULL
- 생성일 (creat_at) — datetime — NOT NULL
- 수정일 (update_at) — datetime — NOT NULL
- 장소아이디 (place_id) — bigint — Foreign key → Place.아이디 — NOT NULL
SechduleSeat
- 아이디 (id) — bigint — Primary key — NOT NULL
- 구역 (section) — varchar — NOT NULL
- 좌석번호 (seatNum) — bigint — NOT NULL
- 가격 (price) — bigint — NOT NULL
- 좌석예매여부 (isReserved) — boolean — NOT NULL
- 생성일 (creat_at) — datetime — NOT NULL
- 수정일 (update_at) — datetime — NOT NULL
Ticket
- 아이디 (id) — bigint — Primary key — NOT NULL
- 제목 (title) — varchar(255) — NOT NULL — unique
- 내용 (content) — text — NOT NULL
- 상영시간 (running_time) — varchar(255) — NOT NULL — nullable
- 유저타입 (userType) — varchar(255) — NOT NULL
- 가격 (price) — varchar(255) — NOT NULL
- 시작날짜 (start_date) — datetime — NOT NULL
- 예매 시작 날짜 (open_date) — datetime — NOT NULL
- 종료 날짜 (end_date) — datetime — NOT NULL
- 생성일 (create_at) — datetime — NOT NULL
- 삭제일 (delete_at) — datetime — nullable
- 수정일 (update_at) — datetime — NOT NULL
- 유저아이디(admin)) (user_id) — bigint — Foreign key → User.아이디 — NOT NULL
- 카테고리 (category_id) — bigint — Foreign key → Category.아이디 — NOT NULL
- 장소 (place_id) — bigint — Foreign key → Place.아이디 — NOT NULL
User
- 아이디 (id) — bigint — Primary key — NOT NULL — key
- 패스워드 (password) — varchar(255) — NOT NULL
- 닉네임 (nickname) — varchar(255) — NOT NULL — unique
- 이메일 (email) — varchar(255) — NOT NULL — unique
- 휴대전화 (phone_number) — char(11) — NOT NULL — unique
- 유저타입 (user_type) — enum(ticket_manager, user, social) — NOT NULL
- 생성날짜 (create_at) — datetime — NOT NULL
- 탈퇴날짜 (delete_at) — datetime — nullable
- 수정날짜 (update_at) — datetime — NOT NULL