Cursor Tables

The Cursor integration uses the following tables

Tables

CursorTeamMembers

This table stores Cursor team members, including encoded user ID, email, display name, team role, and whether the member has been removed.

NameTypeDescription
CursorUserIDstringEncoded user ID for the team member (for example, user_PDSPmvukpYgZEDXsoNirw3CFhy).
EmailstringEmail address of the team member.
NamestringDisplay name of the team member.
RolestringRole in the team (for example, member, owner).
IsRemovedbooleanWhether the member has been removed from the team.
ConfigIDintegerThe ID of the configuration within Compyl.
BatchDatedatetimeThe date and time data was synced to our database.

CursorBillingGroups

This table stores Cursor billing groups for the team, including spend for the current billing cycle.

NameTypeDescription
GroupIDstringEncoded billing group ID (for example, group_PDSPmvukpYgZEDXsoNirw3CFhy).
NamestringName of the billing group.
TypestringGroup type. Currently BILLING is the supported value.
DirectoryGroupIDstringDirectory group identifier attached to the billing group, if configured.
MemberCountintegerNumber of members in the billing group.
CreatedAtdatetimeThe date and time the billing group was created.
UpdatedAtdatetimeThe date and time the billing group was last updated.
SpendCentsdecimalGroup spend in cents for the current billing cycle.
ConfigIDintegerThe ID of the configuration within Compyl.
BatchDatedatetimeThe date and time data was synced to our database.

CursorBillingGroupMembers

This table stores current and former members of Cursor billing groups, including join and leave times and member spend.

NameTypeDescription
IDuniqueidentifierUnique identifier for the record.
GroupIDstringEncoded billing group ID this membership belongs to.
CursorUserIDstringEncoded user ID of the billing group member (for example, user_abc123).
NamestringDisplay name of the billing group member.
EmailstringEmail address of the billing group member.
JoinedAtdatetimeThe date and time the member joined the billing group.
LeftAtdatetimeThe date and time the member left the billing group, if applicable.
SpendCentsdecimalMember spend in cents attributed to this billing group for the current billing cycle.
IsFormerbooleanIndicates whether the member is a former member of the billing group.
ConfigIDintegerThe ID of the configuration within Compyl.
BatchDatedatetimeThe date and time data was synced to our database.

CursorBillingGroupDailySpend

This table stores daily spend totals for each Cursor billing group in the current billing cycle.

NameTypeDescription
IDuniqueidentifierUnique identifier for the record.
GroupIDstringEncoded billing group ID this daily spend row belongs to.
SpendDatedatetimeCalendar date of the daily spend total.
SpendCentsdecimalSpend in cents for the billing group on this date.
ConfigIDintegerThe ID of the configuration within Compyl.
BatchDatedatetimeThe date and time data was synced to our database.

CursorAuditLogs

This table stores Cursor team audit log events, including actor email, event type, IP address, and event payload.

NameTypeDescription
EventIDstringUnique identifier of the audit event (for example, evt_abc123).
TimestampdatetimeThe date and time the audit event occurred.
IpAddressstringIP address associated with the audit event.
UserEmailstringEmail address of the user associated with the audit event.
EventTypestringAudit event type (for example, login, add_user, team_settings).
EventDataJsonstringJSON payload of event-specific details returned with the audit event.
CursorTeamNumericIDintegerNumeric Cursor team ID associated with the audit log query (params.teamId).
ConfigIDintegerThe ID of the configuration within Compyl.
BatchDatedatetimeThe date and time data was synced to our database.

CursorMemberSpend

This table stores per-member spending for the current Cursor team billing cycle, including on-demand spend, included usage, request counts, and spend limits.

NameTypeDescription
CursorUserIDstringEncoded user ID (for example, user_PDSPmvukpYgZEDXsoNirw3CFhy). Shares the same identifier namespace as CursorTeamMembers.CursorUserID.
NamestringDisplay name of the user.
EmailstringEmail address of the user.
RolestringRole in the team (for example, member, owner).
SpendCentsdecimalOn-demand spend in cents for the current billing cycle (excludes included usage).
IncludedSpendCentsdecimalIncluded usage spend in cents for the current billing cycle, as returned by the Cursor spend API.
OverallSpendCentsdecimalTotal spend in cents for the current billing cycle, including both on-demand and included usage.
FastPremiumRequestsintegerNumber of usage-based premium requests made during the billing cycle.
HardLimitOverrideDollarsdecimalCustom hard spending limit override in dollars for this user (0 means no override).
MonthlyLimitDollarsdecimalMonthly spending limit in dollars set for this user, or null if no limit is set.
EffectivePerUserLimitDollarsdecimalCurrently enforced per-user spending limit in dollars, derived from monthlyLimitDollars and hardLimitOverrideDollars.
SubscriptionCycleStartdatetimeStart of the current subscription billing cycle for the spend response.
ConfigIDintegerThe ID of the configuration within Compyl.
BatchDatedatetimeThe date and time data was synced to our database.

