erd_prac
Tables (7)
Untitled (follower_map)
- Key (id) — BIGINT — Primary key — NOT NULL
- id (target_id) — BIGINT — Foreign key → user.id — NOT NULL
- Field2 (follower_id) — BIGINT
Untitled (likes)
- Key (likes_id) — BIGINT — Primary key — NOT NULL
- id (user_id) — BIGINT — Foreign key → user.id — NOT NULL
- Key (target_id) — BIGINT — Foreign key → Untitled.Key — NOT NULL
- Field2 (timestamp) — TIMESTAMP
- Field4 (target_type) — INTEGER
Untitled (posts)
- Key (posts_id) — BIGINT — Primary key — NOT NULL
- id (user_id2) — BIGINT — Foreign key → user.id — NOT NULL
- Field (timestamp) — TIMESTAMP
- Field2 (content) — VARVHAR(100)
- Field3 (user_id) — BIGINT
Untitled (comments)
- Key (comments_id) — BIGINT — Primary key — NOT NULL
- id (user_id) — BIGINT — Foreign key → user.id — NOT NULL
- Key (posts_id) — BIGINT — Foreign key → Untitled.Key — NOT NULL
- Field (content) — VARCHAR(100)
- Field2 (timestamp) — TIMESTAMP
Untitled (tags)
- Key (tags_id) — BIGINT — Primary key — NOT NULL
- Field (name) — VARCHAR(20)
Untitled (tag_post_map)
- Key (id) — BIGINT — Primary key — NOT NULL
- Key (tags_id) — BIGINT — Foreign key → Untitled.Key — NOT NULL
- Key (post_id) — BIGINT — Foreign key → Untitled.Key — NOT NULL
user
- id (user_id) — BIGINT — Primary key — NOT NULL
- Field (email) — VARCHAR
- Field2 (password) — VARCHAR(50)
- Field3 (name) — VARCHAR(50)