Teams building a distribution product often start with the XML: find a sample NewReleaseMessage, fill it from the database, ship it. It works until the first edge case. This article argues for the opposite order and gives a concrete model to start from.
Why start with the data model instead of the message?
Because an ERN message is just a serialization of your data. If the underlying model mirrors ERN's concepts, every version of the message is a mechanical transformation. If it does not, every version becomes a fragile mapping full of special cases.
Consider a common starting point: a releases table with columns like artist_name, featured_artists and track_1_title. It is quick to build and fine for a storefront. It becomes painful the moment you need to say that the same producer worked on six tracks, that an artist changed their billing name last year, or that a release has a different title in one territory. ERN 4 expects you to express exactly those facts, and a flat table cannot.
The goal is not to replicate the DDEX schema in your database. It is to adopt its core ideas so that your data has the same shape as the messages you need to produce.
What are the core entities?
Four entities carry almost everything: parties, resources, releases and deals. Relationships between them, such as who contributed what in which role, are stored as links rather than repeated text.
| Entity | Represents | Key attributes |
|---|---|---|
| Party | A person or organization: artist, producer, writer, label | Stable internal ID, names by language/script, optional external identifiers |
| Resource | A sound recording, video or image | ISRC (recordings), title, duration, technical files, parental warning |
| Release | The product a listener sees: single, EP, album | UPC/EAN, type, display title, display artist, label, resource list in order |
| Deal | Commercial terms for a release | Territories, usage types, commercial models, start and end dates |
Two link tables complete the picture: resource_contributor (party, resource, role, sequence, credited yes/no) and release_artist (party, release, role, sequence). With these, "featured artist on track 3" is a row, not a substring buried in a title.
How should parties and names be modeled?
One party record per real person or organization, with names stored separately by language and script. Billing names that change over time are stored as dated variants of the same party, not as new parties.
This is where most catalogs leak quality. If "Sample Artist", "Sample Artist feat." and "S. Artist" exist as three free-text strings, a store may create three artist pages. In a party model they are one entity with one canonical display name and, optionally, alternates.
- Canonical display name per party, per script you support.
- Name history with effective dates, so older releases can keep their original billing.
- Roles are not names. "Producer" belongs in the link record, never in the party name.
- External identifiers such as ISNI or a destination's artist ID, kept on the party when you have them.
How should recordings and releases relate?
Recordings are independent of releases. A release references an ordered list of recordings; the same recording can appear on a single, an album and a compilation without being duplicated.
Duplication here is costly. If the album version of a song is stored as a fresh row with a copied ISRC, any correction must be made twice and will eventually be made once. Worse, when a remix or a live version arrives, the temptation is to reuse the ISRC, which merges distinct recordings in the eyes of destinations. Every distinct recording gets its own row and its own ISRC; every appearance on a release is a reference.
ERN 4 reflects this through lean TrackRelease structures that inherit most of their data from the underlying sound recording. If your model already separates recordings from releases, generating these is trivial.
How should deals and territories be stored?
As a default deal plus explicit exceptions. Store the common case once, for example worldwide streaming and download from a start date, then add rows only where a territory or usage genuinely differs.
Older feeds frequently store one row per territory with identical values. That multiplies storage and, more importantly, multiplies the places where a change must be made. ERN 4 encourages the default-plus-override approach, and so should your schema. A takedown or a date change then becomes an edit to one deal row rather than to two hundred.
Keep dates explicit and validated against each other: original release date, street date, pre-order date and any end date. Contradictions between them are one of the most common reasons destinations hold a release.
Where do newer ERN 4.3.2 facts fit?
As first-class fields captured at intake: display genre, editions of a recording (for example stereo and immersive), and declarations about AI involvement in recordings or artwork. If the data is not captured at upload, it cannot be delivered honestly later.
This is the forward-looking benefit of modeling early. Fields added in ERN 4.3 and 4.3.1 have no equivalent in older versions, so a model shaped around 3.8.2 has nowhere to put them. A model shaped around entities and links simply gains a few attributes.
How do you produce multiple ERN versions from one model?
Write one serializer per version, each reading from the same entities. The ERN 4 serializers map nearly one to one; the 3.8.2 serializer expands party references into repeated inline data and defaults into territory blocks.
Load the release graph
Fetch the release, its ordered resources, every linked party and the applicable deals.
Run content validation
Check identifiers, required credits, date logic and asset specifications against destination rules.
Serialize per destination
Choose the version the destination has agreed and render the message.
Validate against the XSD
Reject anything that fails the official schema before it reaches a batch.
Record what was sent
Store the message ID, version and payload hash with the release, so acknowledgments and later updates can be traced.
Which validation rules belong close to the model?
Rules that protect identity and consistency: unique ISRCs per distinct recording, unique UPCs per release, required contributor roles, non-contradictory dates, and names that exist as parties rather than free text. Enforce them at write time, not only at delivery time.
Catching a duplicate ISRC when a user saves a track is cheap; catching it after a destination has merged two recordings is not. The same goes for a featured artist typed into a title field. A simple pattern check on save, warning when a title contains "feat." or "ft.", prevents a whole class of style-guide rejections.
- ISRC format and uniqueness across all recordings
- UPC or EAN check digit and uniqueness across releases
- At least one main artist per release and per recording
- Writer credits present where destinations require them
- Original release date on or before deal start date for new releases
What is the payoff?
Upgrades become additive, corrections happen in one place, and destinations see consistent data. The model costs a little more up front and saves a great deal in every month that follows.
If you are designing or refactoring a catalog system and want a second opinion on the model, contact us. Our integration page explains how a platform built this way hands data to our engine, and the version guide shows what each ERN release expects.