collection_posts table
The collection_posts table in the Reddit Clone Database Schema schema has 3 columns, with 2 foreign keys to collections and posts.
Columns (3)
| Column | Type | Constraints | Description |
|---|---|---|---|
| collection_id | uuid | not null, references collections.id | |
| post_id | uuid | not null, references posts.id | |
| position | smallint | not null |
Indexes (1)
(post_id)
Relationships
collection_posts.collection_idreferencescollections.idcollection_posts.post_idreferencesposts.id