# Data model

Source: https://swapcard.dev/learn-more/object-model


The main objects you work with in the APIs, and how they connect.

## Where everything lives

An **Organization** owns one or more **Communities**, and each community hosts **Events**. Almost every API call is scoped to an event, which is why most queries and mutations take an `eventId`.

## Objects in an event

| Object | What it represents | Related objects |
| --- | --- | --- |
| [People](/content-api/examples/people) | Anyone taking part: attendees, visitors, speakers, moderators, organizer staff, exhibitor and partner members | Belong to **Groups**; can be **speakers** or **attendees** of sessions, or **members** of an exhibitor |
| [Groups](/content-api/examples/groups) | Segments of people within an event (for example, *Exhibitor Premium*) | Contain many people |
| [Sessions](/content-api/examples/sessions) | Anything on the agenda (talks, workshops, panels, roundtables, live streams, on-demand videos), called *plannings* in the API | Have **speakers** and **attendees** (both are people) |
| [Exhibitors](/content-api/examples/exhibitors) | Companies taking part: booth holders, sponsors, partners, startups | Have **members** (people) and **items** |
| [Items](/content-api/examples/items) | Products, projects, job offers and similar | Can be attached to exhibitors |

Custom data on people, exhibitors, sessions and items is stored as [custom fields](/content-api/examples/custom-fields).

## Diagram

![Swapcard object model: People and Groups; Sessions with attendees and speakers; Exhibitors with members and items; Items](https://swapcard.dev/img/object-model.png)
