Menu
Public repository / 54570403655120661aa5aeb6120646216896cc76
AkurAI-CRM / site/backend/collections.toml
Latest change 316acd560404374ffb0e95094ac8db5e743b6cef - feat: standardize health endpoint to /api/health with app/version/status by Ólafur B. J.
# AkurAI-CRM data model — declarative schema # Auto-generates REST API for all collections [collections.people] [[collections.people.fields]] name = "firstName" type = "Text" label = "First Name" required = true searchable = true [[collections.people.fields]] name = "lastName" type = "Text" label = "Last Name" required = true searchable = true [[collections.people.fields]] name = "email" type = "Text" label = "Email" searchable = true [[collections.people.fields]] name = "phone" type = "Text" label = "Phone" [[collections.people.fields]] name = "jobTitle" type = "Text" label = "Job Title" searchable = true [[collections.people.fields]] name = "companyId" type = "Number" label = "Company" [[collections.people.fields]] name = "linkedinUrl" type = "Text" label = "LinkedIn URL" [[collections.people.fields]] name = "avatarUrl" type = "Text" label = "Avatar" [collections.companies] [[collections.companies.fields]] name = "name" type = "Text" label = "Name" required = true searchable = true [[collections.companies.fields]] name = "domainName" type = "Text" label = "Domain" searchable = true [[collections.companies.fields]] name = "annualRevenue" type = "Number" label = "Annual Revenue" [[collections.companies.fields]] name = "employeeCount" type = "Number" label = "Employees" [[collections.companies.fields]] name = "linkedinUrl" type = "Text" label = "LinkedIn" [[collections.companies.fields]] name = "websiteUrl" type = "Text" label = "Website" [[collections.companies.fields]] name = "address" type = "Text" label = "Address" [collections.opportunities] [[collections.opportunities.fields]] name = "name" type = "Text" label = "Deal Name" required = true searchable = true [[collections.opportunities.fields]] name = "amount" type = "Number" label = "Amount" [[collections.opportunities.fields]] name = "stage" type = "Select" label = "Stage" [[collections.opportunities.fields]] name = "closeDate" type = "Number" label = "Close Date" [[collections.opportunities.fields]] name = "probability" type = "Number" label = "Probability (%)" [[collections.opportunities.fields]] name = "personId" type = "Number" label = "Contact" [[collections.opportunities.fields]] name = "companyId" type = "Number" label = "Company" [collections.tasks] [[collections.tasks.fields]] name = "title" type = "Text" label = "Title" required = true searchable = true [[collections.tasks.fields]] name = "description" type = "Text" label = "Description" [[collections.tasks.fields]] name = "status" type = "Select" label = "Status" [[collections.tasks.fields]] name = "dueAt" type = "Number" label = "Due Date" [[collections.tasks.fields]] name = "assigneeId" type = "Number" label = "Assignee" [collections.notes] [[collections.notes.fields]] name = "title" type = "Text" label = "Title" searchable = true [[collections.notes.fields]] name = "body" type = "Text" label = "Body" required = true