Users (🧭 FUTURE)

✨ NEW TABLE - December 2025

🛠️ Partner API Alignment Migration

🧭 This table represents the post-migration state for users.

1️⃣ Migrate to this table by April 2026

2️⃣ Between April 2026 and July 2026, remove FUTURE__ prefix

Comprehensive user data model that consolidates user information with role-based activity flags. Combines base user profile data with aggregated role indicators from application users, team owners, and team members to provide a complete view of user engagement across different partner functions. Includes activity status tracking and deletion timestamps for each role type.

A user is included in this table if either of the following conditions are met:

  • They are a member of one of your teams.
  • They are an owner of one of your teams.
  • They have used a white-label application linked to you.

SQL: FUTURE__users

Schema

Column NameData TypeDescription
Primary ID
idINTEGERPrimary key
Other IDs
stripe_customer_idVARCHARExternal identifier linking the user to their Stripe customer record for payment processing
Timestamps
created_atTIMESTAMP_NTZTimestamp when the user record was originally created
updated_atTIMESTAMP_NTZTimestamp when the user record was last modified
deleted_atTIMESTAMP_NTZTimestamp when the user was deleted, null for active users
blocked_atTIMESTAMP_NTZTimestamp when the user was blocked from accessing the platform
application_user_deleted_atTIMESTAMP_NTZLatest deletion timestamp across all application user records for this user
team_owner_team_deleted_atTIMESTAMP_NTZLatest team deletion timestamp where this user was a team owner
team_member_deleted_atTIMESTAMP_NTZLatest deletion timestamp across all team member records for this user
team_member_team_deleted_atTIMESTAMP_NTZLatest team deletion timestamp where this user was a team member
Filters
is_active_application_userBOOLEANIndicates whether the user has at least one active application user record
is_active_team_ownerBOOLEANIndicates whether the user is currently an active owner of at least one team
is_active_team_memberBOOLEANIndicates whether the user is currently an active member of at least one team
is_application_userINTEGERCount of application user roles associated with this user, 0 if none
is_team_ownerINTEGERCount of team owner roles associated with this user, 0 if none
is_team_memberINTEGERCount of team member roles associated with this user, 0 if none
Attributes
first_nameVARCHARUser's first name as provided during registration
last_nameVARCHARUser's last name as provided during registration
emailVARCHARUser's primary email address used for account access and communications
phoneVARCHARUser's phone number for contact and verification purposes
country_nameVARCHARFull name of the country where the user is located
country_currency_codeVARCHARISO currency code for the user's country used for billing and payments
address1VARCHARPrimary street address line for the user's location
address2VARCHARSecondary address line for apartment, suite, or unit information
address3VARCHARAdditional address line for complex addressing requirements
cityVARCHARCity or municipality where the user is located
zipVARCHARPostal or ZIP code for the user's address
timezoneVARCHARUser's timezone setting for proper time display and scheduling

Changes from last version

Summary

  • Filter Changes: Removed deleted_at is null filter; now exposes deleted users with deletion tracking columns
  • Deletion Tracking: Adds 4 deletion tracking columns from different user role relationships (application_user, team_owner, team_member)
  • Active Flags: Adds 3 boolean flags tracking if user has active (non-deleted) relationships in each role

Added columns (12)

  • application_user_deleted_at
  • team_owner_team_deleted_at
  • team_member_deleted_at
  • team_member_team_deleted_at
  • is_active_application_user
  • is_active_team_owner
  • is_active_team_member
  • is_deleted_pii

Removed columns (0)

Renamed columns (1)

  • user_id -> id

Inclusion Criteria

  • the from_wallet_owner_type or to_wallet_owner_type equals 'TEAM' and the respective wallet_owner_id is among the operator's non-null FUTURE_teams.id values.
  • or the from_wallet_owner_type or to_wallet_owner_type equals 'OPERATOR' and the respective wallet_owner_id is among the operator's non-null FUTURE_operators.id values.

Data flow

Upstream tablesDownstream tables
FUTURE__teams---
FUTURE__operators---

Alignment

Partner API

  • Aligns with Partner API get/wallet-transactions endpoint
  • The endpoint only includes non-deleted operator transactions where the operator is not deleted
where deleted_at is null
and is_operator_transaction = true
and (
    (is_from_operator_wallet_match = true and from_wallet_operator_deleted_at is null)
    or (is_to_operator_wallet_match = true and to_wallet_operator_deleted_at is null)
)

The users table

  • The legacy table only included non-deleted team transactions where the team is not deleted.
  where deleted_at is null
  and is_team_transaction = true
  and (
      (is_from_team_wallet_match = true and from_wallet_team_deleted_at is null)
      or (is_to_team_wallet_match = true and to_wallet_team_deleted_at is null)
  )