Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Type
/
to search
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
Record-Management
/
Backend
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Files
Expand file tree
develop
Breadcrumbs
Backend
/
notification_history_table.sql
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
24 lines (23 loc) · 1.44 KB
develop
Breadcrumbs
Backend
/
notification_history_table.sql
Copy path
Top
File metadata and controls
Code
Blame
24 lines (23 loc) · 1.44 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
-- 알림 히스토리 테이블 생성 (notification_history)
-- 발송된 알림의 기록을 저장하여 앱 내 알림 센터 기능 제공
-- FCM 푸시 알림과 별도로 알림 목록 조회 및 읽음 상태 관리
CREATE TABLE notification_history (
id VARCHAR(50) NOT NULL COMMENT '알림 히스토리 고유 식별자',
user_id VARCHAR(50) NOT NULL COMMENT '사용자 ID (users 테이블 참조)',
type VARCHAR(50) NOT NULL COMMENT '알림 타입 (DAILY_RECORD_REMINDER, EXERCISE_REMINDER, HABIT_REMINDER, SYSTEM_ANNOUNCEMENT, TEST)',
title VARCHAR(200) NOT NULL COMMENT '알림 제목',
message VARCHAR(1000) NOT NULL COMMENT '알림 내용',
is_read BOOLEAN NOT NULL DEFAULT FALSE COMMENT '읽음 여부',
sent_at TIMESTAMP NOT NULL COMMENT '발송 시간',
read_at TIMESTAMP NULL COMMENT '읽은 시간',
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '생성 시간',
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '수정 시간',
PRIMARY KEY (id),
INDEX idx_user_id_sent_at (user_id, sent_at DESC),
INDEX idx_user_id_is_read (user_id, is_read),
INDEX idx_sent_at (sent_at DESC),
CONSTRAINT fk_notification_history_user_id
FOREIGN KEY (user_id) REFERENCES users(id)
ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
COMMENT='알림 히스토리 테이블 (앱 내 알림 센터용)';
You can’t perform that action at this time.