Monew
Tables (10)
Articles (뉴스 기사)
- 아이디 (id) — Primary key — NOT NULL
- 출처 (source)
- 원본기사링크 (sourceUrl)
- 제목 (title)
- 작성일 (publishDate)
- 요약 (summary)
- 댓글수 (commentCount)
- 조회수 (viewCount)
- 삭제 여부 (deleted)
Comments (댓글)
- 아이디 (id) — Primary key — NOT NULL
- 뉴스 기사 아이디 (articleId)
- 사용자 아이디 (userId) — Foreign key → Users.아이디 — NOT NULL
- 댓글 내용 (content)
- 좋아요 수 (likeCount)
- 생성일 (createdAt)
- 삭제 여부 (deleted)
InterestKeywords (관심사-키워드)
- 관심사 아이디 (interestId) — Foreign key → Interestes.아이디 — NOT NULL
- 키워드 아이디 (keywordId) — Foreign key → Keywords.아이디 — NOT NULL
Interestes (관심사)
- 아이디 (id) — Primary key — NOT NULL
- 이름 (name)
- 구독자수 (subscriberCount)
Keywords (키워드)
- 아이디 (id) — Primary key — NOT NULL
- 키워드 (keyword)
Notifications (알림)
- 아이디 (id) — Primary key — NOT NULL
- 생성일 (createdAt)
- 수정일 (updatedAt)
- 확인 여부 (confirmed)
- 사용자 아이디 (userId) — Foreign key → Users.아이디 — NOT NULL
- 내용 (content)
- 변경된 리소스의 타입 (resourceType)
- 변경된 리소스의 아이디 (resourceId)
Users (사용자)
- 아이디 (id) — Primary key — NOT NULL
- 이메일 (email)
- 닉네임 (nickname)
- 비밀번호 (password)
- 가입날짜 (createdAt)
- 삭제 (deleted)
user_articles (Untitled)
- 아이디 (Key) — Primary key — NOT NULL
- 사용자 아이디 (user_id) — Foreign key → Users.아이디 — NOT NULL
- 뉴스 아이디 (article_id) — Foreign key → Articles.아이디 — NOT NULL
- 읽음 여부 (viewedByMe)
user_comment_like (사용자-좋아요한 댓글)
- 사용자 아이디 (user_id) — Foreign key → Users.아이디 — NOT NULL
- 댓글 아이디 (comment_id) — Foreign key → Comments.아이디 — NOT NULL
- 좋아요 여부 (likedByMe)
user_interestes (사용자-관심사)
- 아이디 (id) — Primary key — NOT NULL
- 사용자 아이디 (userId) — Foreign key → Users.아이디 — NOT NULL
- 관심사 아이디 (interestedId) — Foreign key → Interestes.아이디 — NOT NULL
- 구독 여부 (subscribedByMe)