The pack is generated from the schema files in the admin/sql/ folder of metabrainz/musicbrainz-server. These are CreateTables.sql, CreatePrimaryKeys.sql, and CreateFKConstraints.sql.
Each --module NAME=REGEX rule puts the matching tables in one area. The first rule that matches wins. A table that no rule matches joins the area of its longest table-name prefix. For example, artist_alias_type joins artist. A table that is left alone in its own area joins the area it links to most.