Instagram
Tables (8)
comment (댓글)
- cidx (코멘트 ID) — INT — Primary key — NOT NULL
- userid (유저 ID2) — INT — Foreign key → user.userid — NOT NULL
- content (댓글 내용) — VARCHAR(45)
- userid (유저 ID) — INT
- postid (게시글 ID) — INT
follow (팔로워)
- followid (팔로우 ID) — INT — Primary key — NOT NULL
- userid (유저 ID) — INT — Foreign key → user.userid — NOT NULL
- followerid (팔로워 ID) — INT
- followingid (팔로잉 ID) — INT
hashtag (해시태그)
- tagid (태그 ID) — INT — Primary key — NOT NULL
- content (태그 내용) — VARCHAR(200)
image (이미지)
- imageid (테이블 ID) — INT — Primary key — NOT NULL
- image (이름(경로)) — VARCHAR(45)
- postid (게시글 ID) — INT
post (게시글)
- postid (게시글 ID) — INT — Primary key — NOT NULL
- userid (유저 ID) — INT
- content (본문) — VARCHAR(200)
post_hashtag (게시글 해시태그)
- idx (테이블 ID) — INT — Primary key — NOT NULL
- hashtagid (해시태그 ID) — INT
- postid (게시글 ID) — INT
post_like (게시글 좋아요)
- idx (테이블 ID) — INT — Primary key — NOT NULL
- userid (유저 ID) — INT
- postid (게시글 ID) — INT
user (유저)
- userid (유저 ID) — INT — Primary key — NOT NULL
- nickname (닉네임) — VARCHAR(45)