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
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
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 }}
Computer-Research-Association
CC_Maker_BE
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
dev
Breadcrumbs
CC_Maker_BE
/
create_privacy_agreement_tables.sql
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
58 lines (48 loc) · 2.3 KB
dev
Breadcrumbs
CC_Maker_BE
/
create_privacy_agreement_tables.sql
Copy path
Top
File metadata and controls
Code
Blame
58 lines (48 loc) · 2.3 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
-- 개인정보 동의서 테이블 생성
CREATE TABLE privacy_agreements (
id BIGINT AUTO_INCREMENT PRIMARY KEY,
version VARCHAR(20) NOT NULL UNIQUE,
content TEXT NOT NULL,
effective_date DATE NOT NULL,
created_at DATETIME NOT NULL,
is_active BOOLEAN NOT NULL DEFAULT TRUE
);
-- users 테이블에 개인정보 동의 관련 컬럼 추가
ALTER TABLE users
ADD COLUMN privacy_agreement_version VARCHAR(20),
ADD COLUMN privacy_agreed BOOLEAN DEFAULT FALSE,
ADD COLUMN privacy_agreed_at DATETIME,
ADD COLUMN privacy_agreed_method VARCHAR(50),
ADD COLUMN privacy_agreed_environment VARCHAR(20);
-- 초기 개인정보 동의서 데이터 삽입 (v1.0)
INSERT INTO privacy_agreements (version, content, effective_date, created_at, is_active) VALUES (
'v1.0',
'개인정보 수집 및 이용에 대한 안내
1. 수집하는 개인정보 항목
- 필수항목: 이름, 생년월일, 이메일, 비밀번호, 성별
- 선택항목: 없음
2. 개인정보의 수집 및 이용목적
- 회원가입 및 서비스 이용
- 서비스 제공 및 운영
- 고객상담 및 문의응답
- 서비스 개선 및 신규 서비스 개발
3. 개인정보의 보유 및 이용기간
- 회원 탈퇴 시까지 (단, 관련 법령에 따라 보존이 필요한 경우 해당 기간까지)
4. 개인정보의 파기절차 및 방법
- 전자적 파일 형태로 저장된 개인정보는 복구 불가능한 방법으로 영구 삭제
- 종이에 출력된 개인정보는 분쇄기로 분쇄하거나 소각을 통하여 파기
5. 동의 거부권 및 동의 거부에 따른 불이익
- 개인정보 수집 및 이용에 대한 동의를 거부할 수 있습니다.
- 동의를 거부할 경우 회원가입 및 서비스 이용이 제한됩니다.
위 내용에 동의하시면 체크박스를 선택해 주세요.
─────────────────────────────────────────
시행일: 2025.08.20 / 버전: v1.0',
'2025-08-20',
NOW(),
TRUE
);
-- 인덱스 생성
CREATE INDEX idx_privacy_agreements_version ON privacy_agreements(version);
CREATE INDEX idx_privacy_agreements_active ON privacy_agreements(is_active);
CREATE INDEX idx_users_privacy_version ON users(privacy_agreement_version);
CREATE INDEX idx_users_privacy_agreed ON users(privacy_agreed);
You can’t perform that action at this time.