home / openregs

entities

One row per organization named in the records DataDawn serves (nonprofits, companies, trade associations, unions, political committees and others), with the identifiers different sources use for it, such as an EIN, an SEC CIK or an LEI. Data from the Global Legal Entity Identifier Foundation (GLEIF) in this table is a snapshot of its full published file of 2026-04-18, not refreshed since: rows whose source_provenance includes gleif, and most values in the lei column. About 1,500 LEIs, on rows whose source_provenance is sec alone, come from SEC company records instead.

Data license: Public Domain (U.S. Government data) · Data source: U.S. government sources, plus a few identifier registries; each is listed on the methodology page

entity_type
DERIVED category, not a source fact (DataDawn queue #452, labelled 2026-09-05). For IRS-registered nonprofits it is mapped from the Business Master File subsection with two known-wrong defaults: every 501(c)(4) is typed `trade_association` (69,190 orgs incl. social-welfare and advocacy groups) and every 501(c)(5) is typed `union` (43,472 orgs incl. agricultural and horticultural associations). For the true category use the BMF subsection and NTEE code (990 database, `bmf` table, join on `ein`). A retype at entity resolution is scheduled; until then treat `trade_association` and `union` as labels that require evidence.
lei
Legal Entity Identifier. Most come from GLEIF's full published file of 2026-04-18 (a snapshot, not refreshed since); about 1,500, on rows whose source_provenance is sec alone, come from SEC company records.
duns
Not populated: empty on every row (checked 2026-10-19).
status
'active' means only that DataDawn's build created this organization's record and hasn't merged it into another; 'merged' means it has. Neither says whether the organization is legally active or still operating: some that GLEIF lists as retired or liquidated show 'active' here. A blank means the build step that created the record didn't set a status.

0 rows where merged_into_entity_id = 17455

✎ View and edit SQL

This data as json

0 records

CREATE TABLE entities (
    entity_id INTEGER PRIMARY KEY,
    canonical_name TEXT NOT NULL,
    name_normalized TEXT NOT NULL,
    display_name TEXT,                   -- lazy; NULL falls back to canonical_name
    entity_type TEXT,                    -- 'public_company' | 'private_company' | 'nonprofit'
                                         -- | 'foreign_entity' | 'pac' | 'trade_association'
                                         -- | 'union' | 'political_committee' | 'unknown'
    ein TEXT,                            -- IRS (9 digits)
    cik INTEGER,                         -- SEC Central Index Key
    uei TEXT,                            -- SAM.gov Unique Entity Identifier (12 chars)
    lei TEXT,                            -- GLEIF Legal Entity Identifier (20 chars)
    ticker TEXT,                         -- SEC primary ticker, UPPERCASE
    fec_committee_id TEXT,               -- FEC 9-char C00XXXXXX (for PACs/parties)
    duns TEXT,                           -- legacy D&B; federal-adopted subset only
    sic_code TEXT,
    naics_code TEXT,
    ntee_code TEXT,
    state_of_incorporation TEXT,
    primary_state TEXT,                  -- 2-letter USPS (country='US') or ISO-3166-2 subdivision code
                                         -- without country prefix; country lives in country col
    country TEXT,                        -- 2-letter ISO code
    status TEXT,                         -- 'active' | 'merged' | 'defunct' | 'unknown'
    merged_into_entity_id INTEGER,
    source_provenance TEXT,              -- comma-separated set from {'sec', 'bmf', 'gleif',
                                         -- 'fec', 'sam', 'manual'}; tracks which sources
                                         -- contributed to this entity. Unordered set semantics.
    first_seen_date TEXT,
    last_seen_date TEXT,
    created_at TEXT NOT NULL,
    updated_at TEXT NOT NULL,
    notes TEXT, predecessor_names TEXT, primary_industry TEXT, industry_codes TEXT, naics_description TEXT, psc_code TEXT, dd_id TEXT, manual_slug TEXT,
    FOREIGN KEY (merged_into_entity_id) REFERENCES entities(entity_id),
    CHECK (merged_into_entity_id IS NULL OR merged_into_entity_id != entity_id)
);
CREATE UNIQUE INDEX uq_entity_ein ON entities(ein) WHERE ein IS NOT NULL;
CREATE UNIQUE INDEX uq_entity_cik ON entities(cik) WHERE cik IS NOT NULL;
CREATE UNIQUE INDEX uq_entity_uei ON entities(uei) WHERE uei IS NOT NULL;
CREATE UNIQUE INDEX uq_entity_lei ON entities(lei) WHERE lei IS NOT NULL;
CREATE UNIQUE INDEX uq_entity_fec_cmte ON entities(fec_committee_id) WHERE fec_committee_id IS NOT NULL;
CREATE INDEX idx_entity_name_norm ON entities(name_normalized);
CREATE INDEX idx_entity_name_state ON entities(name_normalized, primary_state);
CREATE INDEX idx_entity_ticker ON entities(ticker) WHERE ticker IS NOT NULL;
CREATE INDEX idx_entity_type ON entities(entity_type);
CREATE INDEX idx_entity_provenance ON entities(source_provenance) WHERE source_provenance IS NOT NULL;
CREATE UNIQUE INDEX uq_entity_dd_id ON entities(dd_id) WHERE dd_id IS NOT NULL;
Powered by Datasette · Queries took 373.162ms · Data license: Public Domain (U.S. Government data) · Data source: U.S. government sources, plus a few identifier registries; each is listed on the methodology page · Privacy