Building a CRM data model with companies, contacts and deals

Build a CRM data model in @Human: Companies by hand, then Contacts and Deals with an AI assistant, plus Relation fields and record history.

Written byBrazil Singh Reviewed byNiall McCarthy Published 8 min read

Get more Planet Crust articles in your Google Search.

Add to favorites
Build a CRM data model in three modules: @Human Data Layer with Companies, Contacts and Deals

In short: a simple CRM data model needs three modules: Companies, Contacts and Deals. Each contact links to a company, and each deal links to a company and a contact. In our video, we build the Companies module in @Human field by field. Then we ask an AI assistant connected to @Human to build Contacts and Deals. Plan your field names before records go in: once a field holds data, its system name stays fixed.

Follow the steps below to build the same CRM data model in your own @Human project.

What you’ll build

  • One project, Simple CRM, that holds the whole application.
  • Relation fields that link every contact to a company, and every deal to a company and a main contact.
  • Data rules: a unique email that ignores letter case, two calculated fields and record history on deals.

Watch: how to build a CRM data model in @Human (3:09)

The video shows every step below on a real @Human project. You can also watch the CRM data model walkthrough on YouTube.

Chapters: 0:00 What we’re building · 0:20 Create the project · 0:48 Companies module, built by hand · 1:50 AI builds Contacts and Deals · 2:18 Links, duplicate detection and record history · 2:51 System name vs title.

CRM data model diagram: Companies, Contacts and Deals modules with their fields, and Relation fields linking contacts and deals to companies
The Simple CRM data model: Companies built by hand, Contacts and Deals built by an AI assistant, linked by Relation fields.

Step 1: Start with a project

Everything starts with a project. We called ours Simple CRM and gave it a short description.

A project keeps everything for one application together, from the CRM data model and pages to automations and components. Every project moves through six stages: Setup, Policies and Risk, Build, Govern, Manage and Comply. The Data Layer, where your CRM data model lives, sits in the Build stage.

Step 2: Build the Companies module of your CRM data model by hand

We built the first module manually, so you can see what each setting does. From the Data Layer, create a new module called Companies and start adding fields. Each field has its own settings, including a label and a field type.

Field Field type Why this type
Company name Text, required Every company record must have a name.
Website URL Stores the company’s web address as a link.
Industry Select, with predefined options A fixed list keeps data consistent and easy to filter.
Number of employees Number, no decimal places Headcount is a whole number.
Notes Text Room for anything that doesn’t fit another field.

The module also keeps the Name field it starts with, so Companies ends up with six fields.

Make the name required. A company record without a name is a record nobody can find. A required field stops that at the point of entry, so you don’t clean it up later.

Use a Select field for Industry. Free text gives you “Healthcare”, “Health care” and “healthcare” as three different industries. A Select field with predefined options gives you one, so your filters stay consistent.

Click Apply after each field. The field dialog offers more settings we didn’t need here:

  • Must be unique and Multiple
  • A default value and a calculated value
  • Sanitize, Validate and Format rules

Step 3: Ask an AI assistant to build Contacts and Deals

For the other two modules, we opened an AI assistant (Claude) connected to our @Human project. We described both modules in one request:

  • Contacts: first name, last name and email (all required), phone, job title, a company linked to Companies (required) and “agreed to marketing emails” (yes or no).
  • Deals: deal name, a company linked to Companies, a main contact linked to Contacts, a value in euros, a stage (Lead, Qualified, Proposal sent, Won or Lost, starting at Lead), an expected close date, a deal owner, and an “open deal” yes or no worked out from the stage.

The assistant created both modules, added their fields and set up the relationships, so the CRM data model was complete. Every @Human instance runs its own @Human MCP server, which is how an AI assistant can work inside a project. @Human works with any AI provider.

Building one module of the CRM data model by hand first pays off here. You know what each field type does, so you can check what the AI built.

