node스터디
테이블 (7)
Comment (댓글)
- commentId (댓글 ID) — 기본 키 — NOT NULL
- authorId (댓글 작성자ID) — not null — 외래 키 → User.userId — NOT NULL
- lpId (LP ID) — not null — 외래 키 → Lp.lpId — NOT NULL
- content (댓글) — not null
- createdAt (생성일자) — not null
- updatedAt (갱신일자) — not null
- deletedAt (삭제일자) — not null
Like (좋아요)
- likeId (좋아요 ID) — not null — 기본 키 — NOT NULL
- userId (유저 ID) — not null — 외래 키 → User.userId — NOT NULL
- lpId (LP ID) — not null — 외래 키 → Lp.lpId — NOT NULL
- createdAt (좋아요 일자) — not null
Lp (LP)
- lpId (LP ID) — not null — 기본 키 — NOT NULL
- authorId (작성자 ID) — not null — 외래 키 → User.userId — NOT NULL
- title (LP제목) — not null
- lpJacket (LP표지) — null
- description (LP 소개글) — not null
- createdAt (생성일자) — not null
- updatedAt (갱신일자) — not null
- deletedAt (삭제일자) — not null
Lp-Tag-mapping (Lp-Tag 매핑)
- lpTagId (lp태그 매핑ID) — not null — 기본 키 — NOT NULL
- lpId (LP ID) — not null — 외래 키 → Lp.lpId — NOT NULL
- tagId (태그 ID) — not null — 외래 키 → Tag.tagId — NOT NULL
Star (평점)
- starId (평점ID) — not null — 기본 키 — NOT NULL
- userId (유저 ID) — not null — 외래 키 → User.userId — NOT NULL
- lpId (LP ID) — not null — 외래 키 → Lp.lpId — NOT NULL
- rate (평점) — not null
Tag (태그)
- tagId (태그 ID) — not null — 기본 키 — NOT NULL
- tagName (태그 이름) — not null
User (유저)
- userId (유저 ID) — not null — 기본 키 — NOT NULL
- email (이메일) — not null
- password (비밀번호) — null
- provider (소셜로그인 제공자) — null
- providerId (고유 식별값) — null
- name (이름) — not null
- profile (프로필사진) — null
- createdAt (생성일자) — not null
- updatedAt (갱신일자) — not null
- deletedAt (삭제일자) — not null