V8 Central — Product & Technical Spec
  1. Docs
  2. Technical
  3. Data relationships

#Data relationships

V7 relations are shown for reference V7 only. The V8 schema is not designed yet (R1: don't copy V7 tables). Arrows mean "has many" unless noted.

#User → organizations → members → roles → permissions

  • A user is a member of many organizations. An organization has many members.
  • A member has many roles (V7). A role has many permissions.
  • V8 recommendation: grants carry an access level (none|view|manage) on the pivot, matching OSS. Assumption D-7

#Organization → subscription → plan → usage

RelationV7V8
Subscription ownerUser (new_subscription_plans.user_id) + main organization_idConflict D-3
Per-server subscription rowsnew_subscriptions.server_id → planProbably not needed (no per-server pricing in the request) Open question
Plan definitionHard-coded constantsPlan catalog table Missing
UsageCounted live from servers/applicationsServers from Central, applications from OSS Open question D-6
Moneyusers.credits → wallet_histories, transactions, charges, invoicesMissing D-4

#Organization → servers

#Provider → VPS → server

#Blueprint → server → deployment

#User → audit logs

The actor's name and email are copied into the entry, so the log stays readable after the user or resource is deleted.

#Entity summary (proposed V8 Central tables)

EntityBelongs toNotes
users—Phase 2/3 fields (2FA, IP whitelist, login history, sessions, preferences)
organizationsowner usersoft delete, main
organization_membersorganization, user (nullable while invited)status, invited_by, expires_at
roles, role_permissionsorganizationaccess level per permission
plans—catalog (admin-managed)
subscriptionsorganization or user (D-3)status, cycle, period, cancel flag
wallets / transactions / charges / invoicesuser or organization (D-4)
provider_accountsorganizationencrypted secrets
serversorganizationlink only
blueprintsorganization or user (D-14)
blueprint_runsblueprint, serverOSS run id, result
audit_logsorganizationstructured
notifications, notification_channelsuser
ServerAvatar V8 Central · prepared by central-app-2 (Pair 2 frontend) for Bhavik Jethwa · nothing in this spec is implemented yet · Built 2026-10-03 12:35 UTC