Step 4: Check the CRM data model the AI built

The Data Layer now shows three modules and 22 fields: six in Companies, eight in Contacts and eight in Deals. Open each module and check it before anyone relies on it.

The Contacts module

Field Field type Notes
Full name Text Calculated from first and last name
First name Text Required
Last name Text Required
Email Email Required, unique, ignores case
Phone Text
Job title Text
Company Relation to Companies Required
Agreed to marketing emails Checkbox (Y/N)
Contacts module in @Human: eight fields, including a required Company Relation field to Companies and an Email field that ignores case
The Contacts module after the AI built it, from our video.

Relation fields connect the modules

In Contacts, the Company field is a required Relation field that points to Companies. That one field connects the two modules of the CRM data model, so contacts and companies stop being separate lists. Each contact points to a real company record, not a typed company name.

Duplicate detection on contacts

The AI also set up duplicate detection on Contacts, which keeps the CRM data model clean. The Email field is required and must be unique, with Ignore case selected. So Anna@example.com and anna@example.com count as the same address. In the video, @Human also flags similar phone numbers.

@Human Email field settings: required, must be unique, with Ignore case selected
The Email field: required, must be unique, Ignore case.

The Deals module

Field Field type Notes
Deal name Text
Company Relation to Companies
Main contact Relation to Contacts
Value (EUR) Number
Stage Select Lead, Qualified, Proposal sent, Won, Lost; starts at Lead
Expected close date Date and time
Deal owner User
Open deal Checkbox (Y/N) Calculated: ticked unless the stage is Won or Lost
Deals module in @Human: Relation fields to Companies and Contacts, a value in euros, a Stage select and a calculated Open deal field
The Deals module, with two Relation fields and a calculated Open deal field.

Calculated fields and record history on deals

Two fields in this CRM data model fill themselves in. @Human calculates Full name from the first and last name. It also ticks Open deal until the stage reaches Won or Lost.

On the Deals module, the AI also enabled record history. @Human keeps each change to a deal, including who made it and when. When a deal’s value or stage moves, you can see the person behind the change instead of guessing.

Step 5: Plan your field names before records go in

One rule shapes any CRM data model in @Human: once a field holds data, its system name stays fixed. You can still change its title, the label people see, at any time.

So settle these before you import or enter data:

  1. System names. Pick names you’ll still want in a year.
  2. Types. Decide whether each value is Text, Number, Select, Email, URL, User, Checkbox, Date and time, or a Relation.
  3. Required fields. Decide which fields every record must have.
  4. Fixed lists. Move repeated values into a Select field instead of free text.
  5. Links. Decide which modules point to which. Here, Contacts point to Companies, and Deals point to both.

Why the CRM data model lives in a governed project

If you build your own CRM in @Human, the data model isn’t a separate tool. It sits in a project with the same Access settings as any other @Human application, such as roles, permissions and user groups. The same Govern, Manage and Comply stages apply too. Record history on Deals adds the evidence: who changed a deal, and when.

The walkthrough shows the working pattern. The AI proposes the modules and fields, and you review them before anyone relies on them. @Human gives you the controls and the evidence; how you use them is still your decision.

@Human is open source and self-hosted, so your customer data stays with you. @Human pricing is pay what you can, from €1 a month, for the whole platform. Not-for-profits get free builds.

FAQ

What is a CRM data model?

A CRM data model is the set of modules, fields and links that hold your customer data. A simple one has three modules: Companies, Contacts and Deals, with each contact linked to a company.

How do I build a CRM data model in @Human?

Create a project, then add modules in its Data Layer. In the video, we build Companies by hand. Then we describe Contacts and Deals to an AI assistant connected to @Human, and it builds them.

Can I change a field after I’ve added records?

You can change its title at any time. Once a field holds data, you can’t change its system name.

Does @Human stop duplicate contacts?

