Fit-Hub (team12 project)
테이블 (4)
Posts
- postId — int — 기본 키 — NOT NULL
- userId — Int — 외래 키 → 사용자.userId — NOT NULL
- title — string — NOT NULL
- content — string — NOT NULL
- createdAt — DateTime — NOT NULL
- updatedAt — DateTime — NOT NULL
- views — Int — NOT NULL
- category — string — NOT NULL
- thumbnailUrl — string
- imageUrl — string
- commentId — Int — 외래 키 → 댓글.commentId — NOT NULL
댓글 (Comment)
- commentId — Int — 기본 키 — NOT NULL
- userId — Int — 외래 키 → 사용자.userId — NOT NULL
- postId — int — 외래 키 → Posts.postId — NOT NULL
- content — string — NOT NULL
- createdAt — DateTime
- updatedAt — DateTime — NOT NULL
사용자 (Users)
- userId — Int — 기본 키 — NOT NULL
- name — string — NOT NULL
- email — string — NOT NULL
- password — string — NOT NULL
- role — string — NOT NULL
사용자 정보 (UserInfos)
- userInfoId — Int — 기본 키 — NOT NULL
- userId — Int — 외래 키 → 사용자.userId — NOT NULL
- introduce — string — NOT NULL
- age — string — NOT NULL
- gender — string — NOT NULL
- career — string
- position — string — NOT NULL
- gym — string — NOT NULL
- awards — string — NOT NULL