케이팝
테이블 (7)
사용자 (user)
- 사용자_id (user_id) — 기본 키 — NOT NULL
- 가입일 (date of joining) — date
- 이메일 (email)
- 성별 (gender) — text
- 나이 (age) — int
아티스트 (artist)
- 아티스트_id (artist_id) — 기본 키 — NOT NULL
- 아티스트 이름 (artist_name)
- 소속사 (agency)
조공 (product)
- 조공_id (product_id) — 기본 키 — NOT NULL
- 아티스트_id (artist_id) — 외래 키 → 아티스트.아티스트_id — NOT NULL
- 시작일 (start_date) — date
- 종료일 (end_date) — date
- 목표일 (target_date) — date
- 목표금액 (target_amount) — int
- 참여인원 (number_of_participants) — int
- 오늘 모인 금액 (amount_collected_today) — int
- 총 모인 금액 (total_amount) — int
크레딧 (credit)
- 크레딧_id (credit_id) — int — 기본 키 — NOT NULL
- 사용자_id (user_id) — 외래 키 → 사용자.사용자_id — NOT NULL
- 금액 (amount) — int
- 충전날짜 (charge_date) — date
- 충전금액 (charge_amount) — int
- 총 사용한 금액 (total_amount_used) — int
- 하루 사용 금액 (daily_usage_amount) — int
- 충전방식 (charging_method)
투표하다 (vote)
- 투표_id (vote_id) — 기본 키 — NOT NULL
- 사용자_id (user_id) — text — 외래 키 → 사용자.사용자_id — NOT NULL
- 아티스트_id (artist_id) — 외래 키 → 아티스트.아티스트_id — NOT NULL
팔로우하다 (follow)
- 팔로우_id (follow_id) — 기본 키 — NOT NULL
- 사용자_id (user_id) — 외래 키 → 사용자.사용자_id — NOT NULL
- 아티스트_id (artist_id) — 외래 키 → 아티스트.아티스트_id — NOT NULL
후원하다 (support)
- 후원_id (support_id) — 기본 키 — NOT NULL
- 사용자_id (user_id) — 외래 키 → 사용자.사용자_id — NOT NULL
- 아티스트_id (artist_id) — 외래 키 → 아티스트.아티스트_id — NOT NULL