CursorDailyUsage

This table stores daily Cursor usage metrics per team member, including code apply/accept activity, Tab completions, Composer/chat/agent requests, and client version.

NameTypeDescription
IDuniqueidentifierUnique identifier for the record.
CursorUserIDstringEncoded user ID for the member this daily usage row belongs to (for example, user_…). Shares the same identifier namespace as CursorTeamMembers.CursorUserID.
DaydatetimeThe date this record covers (ISO date, for example, 2024-03-18).
DateEpochMsintegerDate as epoch milliseconds.
EmailstringUser's email address.
IsActivebooleanWhether the user had activity on this day.
TotalLinesAddedintegerTotal lines of code added.
TotalLinesDeletedintegerTotal lines of code deleted.
AcceptedLinesAddedintegerAI-suggested lines added that were accepted.
AcceptedLinesDeletedintegerAI-suggested lines deleted that were accepted.
TotalAppliesintegerTotal AI code apply actions.
TotalAcceptsintegerTotal accepted AI suggestions.

CursorUsageEvents

This table stores granular Cursor usage events for the team, including model, billing category, token usage, and charged amounts.

NameTypeDescription
IDuniqueidentifierUnique identifier for the record.
TimestampdatetimeEvent timestamp. Cursor returns this as epoch milliseconds; Compyl stores it as datetime.
UserEmailstringEmail address of the user who made the request.
ServiceAccountIDstringID of the service account that made the request. Omitted for human user events.
ServiceAccountNamestringDisplay name of the service account that made the request. Omitted for human user events.
CloudAgentIDstringID of the cloud agent run attributed to this event. Omitted for events outside cloud agents.
AutomationIDstringUUID of the automation attributed to this event. Omitted for events outside automations.
ConversationIDstringID of the conversation (agent session) that generated this event.
ModelstringAI model used for the request.
KindstringBilling category (for example, Usage-based, Included in Business).
MaxModebooleanWhether the request used max mode.
RequestsCostsdecimalCost in request units.

CursorModelAccessConfigurations

This table stores the team's Cursor model-access policy, including whether the policy is unrestricted, custom, or legacy, and defaults for newly seen providers and models.

NameTypeDescription
TeamIDintegerInteger team ID implied by the Team Admin API key.
StatestringModel-access policy state: unrestricted, custom, or legacy.
NewProviderDefaultstringenabled or disabled when state is custom. Otherwise null.
NewModelDefaultstringenabled or disabled when state is custom. Otherwise null.
ConfigIDintegerThe ID of the configuration within Compyl.
BatchDatedatetimeThe date and time data was synced to our database.

CursorModelAccessProviders

This table stores catalog AI providers in the team's custom model-access policy, including whether each provider is enabled.

NameTypeDescription
IDuniqueidentifierUnique identifier for the record.
TeamIDintegerInteger team ID this provider configuration belongs to.
ProviderIDstringCatalog provider ID (for example, openai or anthropic).
DisplayNamestringHuman-readable provider name.
EnabledbooleanWhether this provider is enabled for the team.
ConfigIDintegerThe ID of the configuration within Compyl.
BatchDatedatetimeThe date and time data was synced to our database.

CursorModelAccessModels

This table stores catalog AI models under each provider in the team's custom model-access policy, including enabled flags and serialized parameter settings.

NameTypeDescription
IDuniqueidentifierUnique identifier for the record.
TeamIDintegerInteger team ID this model configuration belongs to.
ProviderIDstringCatalog provider ID this model belongs to (for example, anthropic).
ModelIDstringCatalog model ID (for example, claude-opus-4-6).
DisplayNamestringHuman-readable model name.
EnabledbooleanWhether this model is enabled for the team.
ParametersJsonstringJSON array of catalog-driven model parameters (id, displayName, supportedValues, allowedValues, configuredDefaultValue, catalogDefaultValue).
ConfigIDintegerThe ID of the configuration within Compyl.
BatchDatedatetimeThe date and time data was synced to our database.

CursorRepoBlocklists

This table stores repository blocklists configured for the team, used to prevent files or directories from being used as context.

