Objective
Promote the reviewed command-center operating layer into prisma/schema.prisma without duplicating the existing Organization, Workspace, Connector, ApprovalRequest, ApprovalDecision, AnalyticsSnapshot, or AuditEvent foundations.
Reuse decisions
- Organization + Workspace remain the tenant boundary.
- WorkspaceMember + Role + Permission remain the authorization model.
- Connector + ConnectorCredentialReference remain the integration identity and secret-reference model.
- ApprovalRequest + ApprovalDecision remain the human-approval gate.
- AuditEvent remains the immutable operating audit trail.
- AnalyticsSnapshot remains the generic time-series metric store.
New operating models required
- Subscription and plan lifecycle state.
- UsageRecord for metered product usage.
- SecurityAsset and SecurityIncident.
- ComplianceFramework, ComplianceControl, ComplianceEvidence, ComplianceTask, and Risk.
- GovernedAgent and GovernedAgentRun.
- IntegrationHealth linked to Connector.
Acceptance criteria
Prohibited in this issue
- No production database migration.
- No Stripe activation, prices, subscriptions, charges, or webhook activation.
- No storage of API secrets, OAuth tokens, payment-card data, or bank credentials.
- No destructive action or automatic approval.
Branch
feat/command-center-prisma-operating-models
Parent delivery
PR #163 and issue #164 delivered the authenticated command center, aggregate snapshot, readiness checks, exports, and non-auto-applied SQL proposal.
Objective
Promote the reviewed command-center operating layer into
prisma/schema.prismawithout duplicating the existing Organization, Workspace, Connector, ApprovalRequest, ApprovalDecision, AnalyticsSnapshot, or AuditEvent foundations.Reuse decisions
New operating models required
Acceptance criteria
prisma/schema.prisma.prisma validate,prisma generate, lint, typecheck, tests, and Next.js production build.migration_requiredtoinstalledonly when all expected tables exist.Prohibited in this issue
Branch
feat/command-center-prisma-operating-modelsParent delivery
PR #163 and issue #164 delivered the authenticated command center, aggregate snapshot, readiness checks, exports, and non-auto-applied SQL proposal.