> For the complete documentation index, see [llms.txt](https://aaron-mota.gitbook.io/aarons-style-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aaron-mota.gitbook.io/aarons-style-guide/api/database-relationship-types.md).

# Database Relationship Types

* **One-to-One**: A user has one profile (e.g., `/users/1/profile`).
* **One-to-Many**: An author has many books (`/authors/1/books`).
* **Many-to-Many**: Projects and team members (`/projects/1/team-members`)

***

### Relate&#x64;**:**

* **Rails**
  * [**Routes setup (BACKEND style guide)**](broken://pages/XTGfNnezY9AA5qhf4cZj) (i.e. `routes.rb`)
  * [**Controller Setup (BACKEND style guide)**](broken://pages/X8xSPUstyHxQCGWlZJ0y) (e.g. `projects_controller.rb`)