Partly. The Email field must be unique and ignores letter case, so Anna@example.com and anna@example.com can’t both be saved. Similar phone numbers are flagged.

Can I see who changed a deal?

Yes, when record history is on for the module. In the walkthrough, the AI enabled it on Deals, so each change shows who made it and when.

Do this today

Write down the three modules your team’s CRM data model needs. List every field with its type, whether it’s required, and which module it links to. Use Step 5 as your checklist. When the list is right, build the first module by hand and let an AI assistant build the rest.

To see a data model, pages and automations working together in one governed project, book a free walkthrough. A real person replies within one working day.

Related reading

Sources

Found this useful? Share it.

Written by

Brazil Singh

More articles by Brazil

Reviewed by

Niall McCarthy

More articles by Niall
Sales

Talk to our sales team

Planning @Human for your organisation? Tell us a little and the right person will get back to you.

  • Plans, support and licensing explained
  • Pilot and rollout options
  • Answers from the team that builds @Human

We reply within one working day.

Your enquiry

A few details so we can prepare.

General enquiries

Get in touch

Press, partnerships, careers or anything else. Send us a note and the right person will reply.

  • Press and media
  • Partnerships and community
  • Careers and everything else

Questions about buying @Human? Talk to our sales team.

Your message

We'll reply by email.

Quote

Ask for a quote

Tell us what you need and we'll prepare a written quote for your organisation.

  • Support plans with an SLA
  • Enterprise Support with a named engineer
  • Build, pilot and rollout services

Quotes are free, and the decision is always yours. Prices exclude VAT.

Quote details

The more we know, the more precise the quote.

Newsletter

News from @Human

Product updates, governance tips and early-access news, about once a month.

  • What's new in @Human
  • Practical EU AI Act and ISO 42001 notes
  • Unsubscribe in one click, any time

Your email stays private with us.

Subscribe

Just your email is enough.

Token savings

Estimate what you could save on tokens

Tell us about one process that runs on AI today. We'll map which steps need a model and which can run as token-free code.

  • Which steps need judgement, and which run as code
  • A rough before-and-after of your token bill
  • Ideas you can use whatever you decide

Estimates are illustrative. Real costs depend on your model, provider and volumes.

Get your estimate

A specialist replies within one working day.

Not-for-profit free build

Apply for a free governed AI application

For charities, NGOs and community groups. We build your first @Human application free of charge.

  • Governed from the first line
  • Cheap to run, protects the people you serve
  • Yours to keep and run

We reply within one working day to arrange a scoping call.

Your application

A few details about your organisation and what you'd build.

Enterprise pilot

Plan your @Human pilot

Start with one AI system that matters, prove the value, then standardise what works across the enterprise.

  • Policies, risk and approval gates set up with you
  • Your cloud, your models, your data
  • A clear path from pilot to portfolio

We reply within one working day to plan next steps.

Tell us about your pilot

Two minutes now saves a meeting later.

Ask us anything

Ask your own question

Security, compliance, integration, cost or anything else. A real person replies.

  • An answer within one working day
  • From the team that builds @Human
  • Routed to the right specialist on our team

Prefer to see it live? Book @Human Walkthrough from any page.

Your question

We'll reply by email.

Get started

Choose your @Human plan

Pick what you'd like to pay. Nothing is charged today: we'll email you to get you set up.

  • €0 due today
  • The same platform at every amount
  • Change or cancel at any time

We email you before anything is charged.

Your plan

Three short steps.

Plan€10 a month
Due today€0.00

€0 due today. Choosing your plan gets you started, and we will email you before anything is charged. You can change or cancel at any time.

20-minute walkthrough

See @Human at work with your use cases

Bring a use case you're planning. We'll show you how to build it in @Human as a compliance-first AI system.

  • Built around your own use case
  • How it's classified, governed and evidenced
  • Which plan fits, honestly

Your pace, your decision. A real conversation.

Book your walkthrough

We reply within one working day to find a time.