항해99
테이블 (7)
ActivityFeed (뉴스피드)
- id (feed_id) — Long — 기본 키 — NOT NULL
- id (user_id) — Long — 외래 키 → User.id — NOT NULL
- id (post_id) — Long — 외래 키 → Post.id — NOT NULL
- id (activity_id) — Long — 외래 키 → User.id — NOT NULL
- type (activity_type) — FeedType
- CreatedAt — DATETIME
ActivityNotification (알림)
- id (activity_notification) — Long — 기본 키 — NOT NULL
- id (user_id) — Long — 외래 키 → User.id — NOT NULL
- id (like_id) — Long — 외래 키 → Like.id — NOT NULL
- id (comment_id) — Long — 외래 키 → Comment.id — NOT NULL
- id (activity_id) — Long — 외래 키 → User.id — NOT NULL
- type (activity_type) — NotificationType
- CreatedAt — DATETIME
- UpdatedAt — DATETIME
Comment (댓글)
- id (comment_id) — Long — 기본 키 — NOT NULL
- id (post_id) — Long — 외래 키 → Post.id — NOT NULL
- id (user_id) — Long — 외래 키 → Post.id — NOT NULL
- content — Stirng
- CreatedAt — DATETIME
- UpdatedAt — DATETIME
Follow (팔로우)
- id (follow_id) — Long — 기본 키 — NOT NULL
- follower — User — 외래 키 → User.id — NOT NULL
- following — User — 외래 키 → User.id — NOT NULL
- CreatedAt — DATETIME
Like (좋아요)
- id (like_id) — Long — 기본 키 — NOT NULL
- id (post_id) — Long — 외래 키 → Post.id — NOT NULL
- CreatedAt — DATETIME
- id (user_id) — Long — 외래 키 → User.id — NOT NULL
Post (게시물)
- id (post_id) — Long — 기본 키 — NOT NULL
- id (user_id) — Long — 외래 키 → User.id — NOT NULL
- title — String
- content — String
- CreatedAt — DATETIME
- UpdatedAt — DATETIME
User (사용자)
- id (user_id) — Long — 기본 키 — NOT NULL
- username (name) — String
- password — String
- email — String
- introduction — String
- profile_image — String
- CreatedAt — DATETIME