f-lab-edu / f-lab-edu/spring-reservation-core
Reservation 엔티티 구현
Open
area:reservation
step:1-core
- Dominant language
- Java
- Stars
- 0
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
# Reservation 엔티티 및 상태 전이 규칙 구현
## 📌 Summary
Slot에 대한 예약을 관리하는 Reservation 엔티티를 구현한다.
---
## 🧩 Tasks
- [ ] `Reservation` 엔티티 생성
- 필드: `id`, `slotId(or Slot)`, `userId`, `status`, `createdAt`, `updatedAt`
- [ ] `ReservationStatus` enum (`CONFIRMED`, `CANCELLED`)
- [ ] 상태 전이 메서드
- [ ] `cancel()` → CONFIRMED → CANCELLED
- [ ] CANCELLED → CONFIRMED 방지 (예외 발생)
---
## 🔍 Notes
- 취소 트랜잭션은 Slot.remaining 증가와 연계됨
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.