Skip to content
GuidesChecked 21 November 2026

Database schema file statistics, 40 numbers

Forty numbers on database schema files, counted on 21 November 2026.

Free for one project and 100 votes. Paid plans start with a 14 day trial, no card.

File names

Eight numbers on how many public database schema files exist, by file name.

3,141,632 files have models.py in the name, and 165,632 have database.sql in the name.

The models.py file leads, and it is 19.0 times as common as database.sql.

Database schema file names
StatisticNumber
models.py3,141,632
schema.sql864,256
tables.sql269,824
db.sql247,040
init.sql235,008
schema.rb220,416
models.js203,264
database.sql165,632

SQL schema

Eight numbers on the names that schema.sql files use.

The table name users is in 6.9 in 100 schema.sql files, and votes in 0.1 in 100.

The table name users leads, and orders follows at 2.0 in 100.

Names in schema.sql
StatisticIn 100
users6.9
orders2.0
comments0.7
posts0.5
subscriptions0.3
feedback0.2
likes0.2
votes0.1

Ruby schema

Eight numbers on the names that schema.rb files use.

The table name users is in 56.2 in 100 schema.rb files, and feedbacks in 0.5 in 100.

The table name users leads, and comments follows at 12.3 in 100.

Names in schema.rb
StatisticIn 100
users56.2
comments12.3
posts11.9
orders4.6
likes3.2
votes2.5
subscriptions1.4
feedbacks0.5

Python models

Eight numbers on the names that models.py files use.

The class name User is in 12.9 in 100 models.py files, and Vote in 0.2 in 100.

The class name User leads, and Post follows at 2.7 in 100.

Names in models.py
StatisticIn 100
User12.9
Post2.7
Order2.5
Comment2.1
Feedback0.5
Subscription0.4
Like0.4
Vote0.2

SQL init file

Eight numbers on the names that init.sql files use.

The table name users is in 9.6 in 100 init.sql files, and votes in 0.1 in 100.

The table name users leads, and orders follows at 1.7 in 100.

Names in init.sql
StatisticIn 100
users9.6
orders1.7
posts0.5
comments0.5
subscriptions0.3
feedback0.2
likes0.2
votes0.1

What is in the file

Forty numbers in one file

The CSV holds a row for every figure, labeled with its group and its unit.

Five groups

File names, then table and class names in four kinds of schema file.

Counts, not databases

Only totals and shares are given, and no project, author or server is named.

Easy to cite

Use a single number or the whole set, and name this page and the day of the read.

How the files were counted

One code search for each file name and each table or class name.

Fix the file name

A name query stayed inside one file name, so every share is taken from a total we know.

Match the name

The search joined a file name to a create table phrase, or to a class phrase, and returned the matching files.

Retry a partial reply

When a reply was flagged partial the search ran again, up to three more times once the limit reset.

Divide in code

Code turned each name count into a share of its file total, testing every share before it was kept.

Which tables a board adds to an ordinary schema

A table for votes is rare in public schema files, at 2.5 in 100 of the Ruby schema.rb files, 0.2 in 100 of the Python model files and 0.1 in 100 of the init.sql files.

Of the tables a board needs, users is the common one in the schema.rb files, at 56.2 in 100, with comments at 12.3 and posts at 11.9, and votes is the one most schemas lack. Likes, at 3.2 in 100, is the nearest name that schemas already use.

What these numbers leave out

  • These are files and not databases. A schema copied into many repositories counts once per copy. Popular starters can lift a share well above real use.
  • Many public schema files are tutorials, course work or sample data, so a share describes code on a host and not live products.
  • The match needs the exact phrase, so a table made under a prefix, a schema name or a plural spelling is not counted.
  • The models.py total is in the millions and the search rounds totals that large, so every share in that group is approximate.
  • The schema.sql total is also rounded, so its shares carry a few points of error in either direction.
  • No age filter was available, so each total blends newly written schemas with others left alone for years.
  • Four file names and two table or class names from each group were counted and left out, so every group shows eight rows.
  • A single file can create several of these tables, so a sum of shares counts that file more than once.
  • A table named votes is no proof of a voting feature, since the name can hold any kind of tally.
  • Only a few file names are read, so schemas kept under other names or in other formats are absent.
  • Every name searched is English, so tables named in any other language are mostly missing from these shares.
  • No project, author or server is named in this page.
  • A file name search matches any name that contains the text, so models.py also counts longer names around it.

What people ask about database schemas

How many public schema.sql files are there?

864,256 public files have schema.sql in the name.

How many public schema.rb files are there?

220,416 files have schema.rb in the name.

How many public init.sql files are there?

235,008 files have init.sql in the name.

How many schema.sql files create a users table?

The table name users is in 6.9 in 100 schema.sql files.

How many schema.sql files create a comments table?

The table name comments is in 0.7 in 100 schema.sql files.

How many schema.sql files create a votes table?

The table name votes is in 0.1 in 100 schema.sql files.

How many schema.sql files create a feedback table?

The table name feedback is in 0.2 in 100 schema.sql files.

How many schema.rb files create a votes table?

The table name votes is in 2.5 in 100 schema.rb files.

How many schema.rb files create a likes table?

The table name likes is in 3.2 in 100 schema.rb files.

How many models.py files define a Vote class?

The class name Vote is in 0.2 in 100 models.py files.

How many models.py files define a Feedback class?

The class name Feedback is in 0.5 in 100 models.py files.

May a page quote these figures?

Yes, with this page named and the read date. Every figure is one of the 40 rows in database-schema-file-statistics-2026-11.csv, so a reader can check it.

Skip the votes table you would build

Your first board is free, with one project and 100 votes. The 14 day trial of Lite or Pro needs no card.