Skip to content

Instantly share code, notes, and snippets.

@AggressivelyMeows
Last active March 16, 2023 16:41
Show Gist options
  • Save AggressivelyMeows/9d791c9461bce06797343f32a68c7449 to your computer and use it in GitHub Desktop.
Save AggressivelyMeows/9d791c9461bce06797343f32a68c7449 to your computer and use it in GitHub Desktop.
SaaS:
name: string
createdAt: createdAt()
plans: [Plan]
visitors: [Visitors->visits]
registrations: [Visitor->registrations]
logins: [User->logsIn]
users: [User->uses]
onboardings: [User->onboards]
activations: [User->activates]
subscriptions: [User->subscribes]
payments: [Customer->payments]
upgrades: [Customer->upgrades]
retention: [Customer->retains]
expansion: [Customer->expands]
refererrals: [Customer->refers]
churn: [Customer->cancels]
reactivations: [Customer->reactivates]
apiKeys: [User->apiKeys]
requests: [Request->SaaS]
errors: [Error->SaaS]
Request:
user: User
url: string
colocation: string
body: object
headers: object
Plan:
name: string
description: string
price: currency
term: annual | monthly
features: [string | Feature]
Visitor:
_type: Person
visits: Site.visits
registers: [SaaS.registrations]
Prospect:
_type: Visitor
name: string
email: string
phone: string
company: string | Company
title: string
contacts: SaaS
User:
_id: email
_type: Prospect
email: string
username: string
id: string
role: string
ip: string
browser: string
plan: SaaS.plans
logsIn: [SaaS->logins]
uses: [SaaS->users]
onboards: SaaS.onboardings
activates: SaaS.activations
subscribes: SaaS.subscriptions
apiKeys: [SaaS->apiKeys]
requests: [Request.user]
errors: [Error->User]
Customer:
_type: User
pays: [SaaS->payments]
upgrades: [SaaS->upgrades]
retains: [SaaS->retention]
refers: [SaaS->referrals]
cancels: [SaaS->churn]
reactivates: [SaaS->reactivations]
Visit:
_subject: Visitor
_action: visits
_object: Site
Contact:
_subject: Prospect
_action: contacts
_object: SaaS
communications: [Email | Call | Chat | Meeting | Event | Webinar | Social | Other]
Registration:
_subject: Visitor
_action: registers
_object: SaaS
email: EmailSequence
Onboarding:
_subject: User
_action: onboards
_object: SaaS
emails: EmailSequence
Developer:
_subject: User
_action: uses
_reverse: users
_object: SaaS
Activation:
_subject: User
_action: activates
_object: SaaS
emails: EmailSequence
Subscription:
_subject: User
_action: subscribes
_object: SaaS
plan: SaaS.plans
emails: EmailSequence
Cancellation:
_subject: Customer
_action: cancels
_inverse: retains
_object: SaaS
APIKey:
_subject: User
_action: apiKeys
_object: SaaS
prefix: string
hash: string
EmailSequence:
_subject: SaaS
_action: emails
_object: Prospect | User | Customer
emails: [EmailTemplate]
timing: [duration]
EmailTemplate:
subject: string
body: markdown | richtext | html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment