> ## Documentation Index
> Fetch the complete documentation index at: https://stytch.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Modeling your app

> Multi-tenancy vs. consumer (single-tenancy) data models.

export const userTip = "Represents an end user's account in your application.";

export const member = "Represents an individual end user's account within a given Organization, uniquely identified within that Organization by their email address.";

export const organization = "Represents an instance or tenant in your application, typically mapping to each of your top-level customers.";

## Overview

You must select between **multi-tenant** or **consumer** data models when creating your Stytch project. This both defines who "owns" end user data and sets which SDKs and APIs your project has access to.

<Columns cols={2}>
  <Card title="Multi-tenant auth" icon="network" href="/multi-tenant-auth/data-model">
    Common for B2B SaaS where users exist as <Tooltip tip={member}>members</Tooltip> to one or more <Tooltip tip={organization}>organization</Tooltip>.

    *Uses B2B API & SDKs.*
  </Card>

  <Card title="Consumer auth" icon="square-user-round" href="/consumer-auth/data-model">
    Single-tenant model where users exist as individual <Tooltip tip={userTip}>users</Tooltip> **without** organizations.

    *Uses Consumer API & SDKs.*
  </Card>
</Columns>

## Model diagram

<Frame>
  <img
    src="https://mintcdn.com/stytch-34ca0595/TyOJLqlCKmPJRTAc/images/get-started/tenant-model-compare.png?fit=max&auto=format&n=TyOJLqlCKmPJRTAc&q=85&s=37b34276eb7a43b6e43946e2fec99fb3"
    alt="Multi-tenant vs.
single-tenant"
    width="2664"
    height="1425"
    data-path="images/get-started/tenant-model-compare.png"
  />
</Frame>

## Why this matters

Different application use cases have different auth needs. For example, the Consumer API is designed for simplicity and works well for apps that don't require complex identity management features like SSO or SCIM—which are more commonly needed for B2B SaaS apps. Unique identifiers for end users are also slightly differentiated:

* In multi-tenant auth, a member is identified by their email.
* In consumer auth, a user is identified by either email or phone number.

## Need a hybrid model?

If you have a mix of business customers and individual end users, **we recommend using multi-tenant auth** and creating an organization behind the scene for each individual user “tenant” in order to allow these single-player accounts to seamlessly upgrade and add potential collaborators in the future.
