# Organizations and projects
Source: https://sovaria.in/docs/projects-and-organizations

How organizations, members, roles, projects and environments fit together, and how to manage them in the console and CLI.

An **organization** is your team and your billing account. It contains **projects**; each project is a complete, isolated backend with its own database, users, storage, functions and keys.

## Member roles

| Role | Can do |
|---|---|
| Owner | Everything, including billing, deleting the organization and changing owners. |
| Admin | Manage members, projects, API keys, policies and settings. |
| Member | Build in projects: tables, SQL, functions, storage, realtime. Cannot manage members or keys. |
| Viewer | Read-only access to projects and logs. |

## Invite your team

- **Organization → Team → Invite** sends an email invitation that expires after 7 days.
- Or create an **invite link**: people who open it **request** to join, and an owner or admin approves each request. Joining by link needs a verified email address.
- Members can be removed or have their role changed at any time; their sessions lose access immediately.

## Projects

- Each project has a **project URL** (`https://<project-ref>.sovarias.in`) and its own [API keys](https://sovaria.in/docs/api-keys).
- The database runs in the region you pick when you create the project.
- Projects are isolated: data, users and keys of one project are never visible to another.

CLI:
```bash
sov projects            # list
sov scope               # choose the default org / project for later commands
sov connect             # URL, keys and env vars for the current project
```

## Environments

A project starts with **production**. Plans that include environments can add a **staging** copy with its own database; test migrations there, then **promote** them to production from **Migrations**. Use the environment switcher in the top bar to change which one the console shows.

## Finding your way in the console

- The project sidebar keeps the pages you use most: Home, Sovariq, Agents; your data (tables, SQL, collections, schema, vectors); Users and Policies; Storage, Functions and Realtime; Simulation, Version History and Observability.
- **More**, at the end of the sidebar, opens the rest: Migrations, Messaging, Templates, API routes, Logs & Audit, Crashes and Request traces. Click the pin next to one to keep it in the sidebar; click it again to put it back under More. Pins are remembered on that device.
- **Sidebar control** at the bottom keeps the sidebar expanded, collapsed to icons, or expanded on hover. Every page has its own icon, so the collapsed sidebar still tells them apart.
- On a phone, the ☰ button opens the navigation, the organization / project / database / branch switchers in the top bar scroll sideways (each opens as a full-width list), and **Sovariq**, **Connect your app** and **API routes** are in the ⋮ menu.
- URLs and code the console shows — the project API on Home, **Connect**, **API routes**, function URLs, GraphQL — are for the [API version](https://sovaria.in/docs/api-versions) or environment selected in the top bar's database menu: production (v1) uses the project URL, a version such as v2 its own.

## Plans and limits

The organization's plan sets limits such as the number of projects, database size, storage and function invocations. Reaching one returns `PLAN_LIMIT_REACHED` (or `PLAN_FEATURE_REQUIRED`) and the console offers an upgrade. See [Plans, usage and limits](https://sovaria.in/docs/plans-and-limits) and [pricing](/pricing).

## Who can open what

Every console page and API call checks membership on the server. A project or organization link you are not a member of shows "not available" — a URL never grants access on its own.
