practice_db2
Tables (4)
article
- article_id — Long — Primary key — NOT NULL
- title — String — NOT NULL
- content — String — NOT NULL
- user_id — Long — Foreign key → user.user_id — NOT NULL
comment
- comment_id — Long — Primary key — NOT NULL
- content — String — NOT NULL
- article_id — Long — Foreign key → article.article_id — NOT NULL
- user_id — Long — Foreign key → user.user_id — NOT NULL
user
- user_id — Long — Primary key — NOT NULL
- name — String — NOT NULL
user_follows
- follower_id — Long — Foreign key → user.user_id — NOT NULL
- following_id — Long — Foreign key → user.user_id — NOT NULL