Answer

What is a master-detail relationship?

Master-detail is a specific database relationship pattern that has become CRM vocabulary largely because Salesforce named it that way. Other platforms call the same pattern parent-child or strict reference.

Short answer

A master-detail relationship is a tight parent-child link between two record types where the detail (child) record cannot exist without the master (parent). The detail inherits ownership and permissions from the master, is automatically deleted when the master is deleted (cascade delete), and typically supports rollup fields that aggregate detail data onto the master. The classic Salesforce example: an Opportunity Line Item is a detail of an Opportunity. Deleting the opportunity deletes the line items. The relationship is tighter than a simple lookup (which allows the child to exist independently).

Key points

What matters most.

The five properties that define a master-detail relationship and distinguish it from a simple lookup.

Tight parent dependency

The detail cannot exist alone.

A detail record must have a master. Create the detail without the master and the save fails. Delete the master and the detail is deleted automatically (cascade delete). The dependency is structural, not conventional. Simple lookups allow the child to exist independently; master-detail does not.

Inherited ownership

The master owner becomes the detail owner.

The detail record does not have its own owner field. It inherits ownership from the master. Reassigning the master reassigns the detail automatically. This simplifies permissions administration and prevents the common failure where child records end up with different owners than their parents.

Inherited permissions

If you can see the master, you can see the detail.

Visibility and edit permissions flow from the master to the detail. The detail does not have independent sharing rules. If a user cannot see the master, they cannot see the detail. This prevents the data leak pattern where a user has access to a child record whose parent they are not supposed to see.

Rollup summary fields

Aggregate detail data onto the master.

Rollup summary fields on the master can aggregate detail data: SUM of line item amounts, COUNT of line items, MIN of line item start dates, MAX of line item close dates. The rollup updates automatically when a detail changes. The feature is specific to master-detail relationships because the engine needs a strict parent-child shape to run the aggregation reliably.

Common use cases

Line items, event registrations, project tasks.

Classic master-detail examples: opportunity line items (one deal, many products), event registrations (one event, many attendees), project tasks (one project, many tasks), order line items (one order, many SKUs). The pattern is used anywhere the child has no independent existence outside the parent context.

The alternative

Lookup relationships are looser.

A simple lookup allows the child to reference the parent without the strict dependency. The child can exist without the parent, has its own owner, has its own permissions, and does not support rollup summaries. Lookup is the right pattern for softer references (a contact belongs to a company, but exists even if the company is deleted). Master-detail is the right pattern for strict containment.

The two patterns compared

When to use master-detail vs when to use lookup.

Choosing between master-detail and lookup is a data model decision that shapes how the records behave for the life of the CRM. The comparison below is the practical difference.

Independence

Can the child exist on its own.

If the child record makes no sense without the parent (a line item without a deal, an attendee without an event), use master-detail. If the child can exist independently (a contact without a company, a task without a project), use lookup. The test is whether orphaned child records are a bug or a legitimate state.

Ownership

Shared vs independent.

If the child should share ownership with the parent (a line item is owned by whoever owns the deal), use master-detail. If the child has its own owner that differs from the parent (a task on a project may be owned by a different team member), use lookup. The ownership rule has downstream effects on routing, permissions, and reporting.

Permissions

Inherited vs independent.

If the child permissions should match the parent (you can see the line item if you can see the deal), use master-detail. If the child needs independent permissions (an executive can see the account but not the sensitive notes attached to it), use lookup with explicit sharing rules on the child.

Rollups

Aggregation vs no aggregation.

If the parent needs rollup summary fields (SUM of line item amounts on the deal, COUNT of attendees on the event), use master-detail because rollups require it. If the parent does not need aggregated child data, lookup is sufficient and simpler.

Cascade delete

Delete together vs delete separately.

If deleting the parent should delete all children (deleting a deal should delete its line items), use master-detail. If children should survive parent deletion (deleting a company should not delete its contacts), use lookup. Cascade delete is powerful and dangerous; master-detail enforces it, lookup does not.

Reparenting

Can the child move to a different parent.

Master-detail reparenting (moving a detail from one master to another) is sometimes restricted and sometimes allowed depending on CRM configuration. Lookup reparenting is always allowed. If the child frequently needs to move between parents (reassigning a task to a different project), lookup may be the better pattern.

Common CRM examples

Where the pattern shows up in a working CRM.

The six examples below are the standard master-detail relationships that appear in most B2B CRMs. If you are modeling similar data, these are the shapes to start from.

Deal line items

Multiple products per deal.

A deal has one or many line items. Each line item is a specific product or service with its own quantity and price. The line items cannot exist outside the deal; deleting the deal deletes them. Rollup fields on the deal sum the line item amounts, count the line items, and roll up discount totals.

Event attendees

Multiple registrations per event.

An event (webinar, conference, meetup) has one or many registrations. Each registration is a specific contact with their RSVP status and any custom responses. The registrations cannot exist outside the event. Rollups count attendees, split by status, and compute capacity utilization.

Project tasks

Multiple tasks per project.

A project has one or many tasks. Each task is a work item with owner, status, due date, and effort estimate. The tasks make no sense outside the project. Rollups count open tasks, sum effort, flag overdue tasks on the project record. Deleting the project deletes the tasks.

Contract line items

Multiple terms per contract.

A contract has one or many line items (subscription, services, overages, discounts). The line items feed billing and revenue recognition. Deleting the contract deletes the line items. Rollups compute total contract value, annualized recurring revenue, and billing schedules.

