Dataset
Supabase Postgres database datasets for AI training
A Supabase database dataset is the PostgreSQL database behind one application built on Supabase: the tables and rows the product writes, the schema with its foreign keys, row-level security policies, functions, triggers and migrations, plus the auth.users and auth.identities records and the files held in Storage buckets where they are in scope. SourceX sources it to a buyer's spec from established businesses that run Supabase. Each dataset is de-identified and licensed for an agreed permitted use.
Dataset manifest
Sourced to your spec- What it is
- One application's Postgres tables and rows with the SQL that governs them: constraints, row-level security policies, functions, triggers and migrations
- Typical systems
- Supabase projects, hosted or self-hosted: Database, Auth (the auth schema), Storage buckets, Edge Functions, Realtime publications, and extensions such as pgvector and pg_cron
- Typical history
- Specified by the buyer; current rows only unless the application kept audit or history tables, with migration files giving a partial schema timeline
- Modality
- Relational rows and JSONB, SQL source for policies, functions and migrations, and Storage files of whatever types users uploaded
- Delivery formats
- Agreed per order; pg_dump archive or Parquet per table, schema, grants and policies as SQL, migration files, Storage objects in original formats with a path manifest
- Preparation
- End-user IDs replaced consistently across the auth, public and storage schemas and Storage paths; password hashes, tokens and keys removed; uploaded files screened
- Licensing
- Scoped per project, schema, table and bucket; permitted use agreed per license
- Availability
- Sourced to your spec; scope depends on what the owner holds rights to, and supply is not guaranteed
What a delivery contains
Fields vary by source system and are fixed per order. A typical delivery includes:
| Field | Type | What it holds |
|---|---|---|
| project_key | string | Pseudonym for the Supabase project; its reference and API keys are not delivered. |
| table | string | Schema-qualified Table name, usually in the public schema that the auto-generated API exposes. |
| row_count | integer | Number of Rows in the Table at the moment of the dump. |
| rls_enabled | boolean | Whether row-level security is on for the Table; without it, a Table in an exposed schema is open to every API role that holds a grant. |
| policies | array | Each Row-level security policy on the Table: name, command, roles, and its USING and WITH CHECK expressions. |
| user_reference_columns | array | Columns with a foreign key to auth.users, the link between application Rows and sign-in accounts. |
| auth_profile | object | Shape of the auth.users and auth.identities records behind those columns: providers and metadata keys, never credentials. |
| functions | array | Each Database function tied to the Table, with its security definer setting and owner. |
| triggers | array | Each Trigger on the Table and the function it runs, webhook triggers included. |
| realtime | boolean | Whether the Table is in the Realtime publication that broadcasts its changes. |
| migrations | array | Each Schema migration that created or altered the Table, from supabase_migrations.schema_migrations and the files in supabase/migrations. |
| schema_drift | object | Columns and policies no Schema migration accounts for, which points to dashboard changes. |
| storage_links | array | Columns holding Storage object paths, with their Storage bucket and the count of files delivered. |
| api_grants | object | Privileges the anon and authenticated roles hold on the Table, which together with the policies decide what a client key can do. |
Field names from the table above; values are masked placeholders.
Example record
{
"project_key": "proj_3fa9",
"table": "public.inspection_reports",
"row_count": 184220,
"rls_enabled": true,
"policies": [
{
"name": "Members read own org reports",
"command": "SELECT",
"roles": [
"authenticated"
],
"using": "org_id in (select org_id from public.memberships where user_id = auth.uid())",
"with_check": null
},
{
"name": "Inspectors insert own reports",
"command": "INSERT",
"roles": [
"authenticated"
],
"using": null,
"with_check": "inspector_id = auth.uid()"
}
],
"user_reference_columns": [
{
"column": "inspector_id",
"references": "auth.users(id)",
"on_delete": "SET NULL"
}
],
"auth_profile": {
"providers": [
"email",
"phone"
],
"credentials_delivered": false
},
"functions": [
{
"name": "public.close_report(report_id uuid)",
"security_definer": true,
"exposed_as_rpc": true,
"owner": "postgres"
}
],
"triggers": [
{
"name": "report_closed_webhook",
"timing": "AFTER UPDATE",
"function": "supabase_functions.http_request",
"headers_redacted": true
}
],
"realtime": true,
"migrations": [
{
"version": "20230214091530",
"name": "create_inspection_reports"
}
],
"schema_drift": {
"columns_not_in_migrations": [
"reviewer_note"
],
"policies_not_in_migrations": 1
},
"storage_links": [
{
"column": "photos_path",
"bucket": "report-photos",
"bucket_public": false,
"objects_in_metadata": 96514,
"files_delivered": 96498
}
],
"api_grants": {
"anon": [],
"authenticated": [
"SELECT",
"INSERT",
"UPDATE"
]
}
}Synthetic record for illustration. Field names, structure and format are agreed per order.
What AI teams use it for
Train agents to write row-level security
Real policies beside the tables they guard show how access rules are written for a working product.
Text-to-SQL on a live application schema
Populated tables with JSONB columns, enum types and user-scoped rows pose harder questions than tidy benchmark schemas.
Review schemas for access mistakes
Tables exposed without row-level security, or with a policy that is always true, are labeled examples for security review models.
Build full-stack coding tasks
Migrations, policies, functions and Edge Function source describe one feature across database and server code.
Evaluate agents on multi-tenant data
Organization and membership tables, with the policies that scope them, give checkable questions about who may read which row.
Use-case guides: Coding agents, Enterprise and computer-use agents, Private evaluation sets
What makes this data valuable
Policies delivered as SQL
Every table with row-level security on comes with its policy definitions, not only its columns.
User links still join
Pseudonymized user IDs match across the auth schema, application tables and Storage paths.
Storage files reconciled
Delivered files agree with the object rows, and gaps are listed.
Migration history present
Migration files and the history table are included, with drift from the live schema reported.
Declared foreign keys
References between application tables are constraints in the schema, not only naming habits.
History stated plainly
The owner says which tables have history rows and which hold current state only.
Document stack
Supabase database dataset
The access rules are SQL in the same database as the rows
A Supabase project is one PostgreSQL database with services around it, and the browser or mobile app usually reads and writes the tables directly through an auto-generated REST API. Often no application server holds the access rules. They are row-level security policies on each table, written as SQL over the row and the caller, typically comparing a column with auth.uid(), the helper that reads the signed-in user's ID from the request token. Each policy names a command, the roles it applies to, and USING and WITH CHECK expressions. What other stacks scatter through controller code sits in one catalog view, beside the foreign keys.
The schemas link in a fixed way. Sign-in accounts are rows in auth.users, with one row per login method in auth.identities. Application tables in the public schema point at auth.users by UUID, commonly through a profiles table that a trigger fills at sign-up. Uploaded files are rows in storage.objects, guarded by policies of their own, and a common convention makes the user's ID the first folder of the path. A function marked security definer runs with its owner's rights and skips the policies whenever that owner can, as the default postgres owner does, which is where privileged operations live.
Check what is not there. An update leaves no earlier version of a row to query, unless the application kept a soft-delete column or an audit table. The Supabase CLI records applied migrations in a history table and as files, but a change made in the dashboard's table editor or SQL editor leaves no migration unless someone captured it afterward, so the live schema and the migrations often disagree. And look at how each table is guarded. One with row-level security on and no policy returns nothing to a client key. One in an exposed schema with it off can be read and written by every role that holds a grant on it, and older projects granted the anon role every privilege on each new public table. The key that carries that role ships inside the app, so ask for the grants along with the policies.
A dump holds current rows, and the files stay in the buckets
The export is pg_dump, run directly or through the Supabase CLI. It writes the schema and the rows as they stood at that moment, with two gaps. First, the CLI's db dump command excludes the Supabase-managed schemas, auth and storage among them, and by default writes no rows or custom roles, so say which schemas you need and confirm the data was dumped too. Policies call auth.uid() and name the anon and authenticated roles, so they fail to restore into plain PostgreSQL unless those exist. Second, Storage. The database holds only the storage.buckets and storage.objects rows: a path, an owner, a size and a MIME type per file. The bytes sit in object storage behind the Storage API, and no dump or database backup contains them. They are copied bucket by bucket, with the object rows as the checklist.
More sits outside the database. Edge Functions are TypeScript, usually kept in the owner's source repository and deployed separately. Sign-in provider settings, API keys and the token signing secret are project configuration. Other things are in the database and should not travel. The auth schema holds email addresses, phone numbers, password hashes, sessions, refresh tokens and the profile data a social login returned. A database webhook is a trigger that calls supabase_functions.http_request, and a key added to its HTTP headers is stored in the trigger definition, so it appears in any dump. A scheduled job that calls an API can carry one the same way.
The rows describe the application's end users, so whether they can be licensed turns on the application's own user terms and privacy notice, which the buyer should read. The same goes for uploaded files and for embedding columns computed from user content. To test a sample, restore it and confirm the policies load. Join a user reference column to the pseudonymized auth.users rows and look for orphans. Reconcile delivered files against storage.objects. Search function bodies, scheduled job commands and trigger arguments for keys.
What to check before licensing
- Have the data owner and your counsel check Supabase's terms for the project's plan, and any self-hosting license, on exported data and API use.
- Read the application's own user terms and privacy notice with counsel, and confirm they cover licensing end-user rows, the auth schema and uploaded files for your intended use.
- Confirm which schemas the dump covers, and that auth.users emails, phone numbers, password hashes, refresh tokens and identity data are removed or pseudonymized.
- Check that Storage files were copied from the buckets and reconciled against storage.objects, since they are not in a database dump or backup.
- Ask for policies, grants, functions and triggers as SQL, and search them, with scheduled jobs and webhooks, for embedded keys.
- Verify user IDs are replaced consistently in application tables, the auth schema, Storage paths and JSONB values, so joins still work and no original UUID remains.
- Ask which tables have history rows, whether migration files match the live schema, and whether embedding columns computed from user content are in scope.
Delivery No files move before a signed license. A listing or a request grants no files by itself.
How licensing works through SourceX
- 1
Define
Send the domain, modality, volume, format, timeline and permitted use you need.
- 2
Source
SourceX identifies businesses that hold matching data and are open to licensing it.
- 3
Qualify
Fit, rights and quality are checked, and you review samples before committing.
- 4
License
Scope, permitted use, exclusivity, price and obligations are agreed in writing.
- 5
Deliver
Approved data is prepared, de-identified where required and transferred securely.
Questions Acquisition Partners ask
How is a Supabase dataset different from any PostgreSQL export?
The engine is the same, the contents are not. A Supabase project carries its access rules as row-level security policies, because clients query the tables directly, and it has fixed auth and storage schemas that application tables point to. That gives you an authorization model in SQL, a known link from rows to sign-in accounts, and file metadata.
Does a dump include the files users uploaded?
No. The database holds one row per file in storage.objects with its bucket, path, owner and size, and the file itself sits in object storage. A complete delivery copies the files from each bucket and reconciles them against those rows. Ask what the files are, since buckets often hold photos or identity documents that need their own screening.
Can I get the history of how rows changed?
Only if the application recorded it. A dump captures the state at one moment, and PostgreSQL keeps no earlier version of an updated row to query. Some applications keep audit tables, soft-delete columns or status-change tables, and the auth schema may hold an audit log of sign-in events. Ask the owner which tables carry history.
Are auth.users and login data included?
Not in raw form. The auth schema holds email addresses, phone numbers, password hashes, sessions, refresh tokens and social login profiles. A delivery should replace user IDs with stable pseudonyms so application rows still join to an account record, keep non-identifying facts such as sign-up date and provider, and drop credentials entirely.
Are Edge Functions and application code part of the dataset?
Only if they are requested from the owner's source repository. Edge Functions are TypeScript deployed alongside the project, and they are not stored in the database. The dump shows where they are called, in webhook triggers and scheduled jobs, but not what they do. Ask for the functions folder as a second source.
Is SourceX affiliated with Supabase, Inc.?
Supabase is named to identify the system the records come from. That does not imply a partnership with or endorsement by Supabase, Inc. The records belong to the business that runs Supabase, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.
Related datasets
- Relational business database exports
Populated relational databases from business applications, with schema, keys, constraints, code tables and a data dictionary
- Database schemas, migrations and stored procedures
Production schema definitions with the migration chain, procedural code and the review and rollback record
- PostgreSQL application databases
A pg_dump of chosen schemas: table rows, declared constraints, views, functions, triggers and the application's own audit or history tables
- Firebase application data and crash records
One app's Firebase project: Firestore documents or a Realtime Database tree with rules and indexes, Auth users, Storage objects, and crash and analytics events
- Auth0 authentication logs and tenant configuration
Tenant log events with type codes, and the applications, connections, roles, organizations and Actions that produced them
Evaluating this data for procurement?
Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.
Request dataset diligenceTell us what your models need
Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.
Updated 26 November 2026.