Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mayel committed Nov 22, 2023
1 parent f9d4fb6 commit 851f1fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/DATABASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A simple example would be a blogging app, which might have a `post` table with `

A social network, by contrast, is actually a graph of objects. Objects need to be able to refer to other objects by their ID without knowing their type.

A simple example would be likes, you might have a `likes` table with `liked_object` field that references the `post` table. But you don't just have posts that can be liked, but also videos, images, polls, etc, each with their own table?
A simple example would be likes, you might have a `likes` table with `liked_post_id` field that references the `post` table. But you don't just have posts that can be liked, but also videos, images, polls, etc, each with their own table, but probably do not want to have to add `liked_video_id`, `liked_image_id`, etc?

We needed the flexibility to have a foreign key that can reference any referenceable object. We call our system `Pointers`.

Expand Down

0 comments on commit 851f1fc

Please sign in to comment.