givy
테이블 (3)
알림 (Notofication)
- 알림ID (notification_id) — bigint — 기본 키 — NOT NULL
- 알림타입 (notification_type) — NOT NULL — CHALLENGE, GUIDE, AD, SYSTEM
- 제목 (title) — NOT NULL
- 내용 (body) — NOT NULL
- 대상 타입 (target_type) — NOT NULL — 페이지 이동할 종류(challenge, guide, home. . )
- 대상 ID (target)id) — bigint — 이동할 리소스 ID
- 생성일 (created_at) — NOT NULL — 알림 생성 시각
- 수정일 (update_at) — NOT NULL — 수정 시각
유저 (user)
- 유저ID (user_id) — bigint — 기본 키 — NOT NULL
유저알림 (user_notification)
- 유저알림ID (user_notification_id) — bigint — 기본 키 — NOT NULL
- 알림ID (notification_id2) — bigint — 외래 키 → 알림.알림ID — NOT NULL
- 유저ID (user_id) — bigint — 외래 키 → 유저.유저ID — NOT NULL
- 읽음 여부 (is_read) — NOT NULL — 알림 읽음 여부
- 전달 일시 (delivered_at) — NOT NULL — 알림 전달 시각
- 생성일 (created_at) — NOT NULL — 생성 시각