BucketPlaceTestERD
버킷플레이스 과제 2번 A 1,2
테이블 (9)
contents (사진묶음)
- contents_id — int(11) — 기본 키 — NOT NULL
- contents_feed — VARCHAR(255)
- contents_summary — VARCHAR(255)
- contents_thumbnail — VARCHAR(255)
- contents_reply — VARCHAR(255)
- contents_like — VARCHAR(255)
- photo_id — int(11) — 외래 키 → photo.photo_id — NOT NULL
- user_id — int(11) — 외래 키 → user.user_id — NOT NULL
friend (친구)
- friend_id — int(11) — 기본 키 — NOT NULL
- Field (friend_user_id) — int(11)
- user_id (user_id2) — int(11) — 외래 키 → user.user_id — NOT NULL
like (좋아요)
- like_id — int(11) — 기본 키 — NOT NULL
- contents_id — int(11) — 외래 키 → contents.contents_id — NOT NULL
- photo_id — int(11) — 외래 키 → photo.photo_id — NOT NULL
- user_id — int(11) — 외래 키 → user.user_id — NOT NULL
photo (사진)
- photo_id — int(11) — 기본 키 — NOT NULL
- photo_category — VARCHAR(255)
- photo_content — VARCHAR(255)
- photo_feed — VARCHAR(255)
- user_id — int(11) — 외래 키 → user.user_id — NOT NULL
profile (프로필)
- profile_id — int(11) — 기본 키 — NOT NULL
- user_id — int(11) — 외래 키 → user.user_id — NOT NULL
- user_nickname — VARCHAR(255)
re_reply (대댓글)
- re_reply_id — int(11) — 기본 키 — NOT NULL
- re_reply_contents — VARCHAR(255)
- reply_id (reply_id2) — int(11) — 외래 키 → reply.reply_id — NOT NULL
reply (댓글)
- reply_id — int(11) — 기본 키 — NOT NULL
- reply_contents — VARCHAR(255)
- contents_id — int(11) — 외래 키 → contents.contents_id — NOT NULL
- user_id — int(11) — 외래 키 → user.user_id — NOT NULL
- photo_id — int(11) — 외래 키 → photo.photo_id — NOT NULL
snslogin (소셜로그인)
- snslogin_id — int(11) — 기본 키 — NOT NULL
- user_id — int(11) — 외래 키 → user.user_id — NOT NULL
- snslogin_platform — VARCHAR(255)
user (사용자)
- user_id — int(11) — 기본 키 — NOT NULL
- user_email — VARCHAR(255)
- user_password — VARCHAR(255)
- user_sex — VARCHAR(20)
- user_birthday — VARCHAR(255)
- friend_id — int(11) — 외래 키 → friend.friend_id — NOT NULL