메모리프
테이블 (12)
데코 (Deco)
- 데코아이디 (id) — int — 기본 키 — NOT NULL
- 메모아이디 (memoId) — int — 외래 키 → 메모.메모아이디 — NOT NULL
- 종류 (kind) — roel
- 추가내용 (extra) — varchar(60)
메모 (Memo)
- 메모아이디 (id) — int — 기본 키 — NOT NULL
- 유저아이디 (userId) — int — 외래 키 → 유저.유저아이디 — NOT NULL
- 내용 (content) — varchar(191)
- 생성일 (createdAt) — datetime
- 수정일 (updatedAt) — datetime
북마크 (BookMark)
- 북마크아이디 (id) — int — 기본 키 — NOT NULL
- 메모아이디 (memoId) — int — 외래 키 → 메모.메모아이디 — NOT NULL
- 유저아이디 (userId) — int — 외래 키 → 유저.유저아이디 — NOT NULL
- 생성일 (createdAt) — datetime
상위메모 (Title)
- 상위메모아이디 (titleId) — int — 외래 키 → 메모.메모아이디 — NOT NULL
알림 (Notification)
- 알람아이디 (id) — int — 기본 키 — NOT NULL
- 수신유저아이디 (recipientId) — int — 외래 키 → 유저.받는사람아이디 — NOT NULL
- 발신유저아이디 (sanderId) — int — 외래 키 → 유저.보낸사람아이디 — NOT NULL
- 메모아이디 (memoId) — int — 외래 키 → 메모.메모아이디 — NOT NULL
- 영역 (aria) — roel
유저 (User)
- 유저아이디 (id) — int — 기본 키 — NOT NULL
- 소셜계정크래딧 (credit) — varchar(191)
- 유저번호 (userNum) — int
- 이름 (name) — varChar(10)
- 아바타 (image) — varchar(191)
- 자기소개 (info) — varchar(191)
- 생성일 (createdAt) — datetime
유저 (FromUser)
- 보낸사람아이디 (fromUserId) — int — 외래 키 → 유저.유저아이디 — NOT NULL
유저 (ToUser)
- 받는사람아이디 (toUserId) — int — 외래 키 → 유저.유저아이디 — NOT NULL
이미지 (Image)
- 이미지아이디 (id) — int — 기본 키 — NOT NULL
- 메모아이디 (memoId) — int — 외래 키 → 메모.메모아이디 — NOT NULL
- 주소 (url) — varchar(191)
- 대체텍스트 (alt) — varchar(191)
- 생성일 (createdAt) — datetime
좋아요 (Favorite)
- 좋아요아이디 (id) — int — 기본 키 — NOT NULL
- 메모아이디 (memoId) — int — 외래 키 → 메모.메모아이디 — NOT NULL
- 유저아이디 (userId) — int — 외래 키 → 유저.유저아이디 — NOT NULL
- 생성일 (createdAt) — datetime
팔로우 (Follow)
- 팔로워아이디 (follower) — int — 외래 키 → 유저.보낸사람아이디 — NOT NULL
- 팔로잉아이디 (following) — int — 외래 키 → 유저.받는사람아이디 — NOT NULL
하위메모들 (leafs)
- 상위메모아이디 (parentId) — int — 외래 키 → 상위메모.상위메모아이디 — NOT NULL