Spartamarktet_DRF

Tables (6)

Hashtag (Untitled5)

  • ID (Key) — Primary key — NOT NULL
  • content (Field)

Product (Untitled)

  • ID (Key) — Primary key — NOT NULL
  • author (Key2) — Foreign key → User.ID — NOT NULL
  • hashtags (Key22) — Foreign key → User.followings — NOT NULL
  • like_users (Field8)
  • title (Field)
  • content (Field2)
  • price (Field3)
  • image (Field4)
  • created_at (Field5)
  • updated_at (Field6)

Product_hashtags (Untitled6)

  • ID (Key) — Primary key — NOT NULL
  • product_id (Key2) — Foreign key → Product.ID — NOT NULL
  • hashtag_id (Key3) — Foreign key → Hashtag.ID — NOT NULL

Product_like_users (Untitled3)

  • ID (Key) — Primary key — NOT NULL
  • product_id (Key22) — Foreign key → Product.author — NOT NULL
  • user_id (Key3) — Foreign key → User.ID — NOT NULL
  • ID (Key2) — Foreign key → User.followings — NOT NULL

User (Untitled2)

  • ID (Key) — Primary key — NOT NULL
  • followings (Key2) — Foreign key → User_followings.ID — NOT NULL
  • username (Field)
  • password (Field2)
  • email (Field3)
  • name (Field4)
  • birth (Field5)
  • nickname (Field6)
  • date_joined (Field7)

User_followings (Untitled4)

  • ID (Key) — Primary key — NOT NULL
  • from_user_id (Key2) — Foreign key → User.ID — NOT NULL
  • to_user_id (Key22) — Foreign key → User.followings — NOT NULL