pt-reservation
Tables (7)
BOOKING (예약)
- booking_id (Key) — Primary key — NOT NULL
- start_time (시작 일시)
- end_time (종료 일시)
- is_discard (이용권 차감 여부)
- status (예약 취소 여부)
- attended (출석 여부)
- cancled_at (취소 시각)
- ticket_id (Key2) — Foreign key → PASS.pass_id — NOT NULL
- member_id (Key3) — Foreign key → User.user_id — NOT NULL
BULK_PASS (다수의 이용자에게 이용권을 지급하기 위함)
- bulk_pass_id (Key) — Primary key — NOT NULL
- status (상태)
- used_pass (이용권 사용 여부)
- attended (출석 여부)
- started_at (시작 일시)
- ended_at (종료 일시)
- count (이용권 수)
- created_at (시작일)
- modified_at (수정일)
- package_id (Key2) — Foreign key → PACKAGE.package_id — NOT NULL
NOTIFICATION (Untitled)
- notification_id (Key) — Primary key — NOT NULL
- uuid (사용자 uuid(카카오톡))
- event (이벤트)
- text (알림 내용)
- sent (발송 여부)
- sent_at (발송 일시)
- created_at (생성일)
- modified_at (수정일)
PACKAGE (Untitled3)
- package_id (Key) — Primary key — NOT NULL
- name (패키지 이름)
- period (기간)
- count (횟수)
- created_at (생성일)
- modified_at (수정일)
PASS (이용권)
- pass_id (Key) — Primary key — NOT NULL
- remaining_count (잔여 횟수)
- status (만료 여부)
- start_time (시작 일시)
- end_time (종료 일시)
- expired_at (만료일)
- created_at (생성일)
- modified_at (수정일)
- package_id (Key2) — Foreign key → PACKAGE.package_id — NOT NULL
- member_id (Key3) — Foreign key → User.user_id — NOT NULL
USER_GROUP (Untitled2)
- user_group_id (Key) — Primary key — NOT NULL
- user_group_name (사용자 그룹 이름)
- description (설명)
- created_at (생성일)
- modified_at (수정일)
- bulk_pass_id (Key2) — Foreign key → BULK_PASS.bulk_pass_id — NOT NULL
User (사용자)
- user_id (Key) — Primary key — NOT NULL
- name (이름)
- state (상태)
- phone (전화번호)
- user_group_id (Key2) — Foreign key → USER_GROUP.user_group_id — NOT NULL
- meta (메타 정보)