Supabase Declarative Schemas 2.0: AI Backend Development in 2026 | Selah AI Agency
Supabase Declarative Schemas 2.0: How AI Coding Agents Are Changing Backend Development in 2026
AI application development is moving beyond generating attractive interfaces. The next challenge is building the database, permissions, server-side logic, integrations and deployment process that make an application reliable after the first demonstration.
That is why Supabase's latest code-first development updates matter to people building with AI coding agents, Lovable and other AI-assisted tools. Declarative Schemas 2.0, the pg-delta migration engine, configuration managed alongside application code, experimental native local development and app-specific Model Context Protocol (MCP) servers all point toward a more organized way to build and maintain application infrastructure.
Automating backend work does not eliminate the need to understand what the application is allowed to do, which users can access which records, or whether a database migration is safe to apply.
What's new in Base44, Lovable and Supabase
Switch between platforms. Each item lists its date and where it was reported. Platform changes happen quickly, so confirm anything here on the official changelog before you plan around it.
Base Code: a cloud workspace for teams
Reported as a Figma-style workspace where engineers, designers and product teams can work on app code. It uses an AI harness to analyze GitHub repositories and create sandbox environments.Base44 app for Mac
Build with Base44 in its own window with a dock icon, instead of a browser tab. It is the same Base44 as on the web.Preview comments go to the AI chat
A new comment on your app preview that starts with an @Base44 mention is picked up by the AI chat and acted on.Clarifying questions before the first build
When a first prompt for a new web app leaves something important open, the AI asks a few quick questions before building.Domains can move between apps
A domain bought through Base44 can be unlinked from one app and connected to another in the same workspace, without new DNS records.Payouts and Emails tabs
Apps on Base44 Payments have a Payouts tab in the Payments dashboard, and a new Emails tab lets you design emails that match your app.Personal access tokens replace account API keys (developers)
From October 15, 2026, account API keys can no longer be used. Developers should move scripts and integrations to personal access tokens.Developer tooling: troubleshooter skill, CLI and typed functions
A troubleshooter skill investigates production issues from backend function logs. New CLI commands manage deployed functions, shared code across functions and TypeScript type generation. Stripe can be provisioned through a managed flow without OAuth.Enterprise features for newer workspaces
Workspaces created on or after October 1, 2026 need the Business or Enterprise plan for workspace SSO, SSO for apps and data residency. Earlier workspaces keep their existing requirements.Database record caps for newer apps
Apps created from October 18, 2026 stop accepting new records once they reach their plan's database cap, until records are deleted or the plan is upgraded. Older apps are not capped, according to a third-party review. Confirm against Base44's documentation.Sources: Base44 product and developer changelogs (docs.base44.com/changelog), DevOps.com (October 2, 2026), Refinar Base44 review (October 2026). Check current plan limits before building around them.
TanStack Start is the default for new apps
New Lovable apps created from May 13, 2026 use TanStack Start with server-side rendering by default, except on Enterprise plans. Lovable says this gives crawlable HTML from the first request, which matters for SEO. Older React and Vite apps use on-request pre-rendering for verified search and AI crawlers.Lovable Telegram bot
The bot can build new apps, update projects, fix bugs, publish, review edit history, run read-only SQL against your project database and view analytics for published projects.A model deadline for app AI features
Google is retiring Gemini 3.6 Flash. Apps that use it keep working until November 19, 2026, and Lovable no longer selects it for new apps. Check the AI model settings in any app that uses it and switch to a supported model before the deadline.Pricing and credits (verify before you buy)
Third-party reviews from September and October 2026 report: Free with 5 daily build credits (up to 30 a month); Pro at $25 a month with 100 credits; Business at $50 a month. Credits cover building, Cloud hosting and in-app AI from a unified balance. Custom domains are listed for Pro and Business. Confirm on lovable.dev/pricing.Lovable 2.0 (as reported)
Reviews describe real-time collaboration for multiple users, an agent mode that plans multi-file changes, and a built-in security scan. Treat feature details from third-party reviews as reported, not official.AI models for apps and private hosting preview (as reported)
Reviews list additional models and tools that apps built on Lovable can use, and report AWS hosting in private preview for select Enterprise customers.Sources: Lovable documentation changelog (docs.lovable.dev/changelog), lovable.dev pricing, and independent reviews from September to October 2026. Pricing and model lists change often.
Declarative Schemas 2.0 and pg-delta
SQL schema files describe the intended structure, and the CLI generates migration SQL with the pg-delta engine. Coverage includes Row Level Security policy changes, grants, view settings, partitions, domains and extension-managed objects.Configuration as code
Supported project settings can be kept in version control insupabase/config.toml, with commands to pull dashboard settings back into the repository. Coverage depends on the CLI version.Native local runtime (alpha, off by default)
An experimental native local option runs without a Docker daemon, and local instances can run from separate project directories. Confirm the current status in your CLI.Supabase Compute (private alpha)
A separate option for longer-running workloads with a full Linux environment. Access is limited while in private alpha.Application-specific MCP servers
An application can expose defined tools to compatible AI agents, which act as an authenticated user. Authorization still has to be enforced by the application and database.Sources: Supabase announcements as described in this article's sections 1 to 5. Check the Supabase changelog and CLI release notes before adoption.
1. What Changed in Supabase in October 2026?
Supabase is a backend platform built around PostgreSQL. Depending on the application, it can provide database services, authentication, file storage, real-time functionality and server-side functions. AI application builders can use these services to connect a generated interface to persistent data and user accounts.
The October 2026 announcements matter for teams using coding agents because they bring more of the backend workflow into the same environment where the agent edits the application's code.
- 🗂️Declarative Schemas 2.0: Define the desired database structure in SQL files and use the CLI to generate migration SQL.
- 🔀pg-delta: A PostgreSQL schema-diff engine designed to capture more kinds of database changes than the previous declarative workflow.
- ⚙️Configuration in code: Bring supported project settings into version-controlled configuration rather than relying entirely on dashboard changes.
- 💻Agent-ready local development: Experimental native local runtime options and support for multiple local project instances.
- 🚀Supabase Compute: A separate service option for longer-running workloads, announced in private alpha.
- 🔌Application-specific MCP servers: A way for compatible AI agents to interact with an application as an authenticated user, subject to the application's authorization design.
These updates address a recurring problem in AI-assisted development: the interface, database and project settings drift apart when some changes live in the repository and others exist only in a hosted dashboard.
For a broader foundation, start with Selah's Supabase for AI-Built Applications: Database, Authentication and Backend Basics. This article focuses on the newer workflow and what it means for implementation.
2. Declarative Schemas 2.0 and pg-delta Explained
A database schema describes the structure of a database: tables, columns, relationships, constraints, indexes, functions and security policies. When an application changes, its schema may need to change too.
For example, an AI-generated booking application may begin with a profiles table and later need appointments, availability and payments tables. If those changes are applied manually in one environment but not recorded correctly for another, development and production can become inconsistent.
What is a declarative schema?
A declarative schema describes the desired database structure in SQL files. The developer maintains files representing the intended structure and uses the development tools to derive migration SQL.
In the Supabase workflow, schema files can live under:
supabase/schemas/
The CLI compares the declared schema with the migration history and generates SQL describing the changes. Developers review the generated migration before applying it.
- Schema files describe the intended structure.
- Migration files describe database changes that can be applied in sequence.
- Review and testing establish whether the proposed change is appropriate for the target environment.
What does pg-delta add?
Declarative Schemas 2.0 uses pg-delta, a schema-diff engine designed to improve coverage of PostgreSQL objects, including Row Level Security policy changes, grants, view settings, partitions, domains and objects managed by extensions.
That matters because an application is more than a collection of tables. A migration that changes a table but misses the associated access policy or grant can leave the database in a state the developer did not intend. Broader coverage helps, but it does not make generated SQL infallible.
A code-first workflow
- Define or update the SQL schema files.
- Use the supported CLI command to generate or synchronize the migration.
- Inspect the generated SQL, including policy and permission changes.
- Test the migration against a development environment with relevant test data.
- Apply the approved change using your normal deployment process.
Check which diff engine your project actually uses before copying a command from a new tutorial. Existing projects do not automatically adopt the settings of a newly initialized project.
3. Local Development and Parallel Git Worktrees
Testing a backend change before production is one of the most important parts of application development. Local development lets a team test schema changes, application behavior and integrations without affecting the live database.
A local Supabase workflow has commonly relied on Docker. Supabase has announced an experimental native runtime that runs local services without a Docker daemon, and it describes running separate local instances from different project directories, which makes parallel worktrees useful for some agent workflows.
Why parallel development can help AI coding agents
Suppose an agent needs to compare two ways to change an application's data model. In a parallel workflow, each alternative can be tested in its own checkout instead of overwriting one working directory.
- Compare two approaches without mixing their files.
- Test separate changes in isolated local instances.
- Review a proposed schema change before merging it.
- Keep the main branch stable while investigating a difficult bug.
Parallel worktrees do not eliminate merge conflicts, resource limits or differences between local and hosted environments. The team still decides which version becomes the accepted implementation.
Should every AI builder switch immediately?
No. If you build a small application in a managed platform and the existing workflow is reliable, a more complex local setup may not be necessary. The native runtime is an alpha capability, so evaluate it in a controlled project before relying on it.
4. Configuration as Code: Reducing Dashboard Drift
Database schema is only one part of a backend. Applications also depend on settings such as authentication providers, API options and storage configuration. If those change in a dashboard and never reach the repository, another environment may not match the one that was tested.
Configuration-as-code workflows aim to make supported settings easier to review, reproduce and synchronize. Supabase's announced workflow keeps project configuration in supabase/config.toml and includes commands to pull supported settings back into the repository. Coverage depends on the current CLI.
Why this matters for AI-generated applications
An agent can edit the files it can see. It cannot reliably reason about an undocumented dashboard change. A repository that records the relevant schema and configuration gives the developer and the agent a more complete picture of the project, which helps when you move between environments or hand a project to someone else.
- A clear record of the settings managed through the repository.
- Documented exceptions for settings that remain dashboard-managed.
- A review process before applying changes to production.
- Separate handling of private credentials and secrets.
- A repeatable way to verify that each environment is configured as expected.
Confirm what the version you use actually covers. A setting not supported by the tooling may still need a separate process.
5. MCP Servers: Connecting AI Agents to an Application
Model Context Protocol (MCP) is a standard that lets compatible AI applications and agents communicate with tools and services. In a business application, an MCP server can expose defined actions that an authorized agent can request.
Consider a scheduling application. A customer might ask an assistant to find open appointments, see their own bookings or request a cancellation. An application-specific MCP server provides those tools without the agent inventing its own way into the database.
Two different MCP use cases
- A development MCP connection helps an AI coding tool work with development resources while you build.
- An application MCP server lets a compatible AI agent interact with the product on behalf of an authenticated user.
These are not interchangeable. A coding assistant with development tools is different from a customer-facing assistant that can read or change live application data.
What Supabase announced
Supabase described an application-specific MCP server that can be added to a project as an authenticated Edge Function. Developers customize the tools, deploy the server and use authentication information to determine who is making a request. The setup requires the relevant authentication configuration, including asymmetric signing keys and the Supabase Auth OAuth server. Check those requirements against your implementation before deploying.
What an application MCP server should not do
- It should not act as a universal bypass around your application's permissions.
- It should not let a user retrieve another user's private records because an agent asked for them.
- It should not accept destructive actions without authorization and safeguards.
A safer design authenticates the user through the supported identity flow, defines a limited set of tools with validated inputs, enforces authorization on the server and in the database, keeps credentials out of client code, logs important actions and requires confirmation for sensitive operations.
6. Security Still Depends on RLS, Authorization and Server-Side Logic
A working login screen or a successful demo does not prove an application is secure.
Authentication answers "Who is signed in?" Authorization answers "What is this person allowed to see or change?" A secure application needs both.
What is Row Level Security?
Row Level Security (RLS) is a PostgreSQL feature that controls which rows a database role can access. In Supabase applications, policies can restrict access according to the authenticated user and the data model. A profile table may allow each user to access only their own profile, and a team application may prevent one organization from reading another's records.
Policies must be designed for each operation (read, insert, update, delete) and tested with the roles that will use the application.
Why the interface cannot be the only control
Hiding an admin button does not stop a user from sending the request directly. Filtering records in browser JavaScript does not protect data the server has already returned. Security decisions belong in the trusted layer: RLS, server-side checks, scoped endpoints or database constraints.
Pay special attention to:
- Whether users can reach another person's records by changing an identifier.
- Whether an ordinary user can change privileged fields such as roles or account status.
- Whether sensitive operations run through trusted server-side logic.
- Whether private keys or service credentials can reach the browser.
- Whether storage files have the intended access policies.
- Whether automated tools can act beyond the user's permissions.
For a practical discussion, read Secure E-Commerce on Base44 and Lovable + Supabase: Why "It Works" Isn't the Same as "It's Secure". For multi-tenant apps, read Multi-Tenant Data Isolation in Base44, which explains why separating one customer's records from another's must be enforced at the data-access layer.
7. A Practical Code-First Workflow for AI-Built Applications
The right workflow depends on the project. This sequence reduces the risk of making several unrelated changes while troubleshooting.
Step 1: Describe the business requirement
Start with the user problem. For example: "A signed-in customer can view their own appointments and request a cancellation, but cannot change another customer's appointment." That is a far better starting point than "Build an appointments database."
Step 2: Define the data model and access rules
List the tables, relationships, constraints and ownership rules, and decide which operations each role needs. Schema and permissions belong together, not as separate finishing tasks.
Step 3: Keep supported changes in version control
Keep schema files, migrations and supported configuration in the repository, and document any dashboard-managed settings. This prevents the development environment from becoming the only record of important decisions.
Step 4: Generate and inspect migrations
Use the CLI workflow your installed version supports, and inspect the generated SQL. Pay particular attention to dropped columns, changed policies and grants.
Step 5: Test the intended behavior and the failure cases
Try the operation as an unauthenticated visitor, a normal user, a different user and an administrator where relevant. Confirm that changing an ID or sending a request directly does not expose another user's records.
Step 6: Review server-side actions and integrations
Payment calculations, permission changes and other high-impact decisions should not rely only on values sent by a browser or an AI model.
Step 7: Deploy deliberately
Back up important data, use a controlled deployment process, review the migration's effects and verify the application afterward. A migration tool generates SQL; it cannot make every production decision for you.
If your project is built in Lovable and you need to understand how the frontend, backend, webhooks and integrations fit together, read Lovable, Supabase, Webhooks and Backend Integration Guide.
8. Interactive Backend-Readiness Checklist
Use this checklist to find areas that need attention before you rely on a code-first backend or connect an AI agent to application data. It is a self-assessment, not a security certification.
Check only what you can verify in your own project.
A high score means you have documented several useful practices. It does not prove the application is secure. Policies, migrations and tests matter more than the number of boxes checked.
9. When Should You Get Technical Help?
AI coding tools help people who are not traditional developers build applications that once required a larger team. Eventually, though, the next problem is no longer solved by another broad prompt.
Consider a deeper technical review when:
- A database migration repeatedly fails or may remove existing data.
- Authentication works inconsistently across environments.
- Users can see records that belong to someone else.
- Webhook, API or external-service integrations behave unpredictably.
- An MCP tool can perform sensitive actions and you cannot verify its authorization rules.
- Each attempted fix creates a new failure.
- The application is moving from prototype to a product real customers use.
The goal is not to hire for every small problem. It is to recognize when repeated experimentation creates risk or costs more time than it saves. Selah's Lovable and Base44 Stuck? When to Fix It Yourself or Hire a Freelancer guide helps you decide. If you are not sure where to start, the AI Business Build Rescue Tool organizes an application problem before you choose a next step.
10. Frequently Asked Questions
What is Supabase Declarative Schemas 2.0?
An updated declarative database workflow that uses SQL schema files to describe the intended structure and the pg-delta engine to generate migration SQL. Developers still review and test the resulting migration.
What is pg-delta?
A PostgreSQL schema-diff engine used by the newer Supabase declarative workflow. It compares database structures and generates SQL. It does not replace human review or make every production migration safe.
Do I still need migration files?
Yes. The workflow generates migrations from schema definitions, and those migrations are what you review and apply to an existing database.
Can Supabase run locally without Docker now?
An experimental native local runtime was announced, described as alpha and off by default at the time of this update. Check the current CLI documentation before adopting it.
What is the difference between Edge Functions and Compute?
Edge Functions suit supported server-side request and event workloads. Compute was announced for longer-running services with a full Linux environment and was in private alpha at the time of this update.
Can an MCP server access my entire database?
It should not. An application MCP server exposes defined tools, authenticates the user and enforces authorization. Policies such as RLS still apply to the operations performed.
Does MCP make an AI-built app secure?
No. The app still needs authentication, authorization, input validation, secret handling, logging and tests for sensitive actions.
Is Supabase a good backend for Lovable apps?
It can be, when the app needs a PostgreSQL database, authentication, storage, real-time features or server-side functions. The right architecture depends on requirements, workload, access model and your ability to maintain it securely.
Should a beginner use Declarative Schemas 2.0 right away?
Not automatically. Start with the data model, what migrations do, and the risks of changing production data. Adopt the workflow when it solves a real problem you can verify.
Can AI agents manage a whole backend without supervision?
Agents can help with schema files, configuration, migration generation and tests, but they can misread requirements and produce destructive SQL or wrong permissions. Review and test important changes before production.
Conclusion: Faster Backend Development Still Requires Sound Engineering
Supabase's October 2026 updates are a meaningful step toward code-first backend work for teams using AI coding agents. Declarative Schemas 2.0 and pg-delta make database changes easier to express and review. Configuration-as-code reduces hidden differences between environments. Application MCP servers create a structured way for compatible agents to act on behalf of users, when authorization is enforced properly.
The strongest workflow is not the one that removes every human decision. It makes decisions visible, changes reviewable, tests repeatable and permissions explicit.
Selah AI Agency helps people understand AI-assisted application development, evaluate technical problems and make informed decisions about building, securing and improving their projects.
Continue Your Path Through the Selah Library
This article is one stop on a longer route. Each card below goes to a related guide or tool, and the homepage lists the full library.
Related Reading on Backend and Security
Editorial note: Platform features, plans, prices and release stages change frequently. This article reflects the sources listed in each section as of October 29, 2026. Items labeled "reported" come from independent reviews, not official announcements. Verify your installed versions and current pricing before applying changes to a live project.
Disclosure: Some links in this article may be referral or affiliate links. If you sign up through them, Selah AI Agency may receive compensation at no extra cost to you.