Skip to main content

Customers Data Model

The Customer entity is the central business entity in the SureInk platform. It represents the organization or individual that has a relationship with SureInk.

Entity Relationship Diagram

Core Entities

Customer (com.sureink.customer.model.Customer)

The root entity for all business operations.

  • Key Fields:
    • name: The display name of the customer.
    • code: A unique identifier used across the system (often the tenant ID).
    • accountType: Categorizes the customer (e.g., Prospect, Customer, Partner).
    • type: The license type (e.g., Trial, Paid).
    • accountOwner: The internal sales or account manager responsible for this customer.
    • instanceAdminEmail: The primary technical contact for the customer's instance.

Customer Contact (com.sureink.customer.model.CustomerContact)

Represents individuals associated with the Customer.

  • Key Fields:
    • firstName / lastName: Personal details.
    • email: Primary communication channel.
    • title: Job title.
    • salesforceId: Link to the contact record in Salesforce.

Relationships

Customer -> Customer Contact

  • Type: One-to-Many
  • Description: A Customer can have multiple Contacts. These contacts are often synchronized from Salesforce.

Customer -> Customer Address

  • Type: One-to-Many
  • Description: Stores billing, shipping, and other physical addresses for the customer.

Customer -> Customer External System

  • Type: One-to-One
  • Description: Links the SureInk Customer record to external systems like Salesforce (Account ID) or QuickBooks (Customer ID).