Case notes

Multiple notes per support case.

A support case has one or many internal notes. The notes are context for case handling. They have no existence outside the case. Rollups count notes, flag cases with no recent activity, and feed support reporting on case engagement.

Order line items

Multiple SKUs per order.

An order has one or many line items with SKU, quantity, price, and shipping details. The line items cannot exist outside the order. Rollups compute order total, item count, shipping cost, and fulfillment status. The classic ecommerce and B2B order pattern.

The implementation details

What CRM admins actually configure.

Setting up a master-detail relationship involves specific configuration decisions. The six considerations below are what matters in practice when designing a parent-child data model.

Required at creation

The master lookup is mandatory.

The master lookup field on the detail object is required and cannot be set to allow blank values. The CRM enforces this at the schema level. Attempting to create a detail without specifying the master fails with a validation error. The requirement is what makes master-detail different from a nullable foreign key.

Delete behavior

Cascade delete is on by default.

When the master is deleted, the detail is deleted automatically. Most CRMs allow configuring whether cascade delete is enabled, but the default is on because the pattern exists to enforce containment. Teams that disable cascade delete usually create orphan child records they later have to clean up.

Rollup field design

What to aggregate, from which filter.

Each rollup summary field on the master specifies the aggregation (SUM, COUNT, MIN, MAX) and the filter (which details count). A rollup of line item SUM amount might filter out line items with zero quantity. The filter design is where rollups either produce the right number or a confusing one.

Reparenting rules

Can a detail move between masters.

By default, master-detail relationships are strict and reparenting is often disabled. Most CRMs allow enabling it per relationship with explicit configuration. Enable it only when the business motion requires it (reassigning a task to a different project happens; reassigning a line item to a different deal rarely does).

Record count limits

How many details per master.

Some CRMs limit the number of detail records per master (Salesforce historically limited to 10,000 per master before changes). The limit matters for high-volume use cases (event registrations in the thousands, line items in the hundreds). Check the vendor limit before committing to a master-detail design for high-volume data.

Reporting on the pair

Join reports read master-with-details.

Reports that join master and detail records (deals with their line items, events with their attendees) work natively in master-detail because the join path is explicit. The reports are often the primary motivation for using master-detail instead of a simpler data pattern. Rollups do most of the aggregate work; join reports do the detail-level work.

Model the business on a CRM with native parent-child relationships.

Strkr custom objects support strict parent-child relationships with inherited ownership, inherited permissions, cascade delete, and rollup summaries. The data model bends to the business, not the other way around.

People also ask

Related questions.

What is the difference between a master-detail relationship and a lookup relationship?

A master-detail relationship is strict: the detail cannot exist without the master, inherits ownership and permissions from the master, is deleted when the master is deleted (cascade delete), and supports rollup summary fields. A lookup relationship is looser: the child can exist independently, has its own owner, has its own permissions, is not deleted when the parent is, and does not support rollups. Use master-detail when the child has no meaning outside the parent. Use lookup for softer references.

What is an example of a master-detail relationship?

A classic example: Opportunity Line Items in Salesforce. The line item records what product and quantity are included on a deal. Each line item belongs to exactly one opportunity. Deleting the opportunity deletes the line items. The opportunity has a rollup field summing the line item amounts. Other examples: event registrations under an event, project tasks under a project, order line items under an order, contract line items under a contract.

Can a master-detail child have its own owner?

No. The detail record inherits ownership from the master and does not have an independent owner field. If the child needs its own owner (because different team members own different tasks on the same project, for example), the right pattern is a lookup relationship with an explicit owner field on the child, not master-detail. The ownership inheritance is one of the defining properties of master-detail.

What is a rollup summary field?

A rollup summary field on the master aggregates data from the detail records: SUM of line item amounts, COUNT of attendees, MIN of task start dates, MAX of case closed dates. The rollup updates automatically when a detail record is created, updated, or deleted. Rollup fields are specific to master-detail relationships because the engine needs a strict parent-child shape to run the aggregation reliably.

What happens when you delete a master record?

All detail records are deleted automatically (cascade delete). This is a defining property of master-detail and the reason to choose it carefully. Deleting a deal deletes all its line items. Deleting a project deletes all its tasks. Teams that are not prepared for cascade delete sometimes lose detail records by accident when they clean up master records. The cascade is the price of the strict containment.

Does every CRM support master-detail relationships?

The term "master-detail" originated with Salesforce and is Salesforce-specific terminology. The underlying pattern (parent-child with strict containment, inherited permissions, and cascade delete) exists in most CRMs under different names: parent-child relationships, strict references, composite references. HubSpot, Pipedrive, Attio, and Strkr all support the pattern with their own vocabulary. The concept is universal; the terminology varies.

When should I not use a master-detail relationship?

When the child record can legitimately exist without the parent (a contact who leaves one company and joins another should not be deleted), when the child needs independent ownership or permissions (sensitive case notes with different access than the case itself), when the child frequently moves between parents (tasks reassigned across projects), or when the child-to-parent cardinality is many-to-many (requires a junction object, not master-detail). In those cases, a lookup relationship with explicit controls is the better pattern.

Try it free. Bring your team next week.

No sales call, no migration consultant, no four-month implementation. Enter your card, get 14 days of the full Pro tier, cancel any time before day 14 with zero charge. Spin up a workspace, import your CSV, and have something useful before lunch.