NameTypeDescription
RepoIDstringUnique identifier of the repository blocklist entry (for example, repo_123).
UrlstringRepository URL on the blocklist.
PatternsJsonstringJSON array of glob patterns to block (for example, *.env, config/*, *).
ConfigIDintegerThe ID of the configuration within Compyl.
BatchDatedatetimeThe date and time data was synced to our database.

CursorOrganizationMembers

This table stores members of the Cursor organization, including organization role. Populated only when Enterprise is enabled.

NameTypeDescription
CursorNumericUserIDintegerUnique numeric identifier for the member, matching the numeric id returned by the organization members API.
EmailstringEmail address of the member.
NamestringDisplay name of the member.
OrganizationRolestringOrganization-level role, either admin or member. Distinct from each team assignment's team role.
ConfigIDintegerThe ID of the configuration within Compyl.
BatchDatedatetimeThe date and time data was synced to our database.

CursorOrganizationMemberTeams

This table stores each organization member's assignments across teams linked to the organization. Populated only when Enterprise is enabled.

NameTypeDescription
IDuniqueidentifierUnique identifier for the record.
CursorNumericUserIDintegerNumeric user ID of the organization member this team assignment belongs to.
TeamIDintegerInteger ID of a linked team the member belongs to.
TeamRolestringRole within that team (for example, member, owner).
ConfigIDintegerThe ID of the configuration within Compyl.
BatchDatedatetimeThe date and time data was synced to our database.

CursorOrganizationGroups

This table stores Cursor organization groups. Populated only when Enterprise is enabled.

NameTypeDescription
GroupIDstringOrganization group ID with the g_ prefix.
NamestringGroup name.
CreatedAtdatetimeCreation time of the organization group.
UpdatedAtdatetimeLast update time of the organization group.
ConfigIDintegerThe ID of the configuration within Compyl.
BatchDatedatetimeThe date and time data was synced to our database.

CursorOrganizationGroupMembers

This table stores members of Cursor organization groups. Populated only when Enterprise is enabled.

NameTypeDescription
IDuniqueidentifierUnique identifier for the record.
GroupIDstringOrganization group ID this membership belongs to.
CursorUserIDstringPublic user ID with the user_ prefix.
NamestringDisplay name of the member.
EmailstringEmail address of the member.
JoinedAtdatetimeTime the member was added to the group.
ConfigIDintegerThe ID of the configuration within Compyl.
BatchDatedatetimeThe date and time data was synced to our database.

CursorPooledUsage

This table stores organization-level pooled spend limits and usage for the current contract period. Populated only when Enterprise is enabled.

NameTypeDescription
OrganizationIdstringPublic organization ID this pooled usage row belongs to (for example, org_abc123).
LimitCentsdecimalPooled spend limit for the organization, in cents.
UsedCentsdecimalTotal pooled usage consumed so far, in cents.
RemainingCentsdecimalRemaining pooled budget (limitCents minus usedCents), in cents.
ContractStartDatedatetimeStart of the current contract period, or null when no contract dates are set.
ContractEndDatedatetimeEnd of the current contract period, or null when no contract dates are set.
ConfigIDintegerThe ID of the configuration within Compyl.
BatchDatedatetimeThe date and time data was synced to our database.

CursorPooledUsageTeams

This table stores per-team pooled usage and optional budget caps within the organization pool. Populated only when Enterprise is enabled.

NameTypeDescription
TeamIDintegerInteger ID of a team linked to the organization.
UsedCentsdecimalUsage consumed by this team during the current contract period, in cents.
BudgetLimitCentsdecimalPer-team budget cap in cents. Present only when a budget is configured for the team.
OrganizationIdstringPublic organization ID of the parent pooled usage row.
ConfigIDintegerThe ID of the configuration within Compyl.
BatchDatedatetimeThe date and time data was synced to our database.

CursorOrganizationModelAccessConfigurations

This table stores model-access configuration for teams linked to the organization, including unrestricted vs custom policy and errors when model access is not available. Populated only when Enterprise is enabled.

NameTypeDescription
TeamIDintegerInteger ID of a team linked to the organization.
TeamNamestringDisplay name of the linked team.
StatestringModel-access policy state for the team: unrestricted, custom, or legacy.
NewProviderDefaultstringenabled or disabled when state is custom. Otherwise null.
NewModelDefaultstringenabled or disabled when state is custom. Otherwise null.
ErrorMessagestringError returned when model access control is not available for this team.
ConfigIDintegerThe ID of the configuration within Compyl.
BatchDatedatetimeThe date and time data was synced to our database.

Did this page help you?