CloudSketch AI Logo
FeaturesTemplatesPricingEnterpriseAboutContactLog in
πŸŒ™β˜€οΈ
Log inStart free
Home/Templates/Sports & Fitness

πŸ… Sports & Fitness Β· State Machine

Gym Membership Lifecycle

The states of a gym membership: trial, active, frozen, expiring, renewed, lapsed and cancelled.

More Sports & Fitness templates

Opening a template is free and never counts toward your daily diagrams. Asking the AI to change it counts as one.

Drawing diagram…

What this diagram shows

  • Members can freeze their plan for travel or injury
  • Renewal reminders start before expiry
  • Lapsed members get win-back offers

Prompt used

Gym membership state machine: a lead takes a free trial, then buys a plan (active). An active member can freeze for up to 30 days and unfreeze. Near the end date the membership becomes expiring; renewal makes it active again, otherwise it lapses. Lapsed members can rejoin. Members can cancel with a refund policy.

Mermaid code
stateDiagram-v2
  [*] --> Trial
  Trial --> Active: buys plan
  Trial --> [*]: does not join
  Active --> Frozen: freeze request
  Frozen --> Active: unfreeze
  Active --> Expiring: 15 days left
  Expiring --> Active: renewed
  Expiring --> Lapsed: not renewed
  Lapsed --> Active: rejoins
  Active --> Cancelled: cancels
  Cancelled --> [*]
  Lapsed --> [*]

Inside this diagram

A state diagram with 6 states and 8 transitions.

States

  • Trial
  • Active
  • Frozen
  • Expiring
  • Lapsed
  • Cancelled

Starts in

  • Trial

Ends in

  • Trial
  • Cancelled
  • Lapsed

Transitions

  • Trial β†’ Active when buys plan
  • Active β†’ Frozen when freeze request
  • Frozen β†’ Active when unfreeze
  • Active β†’ Expiring when 15 days left
  • Expiring β†’ Active when renewed
  • Expiring β†’ Lapsed when not renewed
  • Lapsed β†’ Active when rejoins
  • Active β†’ Cancelled when cancels

Make your own diagram like this

Describe your own system in plain English and CloudSketch AI draws it in seconds. See all AI diagram generators.

Related templates

Data FlowSports & Fitness

Live Sports Score Data Flow

How live scores reach millions of fans within a second: official scorers, the data feed, stream processing, caching and push notifications.

DeploymentProSports & Fitness

Fitness App with Wearables Deployment

Where each part of a fitness tracking product runs: the wearable, the phone app that syncs it, and the cloud services for workouts, goals and coaching.

C4 ArchitectureProSports & Fitness

Sports League Management Platform

A platform to run an amateur or professional league: team registration, fixtures, match scoring, standings and fan apps.

SequenceSports & Fitness

Match Ticket Booking Sequence

How a fan books tickets for a big match: queue, seat selection with a temporary hold, payment and a mobile ticket with QR code.

GanttSports & Fitness

Tournament Schedule

A timeline for organising a multi-team tournament: registrations, league stage, knockouts, final and the work around it.

Database ERDSports & Fitness

Sports Player and Team Schema

A schema for a sports league: teams, players, squads per season, matches, match events and player statistics.