1021_django_relationships
Tables (6)
Article (Untitled)
- Key — Primary key — NOT NULL
- title (Field) — varchar(10)
- content (Field2) — text
- created_at (Field3) — date
- updated_at (Field4) — date
- user_id (Key2) — Foreign key → user.Key — NOT NULL
Follow (Untitled6)
- Key — Primary key — NOT NULL
- Field
- from_user_id (Key2) — Foreign key → user.Key — NOT NULL
- to_user_id (Key3) — Foreign key → user.Key — NOT NULL
comment (Untitled3)
- Key — Primary key — NOT NULL
- content (Field) — text
- created_at (Field2) — date
- updated_at (Field3) — date
- article_id (Key2) — Foreign key → Article.Key — NOT NULL
- Key (Key3) — Foreign key → user.Key — NOT NULL
like (Untitled4)
- Key — Primary key — NOT NULL
- artucke_id (Key2) — Foreign key → Article.Key — NOT NULL
- user_id (Key3) — Foreign key → user.Key — NOT NULL
profile (Untitled5)
- Key — Primary key — NOT NULL
- image (Field)
- user_id (Key2) — Foreign key → user.Key — NOT NULL
user (Untitled2)
- Key — Primary key — NOT NULL
- username (Field) — text
- first_name (Field2) — text
- last_name (Field3) — text
- email (Field4) — text