1021_django_relationships
Tables (6)
Comment (Untitled3)
- Key — Primary key — NOT NULL
- content (Field) — text
- created_at (Field2) — date
- updated_at (Field3) — date
- article_id (Key2) — Foreign key → Untitled.Key — NOT NULL
- Key (Key3) — Foreign key → User.Key — NOT NULL
Follow (Untitled6)
- Key — Primary key — NOT NULL
- from_user_id (Key2) — Foreign key → User.Key — NOT NULL
- to_user_id (Key3) — Foreign key → User.Key — NOT NULL
Like (Untitled4)
- Key — Primary key — NOT NULL
- article_id (Key2) — Foreign key → Untitled.Key — NOT NULL
- user_id (Key3) — Foreign key → User.Key — NOT NULL
Profile (Untitled5)
- Key — Primary key — NOT NULL
- image (Field)
- Key (Key2) — Foreign key → User.Key — NOT NULL
- nickname (Field2)
Untitled
- Key — Primary key — NOT NULL
- title (Field2) — varchar(10)
- content (Field3) — text
- created_at (Field4) — date
- updated_at (Field5) — date
- 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