Technology and SaaS Data Models

A practical guide to industry data and AI architecture.

BeginnerIntermediateExpert · 4 min read · Last updated:

In brief

Separate organization or tenant, user identity, membership, subscription, plan, entitlement, usage event, invoice and support case. A billed subscription, enabled feature and actual usage may have different states and sources.

Core SaaS concepts

Separate organization or tenant, user identity, membership, subscription, plan, entitlement, usage event, invoice and support case. A billed subscription, enabled feature and actual usage may have different states and sources.

Model tenant boundaries

Include tenant scope in identifiers, relationships, authorization and tests where data is tenant-specific. Define account mergers, tenant transfer, deletion, trials, suspension and reactivation. Avoid relying only on application filters to prevent cross-tenant data exposure.

Describe interfaces

API schemas should define resources, operations, types, errors, authentication and compatibility. The OpenAPI Specification is a standard interface description for HTTP APIs; consult the current OpenAPI Specification version and schema guidance.

Track usage and service quality

Define metering grain, event identity, retries, corrections, time zone and aggregation for usage-based billing or product analytics. Keep operational telemetry distinct from customer-visible measures. Assign owners for service events and retention.

Domain needProcess and meaning
Model and controlsReferences and ownership
Exchange and useValidated outcomes
Use references as inputs to a governed local design, not as automatic implementation blueprints.

Validate the design

Confirm current reference versions, local definitions, permitted use, owners and operational behavior with authoritative sources and domain specialists. Test realistic exchange or workflow scenarios and document assumptions and limitations.

Practical depth Definitions, design and validation

Model common SaaS concepts with explicit grain

A subscription business may contain Organization, User, Subscription, Plan, Entitlement, Invoice, Payment Attempt and Usage Event. These concepts have separate identities and lifecycles. A user can belong to an organization, an organization can hold multiple subscriptions, and entitlements may change when a plan or contract changes. Avoid collapsing them into one wide “customer” record.

State whether a subscription is the commercial agreement, a billing schedule or an active product access state. These may not begin and end at the same time. Model trial, suspension, cancellation, renewal and grace periods according to the product's actual policy.

Separate billing from access and usage

Invoices and payment attempts represent financial events; entitlements represent permission or access; usage events record activity. A paid invoice does not necessarily mean access is active, and access can continue during a grace period or pause. Define the relationships and effective dates rather than inferring one state from another.

Usage measures need clear event grain, units, deduplication behavior and aggregation windows. Decide how late events, retries and corrections are handled. If usage drives billing, preserve the evidence needed to reproduce the bill and resolve disputes.

Handle tenant boundaries and identity carefully

Tenant or organization identifiers should be scoped and consistently enforced across data access. A global user may participate in multiple organizations; do not assume a user ID alone determines authorization. Model membership and role changes over time if historical access or audit questions matter.

  • Are commercial, billing, access and usage concepts distinct?
  • Are lifecycle states and effective dates explicit?
  • Is usage grain and retry behavior defined?
  • Are tenant boundaries enforced in every consumer path?
  • Can past entitlements and billing outcomes be explained?

Worked example: tenant, subscription, and usage

Separate a tenant organization, user, subscription, entitlement, service instance, and usage event. A user may belong to multiple tenants and a subscription may grant multiple products. Enforce tenant isolation at each query and export path. Preserve the source tenant identifier and map it through an approved identity process rather than assuming names are unique.

Usage events need event identity, metering dimension, quantity and unit, collection time, and aggregation period. Define whether corrections restate prior invoices or appear as adjustments. Service quality measurements should retain the observation window and denominator. Distinguish product configuration from customer-specific overrides.

Validate lifecycle and isolation

Test provisioning, plan changes, suspension, tenant merge, deletion, overage, and delayed usage. Verify access separation through APIs, support tooling, analytics, and backups. Reconcile metered quantities to billing controls and give customers appropriate visibility into usage. Define retention and deletion behavior for derived tenant data.

Reconcile SaaS usage and entitlements

Compare subscription entitlements with provisioned services and metered events. Define effective dates, included quantities, units, overage policy, and adjustment behavior. Preserve source event identifiers and metering version so billing disputes can be investigated.

Test plan changes mid-cycle, tenant suspension, duplicate usage, and delayed metering. Keep customer-facing usage measures consistent with billing logic or label differences clearly. Protect tenant isolation across aggregated reporting.

Test tenant isolation

Create cases for same user across tenants, cross-tenant search, administrative support, exports, cached responses, and derived analytics. Verify that tenant context is enforced at service boundaries and inherited by downstream jobs. Record the test identity and policy version.

Retest after schema, authorization, or indexing changes. Review support access and audit events. A tenant key in a table is not sufficient assurance unless every read and write path applies it consistently.