Skip to main content
The Email entity represents email addresses in the Well system. It can be associated with people or companies and includes verification status, primary designation, and contextual labels.

Table structure

Table name: emails

Main fields

NameTypeRequiredConstraintsAllowed ValuesDescriptionExample
idstring, UUID, πŸ”’ systemβ€”Unique identifier (read-only)β€”Unique ID”email-uuid-123”
emailstringβœ… YesValid email formatValid email format = local part + ”@” + domain + ”.” + TLDEmail address”john.doe@company.com”
is_primarybooleanβšͺ Nodefault: true, only valid when in relationship with a Person or Companytrue, falseMarks preferred addresstrue
is_verifiedboolean, πŸ”’ systemβ€”Verification flag. Only systems or whitelisted workspaces can modifytrue, falseVerification flagtrue
labelstring (50 char)βšͺ Nomax 50 chars, only valid when in relationship with a Person or Companywork, perso, otherTag for extra context when having multiple emails”work”
created_atstring (ISO 8601) πŸ”’ systemβ€”auto timestampβ€”Creation timestamp”2023-01-01T12:00:00Z”
updated_atstring (ISO 8601) πŸ”’ systemβ€”auto timestampβ€”Last update timestamp”2023-01-01T12:00:00Z”
deleted_atstring | null πŸ”’ systemβ€”nullable ISO 8601β€”Deletion timestamp (soft delete)β€œ2024-01-01T12:00:00Z”

Relations

Many-to-Many relations

  • People: Can be associated with multiple people
  • Companies: Can be associated with multiple companies

Relationship schema

Email (N) ←→ (N) People
Email (N) ←→ (N) Companies

# Direct relationship without intermediate tables
# Each email can belong to multiple people/companies
# Each person/company can have multiple emails
⌘I