Dataset Viewer
Auto-converted to Parquet Duplicate
ID
stringlengths
6
6
FILENAME
stringlengths
4
189
URL
stringlengths
93
486
LICENSE
stringclasses
21 values
PERMISSIVE
bool
1 class
TABLES
listlengths
1
977
692793
2021-09-21-08-02.backup.sql
https://github.com/alaindet/garnet/blob/7d26a564123c56ced22ef2bfd4de0e82e0716098/database/2021-09-21-08-02.backup.sql?raw=true
MIT
true
[ { "TABLE_NAME": "courses", "COLUMNS": [ { "NAME": "course_id", "TYPE": "UnsignedInt", "NULLABLE": false, "UNIQUE": true, "DEFAULT": null, "CHECKS": [], "IS_PRIMARY": true, "IS_INDEX": false, "VALUES": [ "1", "2...
015036
schema.sql
https://github.com/nages103/k8s-petclinic/blob/bb75e895591239070846ff96b35a74a5eebe981f/src/main/resources/db/mysql/schema.sql?raw=true
APACHE-2.0
true
[ { "TABLE_NAME": "vets", "COLUMNS": [ { "NAME": "id", "TYPE": "UnsignedInt", "NULLABLE": false, "UNIQUE": true, "DEFAULT": null, "CHECKS": [], "IS_PRIMARY": true, "IS_INDEX": false, "VALUES": null }, { "NAME": "...
074111
sql_query_examples.sql
https://github.com/musala9/MyBank_Project/blob/1db188f11d24760df4d60e757d966a5e4acf720c/Bank_Arrays/sql_query_examples.sql?raw=true
MIT
true
[ { "TABLE_NAME": "employee", "COLUMNS": [ { "NAME": "employee_ID", "TYPE": "Int", "NULLABLE": false, "UNIQUE": true, "DEFAULT": null, "CHECKS": [], "IS_PRIMARY": true, "IS_INDEX": false, "VALUES": [ "108" ] ...
219589
V2.0.0__Create%20staff%20individual%20and%20organizational%20provider.sql
https://github.com/bhits/pcm-api/blob/842e325bd521533ffff4793d10e37e041318e72b/pcm/src/main/resources/db/migration/V2.0.0__Create%20staff%20individual%20and%20organizational%20provider.sql?raw=true
APACHE-2.0
true
[ { "TABLE_NAME": "staff_individual_provider", "COLUMNS": [ { "NAME": "id", "TYPE": "BigInt", "NULLABLE": false, "UNIQUE": true, "DEFAULT": null, "CHECKS": [], "IS_PRIMARY": true, "IS_INDEX": false, "VALUES": null }, { ...
346436
1333961065.sql
https://github.com/FationSH/EvolutionChartExporter/blob/f85d3fb8e84f2b57ecfd1279f4c1a08c1f7a9cfa/SCHEMA_EVO_2019/marssa__footprint/schemata/1333961065.sql?raw=true
MIT
true
[ { "TABLE_NAME": "logging_event_exception", "COLUMNS": [ { "NAME": "event_id", "TYPE": "BigInt", "NULLABLE": false, "UNIQUE": false, "DEFAULT": null, "CHECKS": [], "IS_PRIMARY": true, "IS_INDEX": false, "VALUES": null }, ...
370091
hive-schema-3.0.0.derby.sql
https://github.com/chenshuai1995/hive-release-HDP-3.1.5.0-152-tag/blob/2be3899a421d37f042d3c26f5ed6bf5569a7e787/standalone-metastore/src/main/sql/derby/hive-schema-3.0.0.derby.sql?raw=true
APACHE-2.0
true
[ { "TABLE_NAME": "APP.DBS", "COLUMNS": [ { "NAME": "DB_ID", "TYPE": "BigInt", "NULLABLE": false, "UNIQUE": false, "DEFAULT": null, "CHECKS": [], "IS_PRIMARY": false, "IS_INDEX": false, "VALUES": null }, { "NAME"...
323201
remote-backup-1438149387.sql
https://github.com/shout-reverie/thesixthlie-dev/blob/8a78ff64a96bcb26c0777337c947bf847e89360c/www/wordpress/wp-content/remote-backup-1438149387.sql?raw=true
MIT
true
[ { "TABLE_NAME": "wp6_links", "COLUMNS": [ { "NAME": "link_id", "TYPE": "UnsignedBigInt", "NULLABLE": false, "UNIQUE": true, "DEFAULT": null, "CHECKS": [], "IS_PRIMARY": true, "IS_INDEX": false, "VALUES": null }, { ...
011390
RoleTypePrivileges.sql
https://github.com/BugsUK/FindApprenticeship/blob/cd261c9199c3563031aab66582c0a10ecc055f8a/src/SFA.Apprenticeships.Data.AvmsPlus/dbo/Tables/RoleTypePrivileges.sql?raw=true
MIT
true
[ { "TABLE_NAME": "dbo.RoleTypePrivileges", "COLUMNS": [ { "NAME": "RoleTypeId", "TYPE": "Int", "NULLABLE": false, "UNIQUE": false, "DEFAULT": null, "CHECKS": [], "IS_PRIMARY": false, "IS_INDEX": false, "VALUES": null }, ...
324226
prices.sql
https://github.com/kaseat/pManager/blob/f8f425cdbae13b6f5d0e244fe5678f6d0eb8f243/db/tables/prices.sql?raw=true
MIT
true
[ { "TABLE_NAME": "prices", "COLUMNS": [ { "NAME": "sid", "TYPE": "Integer", "NULLABLE": false, "UNIQUE": false, "DEFAULT": null, "CHECKS": [], "IS_PRIMARY": true, "IS_INDEX": false, "VALUES": null }, { "NAME": "...
136435
schema.sql
https://github.com/kinghaoYPGE/my_java/blob/ca01e2a8625bc5d3e0ff0c0c73be29df2f2981cc/my_ssm/ssm_hrms_app/schema.sql?raw=true
MIT
true
[ { "TABLE_NAME": "admin_tb", "COLUMNS": [ { "NAME": "admin_id", "TYPE": "Int", "NULLABLE": false, "UNIQUE": true, "DEFAULT": null, "CHECKS": [], "IS_PRIMARY": true, "IS_INDEX": false, "VALUES": null }, { "NAME":...
209135
schema.sql
https://github.com/garyCC227/cs3311/blob/0c1af6672c126f94c20bdb573b04a9b1c80b03eb/lec/lec03/ex6/schema.sql?raw=true
MIT
true
[ { "TABLE_NAME": "Beers", "COLUMNS": [ { "NAME": "name", "TYPE": "BarName", "NULLABLE": false, "UNIQUE": true, "DEFAULT": null, "CHECKS": [], "IS_PRIMARY": true, "IS_INDEX": false, "VALUES": null }, { "NAME": "m...
626182
admin_data.sql
https://github.com/wexxwebb/sport_schedule/blob/04dffeb75b847756a611c274d64693f4f65fcadf/sql/admin_data.sql?raw=true
APACHE-2.0
true
[ { "TABLE_NAME": "admin_data", "COLUMNS": [ { "NAME": "value", "TYPE": "serial", "NULLABLE": false, "UNIQUE": true, "DEFAULT": null, "CHECKS": [], "IS_PRIMARY": true, "IS_INDEX": false, "VALUES": null }, { "NAME...
025049
095_sqlite_downgrade.sql
https://github.com/usc-isi/extra-specs/blob/4e5fee4a6830f337f02ca1ec1069285a68629979/nova/db/sqlalchemy/migrate_repo/versions/095_sqlite_downgrade.sql?raw=true
APACHE-2.0
true
[ { "TABLE_NAME": "volumes_backup", "COLUMNS": [ { "NAME": "created_at", "TYPE": "Datetime", "NULLABLE": false, "UNIQUE": false, "DEFAULT": null, "CHECKS": [], "IS_PRIMARY": false, "IS_INDEX": false, "VALUES": null }, { ...
606861
1008.sql
https://github.com/CUBRID/cubrid-testcases/blob/fa1540364efb889d462136994e760320e84ebfcd/sql/_01_object/_08_primary_foreign_key/_003_manipulation/cases/1008.sql?raw=true
BSD-3-CLAUSE
true
[ { "TABLE_NAME": "album", "COLUMNS": [ { "NAME": "id", "TYPE": "Char", "NULLABLE": false, "UNIQUE": true, "DEFAULT": null, "CHECKS": [], "IS_PRIMARY": true, "IS_INDEX": false, "VALUES": [ "003" ] }, { ...
359286
sisnaker-atase12.sql
https://github.com/vny1422/sisnaker-atase/blob/59c79a527a18166f6e3ac4b003a099c66992e6e9/database/sisnaker-atase12.sql?raw=true
MIT
true
[ { "TABLE_NAME": "agensi_merge_map", "COLUMNS": [ { "NAME": "agid_kembar", "TYPE": "Int", "NULLABLE": false, "UNIQUE": false, "DEFAULT": null, "CHECKS": [], "IS_PRIMARY": false, "IS_INDEX": false, "VALUES": null }, { ...
186369
mas_smallest.sql
https://github.com/umich-dbgroup/duoquest/blob/92c88d90f73b2b5712af6dc024cd32493fc7c8e6/squid/schema/preload/mas_smallest.sql?raw=true
MIT
true
[ { "TABLE_NAME": "author_organization", "COLUMNS": [ { "NAME": "author_id", "TYPE": "Integer", "NULLABLE": false, "UNIQUE": false, "DEFAULT": null, "CHECKS": [], "IS_PRIMARY": false, "IS_INDEX": false, "VALUES": null }, ...
689276
nitkuora.sql
https://github.com/PoorvaRane/nitkuora/blob/284fe0db088591ee1d4ceb49d239dadde44a666b/nitkuora.sql?raw=true
MIT
true
[ { "TABLE_NAME": "audit", "COLUMNS": [ { "NAME": "audit_id", "TYPE": "Int", "NULLABLE": false, "UNIQUE": true, "DEFAULT": null, "CHECKS": [], "IS_PRIMARY": true, "IS_INDEX": false, "VALUES": [ "1", "2", ...
331887
schema.sql
https://github.com/nqtinh/go-gin-project/blob/3dd864bf4dadb431fd6d82c69fe1a0a09deb7bf6/db/schema.sql?raw=true
MIT
true
[ { "TABLE_NAME": "public.account", "COLUMNS": [ { "NAME": "id", "TYPE": "Integer", "NULLABLE": false, "UNIQUE": false, "DEFAULT": null, "CHECKS": [], "IS_PRIMARY": false, "IS_INDEX": false, "VALUES": null }, { "...
475944
schema-004.sql
https://github.com/kykrueger/openbis/blob/b07ef539d5e243697083a318a0603f2be1dfb0f2/eu_basysbio/source/sql/postgresql/004/schema-004.sql?raw=true
APACHE-2.0
true
[ { "TABLE_NAME": "DATA_COLUMN_VALUES", "COLUMNS": [ { "NAME": "DACO_ID", "TYPE": "TECH_ID", "NULLABLE": false, "UNIQUE": false, "DEFAULT": null, "CHECKS": [], "IS_PRIMARY": true, "IS_INDEX": false, "VALUES": null }, { ...
337258
201908141300_initialize_schema.up.sql
https://github.com/kyma-incubator/compass/blob/0640eb170bd3faa3b07e1f785269a5cc77b66043/components/schema-migrator/migrations/director/201908141300_initialize_schema.up.sql?raw=true
APACHE-2.0
true
[ { "TABLE_NAME": "runtimes", "COLUMNS": [ { "NAME": "id", "TYPE": "Uuid", "NULLABLE": false, "UNIQUE": true, "DEFAULT": null, "CHECKS": [ "id <> '00000000-0000-0000-0000-000000000000'" ], "IS_PRIMARY": true, "IS_INDEX": f...
607590
TUTORIAL_MYSQL_ratings.sql
https://github.com/lipegomes/tutorial-como-instalar-mysql-no-docker-linux/blob/f161bfb08203f03114dea74bea9ad9f5482ecc05/database/backup/Dump20210722/TUTORIAL_MYSQL_ratings.sql?raw=true
MIT
true
[ { "TABLE_NAME": "ratings", "COLUMNS": [ { "NAME": "movie_id", "TYPE": "Int", "NULLABLE": false, "UNIQUE": false, "DEFAULT": null, "CHECKS": [], "IS_PRIMARY": true, "IS_INDEX": false, "VALUES": null }, { "NAME":...
388813
V1_1_0_2__form_schema.sql
https://github.com/xycpand/my-lemon/blob/4127727a43c0895da9b9d7cb43f91ea4de0ad81b/src/main/resources/dbmigrate/h2/form/V1_1_0_2__form_schema.sql?raw=true
APACHE-2.0
true
[ { "TABLE_NAME": "FORM_SCHEMA", "COLUMNS": [ { "NAME": "ID", "TYPE": "BigInt", "NULLABLE": false, "UNIQUE": true, "DEFAULT": null, "CHECKS": [], "IS_PRIMARY": true, "IS_INDEX": false, "VALUES": null }, { "NAME":...
478650
tables.sql
https://github.com/sanzol-tech/core-app-v2/blob/ba3c75f80444c174dffa1a271bb152c7a80dc0f0/base/mysql/tables.sql?raw=true
MIT
true
[ { "TABLE_NAME": "se_accounts", "COLUMNS": [ { "NAME": "ACCOUNT_ID", "TYPE": "Int", "NULLABLE": false, "UNIQUE": true, "DEFAULT": null, "CHECKS": [], "IS_PRIMARY": true, "IS_INDEX": false, "VALUES": null }, { "N...
End of preview. Expand in Data Studio

SchemaPile

Usage

from datasets import load_dataset
ds = load_dataset("trl-lab/schemapile", split="full")
print(f"Loaded dataset with {len(ds)} records.")
print(ds[0])

Description

SchemaPile is a collection of database schemas extracted from various sources, normalized for consistency and ease of use in machine learning workflows. Each record contains metadata (INFO), licensing information, permissiveness, and a list of tables with detailed column specifications.

Schema

  • INFO:

    • ID: Unique identifier (from filename prefix)
    • FILENAME: Original filename
    • Additional metadata fields
  • LICENSE: License string (if available)

  • PERMISSIVE: Boolean indicating permissive license

  • TABLES: List of tables, each with:

    • TABLE_NAME: Name of the table
    • COLUMNS: List of columns, each with:
      • NAME, TYPE, NULLABLE, UNIQUE, DEFAULT, CHECKS, IS_PRIMARY, IS_INDEX, VALUES
    • PRIMARY_KEYS, FOREIGN_KEYS, CHECKS, INDEXES

Citation

If you use SchemaPile in your research, please cite:

@article{dohmen2024schemapile,
  title={Schemapile: A large collection of relational database schemas},
  author={D{"o}hmen, Till and Geacu, Radu and Hulsebos, Madelon and Schelter, Sebastian},
  journal={Proceedings of the ACM on Management of Data},
  volume={2},
  number={3},
  pages={1--25},
  year={2024},
  publisher={ACM New York, NY, USA}

Read the paper

Website

For more information, visit the SchemaPile website.

License

See individual record LICENSE fields for details. The PERMISSIVE flag indicates whether the schema is under a permissive license.

Downloads last month
182