Pixstar_erd

Tables (4)

post_comment (Untitled4)

  • id (PK) — Primary key — NOT NULL
  • comment — char
  • created_at — timestamp
  • updated_at — timestamp
  • post_id (PK2) — Foreign key → post_post.id — NOT NULL
  • writer_id (PK3) — Foreign key → user_user.id — NOT NULL
  • parent_id (PK4) — Foreign key → post_comment.id — NOT NULL

post_image (Untitled3)

  • id (Key) — Primary key — NOT NULL
  • image_url — char
  • post_id (PK) — Foreign key → post_post.id — NOT NULL

post_post (Untitled2)

  • id (PK) — Primary key — NOT NULL
  • content — char
  • created_at — timestamp
  • updated_at — timestamp
  • Field
  • writer_id (Key) — Foreign key → user_user.id — NOT NULL

user_user (Untitled)

  • id (PK) — Primary key — NOT NULL
  • email — char
  • password — char
  • username — char
  • is_active — boolean
  • is_staff — boolean
  • is_superuser — boolean
  • date_joined — timestamp
  • last_login — timestamp