instagram

Tables (5)

Posts (Untitled)

  • id (Key) — integer — Primary key — NOT NULL
  • likes (Field) — integer
  • content (Field2)
  • image (Field3) — string
  • createdAt (Field4)
  • updatedAt (Field5)
  • memberId (Key2) — Foreign key → Member.id — NOT NULL

DirectMessage (Untitled4)

  • id (Key) — Primary key — NOT NULL
  • id (startUserId) — Foreign key → Member.id — NOT NULL

Member (Untitled3)

  • id (Key) — Primary key — NOT NULL
  • name (Field)

Message (Untitled5)

  • id (Key2) — Primary key — NOT NULL
  • dmId (Key) — Foreign key → DirectMessage.id — NOT NULL

Stories (Untitled2)

  • id (Key) — integer — Primary key — NOT NULL
  • likes (Field) — integer
  • content (Field2) — varchar
  • image (Field3) — string
  • createdAt (Field4)
  • updatedAt (Field5)
  • links (Field6)
  • userId (Key2) — Foreign key → Member.id — NOT NULL