Skip to content

Comments

feat: add apps table and app-scoped schema for multi-app support#5094

Draft
Flo4604 wants to merge 5 commits intomainfrom
feat/multi-app-schema
Draft

feat: add apps table and app-scoped schema for multi-app support#5094
Flo4604 wants to merge 5 commits intomainfrom
feat/multi-app-schema

Conversation

@Flo4604
Copy link
Member

@Flo4604 Flo4604 commented Feb 19, 2026

What does this PR do?

Fixes # (issue)

If there is not an issue for this, please create one first. This is used to tracking purposes and also helps us understand why this PR exists

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Chore (refactoring code, technical debt, workflow improvements)
  • Enhancement (small improvements)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How should this be tested?

  • Test A
  • Test B

Checklist

Required

  • Filled out the "How to test" section in this PR
  • Read Contributing Guide
  • Self-reviewed my own code
  • Commented on my code in hard-to-understand areas
  • Ran pnpm build
  • Ran pnpm fmt
  • Ran make fmt on /go directory
  • Checked for warnings, there are none
  • Removed all console.logs
  • Merged the latest changes from main onto my branch with git pull origin main
  • My changes don't cause any responsiveness issues

Appreciated

  • If a UI change was made: Added a screen recording or screenshots to this PR
  • Updated the Unkey Docs if changes were necessary

@vercel
Copy link

vercel bot commented Feb 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dashboard Error Error Feb 20, 2026 0:22am
engineering Ready Ready Preview, Comment Feb 20, 2026 0:22am

Request Review

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 19, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/multi-app-schema

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Member Author

Flo4604 commented Feb 19, 2026

@Flo4604 Flo4604 force-pushed the feat/multi-app-schema branch from a8f53bd to e9aac9f Compare February 20, 2026 07:48
@Flo4604 Flo4604 force-pushed the feat/multi-app-schema branch from e9aac9f to 1bb80b5 Compare February 20, 2026 08:14
Introduces the app entity and app-scoped settings/env var tables to
support multiple apps per project. Adds app_id columns to deployments,
deployment_steps, instances, frontline_routes, and cilium_network_policies.

New Drizzle tables: apps, app_build_settings, app_runtime_settings,
app_environment_variables, app_internal_services.

New SQL queries for app CRUD, settings upsert, sibling lookups, and
inter-app service tracking. Updates existing insert queries to include
app_id parameter.

Also adds AppPrefix/AppInternalSvcPrefix UIDs and LabelKeyAppID krane label.
Remove FindSiblingAppVarsByProjectAndEnv, ListSiblingApps, and
ListEnvironmentsByProject — none have call sites in the codebase.
- ClickHouse migration adds app_id column to runtime_logs_raw_v1
- Schema reference updated to include app_id
- Dev Vector config extracts unkey.com/app.id pod label
Each app now has its own GitHub repo connection (UNIQUE(app_id)) instead
of one connection per project. Drizzle relations updated accordingly:
apps.githubRepoConnection (one), projects.githubRepoConnections (many).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant