스터디카페 예약ERD
테이블 (10)
_유저_쿠폰 (_User_Coupon)
- 유저id (userId) — number — 외래 키 → 유저.유저id — NOT NULL
- 쿠폰 id (couponId) — number — 외래 키 → 쿠폰.쿠폰 id — NOT NULL
_카페_편의시설 (_Cafe_Facility)
- 스터디카페 id (cafeId) — number — 외래 키 → 카페.스터디카페 id — NOT NULL
- 편의시설id (facilityId) — number — 외래 키 → 편의시설.편의시설id — NOT NULL
예약 (Reservation)
- 예약 id (id) — number — 기본 키 — NOT NULL
- 유저id (userId) — number — 외래 키 → 유저.유저id — NOT NULL
- 스터디카페 id (cafeId) — number — 외래 키 → 카페.스터디카페 id — NOT NULL
- 이용권id (timeId) — number — 외래 키 → 이용권.이용권id — NOT NULL
- 좌석번호 (seatNumber) — number — NOT NULL
- 예약날짜 (createdAt) — Date — NOT NULL
- 수정일 (updatedAt) — Date — NOT NULL
유저 (User)
- 유저id (id) — number — 기본 키 — NOT NULL
- 유저 이미지 (userImage) — string
- 유저 이름 (userName) — string — NOT NULL
- 유저 닉네임 (userNickname) — string — NOT NULL
- 유저 전화번호 (userPhone) — number — NOT NULL
- 보호자 연락처 (parentPhone) — number
- 유저패스워드 (userPassword) — string — NOT NULL
- 가입일 (createdAt) — Date — NOT NULL
- 수정일 (updatedAt) — Date
이용권 (CashTable)
- 이용권id (id) — number — 기본 키 — NOT NULL
- 이용권이름 (cashName) — string — NOT NULL
- 이용권가격 (cashPrice) — number — NOT NULL
- 이용권 시간 (cashTime) — Date — NOT NULL
- 생성일 (createdAt) — Date — NOT NULL
- 수정일 (updatedAt) — Date — NOT NULL
카페 (Cafe)
- 스터디카페 id (id) — number — 기본 키 — NOT NULL
- 카페이미지 (cafeImage) — string — NOT NULL
- 카페 이름 (cafeName) — string — NOT NULL
- 카페 주소 (cafeAddress) — string — NOT NULL
- 카페 운영시간 (cafeTime) — string — NOT NULL
- 카페 정보 (cafeNote) — string
- 카페 전화번호 (cafePhone) — string — NOT NULL
- 카페 좌석개 (cafeSeatCount) — number — NOT NULL
- 카페위도 (cafeLat) — string — NOT NULL
- 카페경도 (cafeLon) — string — NOT NULL
- 개설일 (createdAt) — Date — NOT NULL
- 수정일 (updatedAt) — Date — NOT NULL
쿠폰 (Coupon)
- 쿠폰 id (id) — number — 기본 키 — NOT NULL
- 쿠폰이름 (couponName) — string — NOT NULL
- 쿠폰 할인가 (couponSale) — number — NOT NULL
- 쿠폰 코드 (couponCode) — number — NOT NULL
- 생성일 (createdAt) — Date — NOT NULL
- 수정일 (updatedAt) — Date — NOT NULL
편의시설 (Facility)
- 편의시설id (id) — number — 기본 키 — NOT NULL
- 편의시설이름 (facilityName) — string — NOT NULL
- 편의시설이미지 (facilityImage) — string — NOT NULL
- 생성일 (createdAt) — Date — NOT NULL
- 수정일 (updatedAt) — Date — NOT NULL
포인트 결제내역 (pointTransAction)
- 결제내역 id (id) — number — 기본 키 — NOT NULL
- 유저id (userId) — number — 외래 키 → 유저.유저id — NOT NULL
- 결제내역uid (impUid) — string — NOT NULL
- 결제 금액 (amount) — number — NOT NULL
- 생성일 (createdAt) — Date — NOT NULL
- 결제 상태 (status) — Enum — NOT NULL
할일 (Todo)
- 할일id (id) — number — 기본 키 — NOT NULL
- 유저id (userId) — number — 외래 키 → 유저.유저id — NOT NULL
- 내용 (todoContents) — String — NOT NULL
- 생성일 (createdAt) — Date — NOT NULL
- 수정일 (updatedAt) — NOT NULL