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.
Get more Planet Crust articles in your Google Search.
Add to favorites
On this page
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.

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 |
| Required, unique, ignores case | ||
| Phone | Text | |
| Job title | Text | |
| Company | Relation to Companies | Required |
| Agreed to marketing emails | Checkbox (Y/N) |

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.

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 |

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:
- System names. Pick names you’ll still want in a year.
- Types. Decide whether each value is Text, Number, Select, Email, URL, User, Checkbox, Date and time, or a Relation.
- Required fields. Decide which fields every record must have.
- Fixed lists. Move repeated values into a Select field instead of free text.
- 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
- @Human product walkthrough: governing a real AI assistant, from risk assessment to oversight.
- AI agents vs workflows: when to use each.
- @Human for the enterprise.
Sources
- Planet Crust, “How to build a CRM data model: companies, contacts and deals with AI“, product video on YouTube, 3 December 2026. Field names, types and settings are as shown on screen.