insta
Tables (4)
Post
- post_id — BigInt — Primary key — NOT NULL
- content — text
- 회원id (user_id) — Bigint — Foreign key → User.회원id — NOT NULL
User
- 회원id (user_id) — Bigint — Primary key — NOT NULL
- 이메일 (email) — char(45)
- 비밀번호 (password) — char(45)
- 이름 (name) — char(45)
- 닉네임 (nickname) — char(45)
follow
- 다른사람의 아이디 (follow_id) — Bigint — Primary key — NOT NULL
following
- 회원id (user_id) — Bigint — Foreign key → User.회원id — NOT NULL
- 다른사람의 아이디 (follow_id) — Bigint — Foreign key → follow.다른사람의 아이디 — NOT NULL