211021_django
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
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
- user_id (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 → Article.Key — NOT NULL
- user_id (Key3) — Foreign key → User.Key — NOT NULL
Profile (Untitled5)
- Key — Primary key — NOT NULL
- user_id (Key2) — Foreign key → User.Key — NOT NULL
- image (Field) — text
- nickname (Field2) — text
User (Untitled2)
- Key — Primary key — NOT NULL
- username (Field) — text
- first_name (Field2) — text
- last_name (Field3) — text
- email (Field4) — text