Skip to main content
The People entity represents individuals in the Well system. It stores basic personal information and serves as a central point for relationships with other entities such as companies, documents, and workspaces.

Table structure

Table name: peoples

Main fields

NameTypeRequiredConstraintsAllowed ValuesDescriptionExample
idstring, UUID, πŸ”’ systemβœ… YesUnique identifier (read-only)–UUID or slug”person-uuid-123”
first_namestring (1–50)βœ… Yesmax 50 chars–First name”Ada”
last_namestring (1–50)βœ… Yesmax 50 chars–Last name”Lovelace”
full_namestring (1–100) πŸ”’ Systemβšͺ Noauto if not set–Full name”Ada Lovelace”
job_titlestring (0–100)βšͺ Nomax 100 chars–Job title”Mathematician”
avatar_imagestringβšͺ Nonullable URL–Profile image URL”https://example.com/avatar.jpg”
created_atstring (ISO 8601) πŸ”’ System–auto timestamp–Creation timestamp”2023-01-01T12:00:00Z”
updated_atstring (ISO 8601) πŸ”’ System–auto timestamp–Last updated”2024-01-01T12:00:00Z”
deleted_atstring | nullβšͺ Nonullable ISO 8601–Deletion timestamp (soft delete)β€œ2024-01-01T12:00:00Z”

Relations

The People entity has numerous relationships with other entities:

One-to-Many relations

  • PersonWorkspaces: Links with workspaces
  • PersonPhone: Associated phone numbers
  • PersonEmail: Associated email addresses
  • PersonLocation: Addresses/locations
  • PersonSocialLink: Links to social networks
  • PersonDocument: Documents associated with the person
  • Membership: Memberships in organizations
  • Collect: Related data collections
  • CompanyPerson: Relationships with companies

Relationship schema

People (1) ←→ (N) PersonWorkspaces ←→ (1) Workspace
People (1) ←→ (N) PersonPhone
People (1) ←→ (N) PersonEmail  
People (1) ←→ (N) PersonLocation
People (1) ←→ (N) PersonSocialLink
People (1) ←→ (N) PersonDocument ←→ (1) Document
People (1) ←→ (N) Membership ←→ (1) Organisation
People (1) ←→ (N) Collect
People (1) ←→ (N) CompanyPerson ←→ (1) Company
⌘I