A CRM looks like a table of contacts with some pipelines. It's actually a dozen interconnected entities: contacts, companies, deals, activities, tasks, notes, emails: with permissions, custom fields, automation, and reporting layered on top. Building one in Next.js from scratch is realistically a four-month project.
What a real CRM has to do
Contacts and companies as linked entities
A contact belongs to a company. Companies have many contacts. Most early builds treat them as flat records with a "company" text field. That fails the moment you need to view all contacts at one company, see deal totals per company, or merge duplicate companies.
Build them as first-class entities from day one. Contact has a company_id foreign key. Company has aggregated counts and totals computed at query time or cached.
Pipeline as a kanban board and more
The deal pipeline is the heart of the CRM. Users expect drag-and-drop between stages with counts and values per stage.…