Skip to main content
The Company entity represents businesses in the Well system. It stores main company information and serves as a central point for relationships with people, documents, and workspaces.

Table structure

Table name: companies

Main fields

NameTypeRequiredConstraintsAllowed ValuesDescriptionExample
idstring, UUID, πŸ”’ systemβœ… YesUnique identifier (read-only)–Unique identifier of the company previously created”company-uuid-123”
namestringβœ… Yes1–100 chars–Company name”Acme Corp”
descriptionstringβœ… Yesmax 500 chars–Company description explaining business purpose”An innovative technology company”
domainstringβšͺ Nomax 500 chars–Company domain name used as unique identifier in some cases”acme.com”
created_atstring (ISO 8601) πŸ”’ system–auto timestamp–Creation timestamp”2023-01-01T12:00:00Z”
updated_atstring (ISO 8601) πŸ”’ system–auto timestamp–Last updated timestamp”2024-01-01T12:00:00Z”
deleted_atstring | null πŸ”’ systemβšͺ Nonullable ISO 8601–Deletion timestamp (soft delete)β€œ2024-01-01T12:00:00Z”

Relations

The Company entity has many relationships with other entities:

One-to-Many relations

  • CompanyRelation: Relationships between companies
  • CompanyPerson: Links with people
  • CompanyWebLink: Links to social media profiles and websites
  • CompanyLocation: Company addresses/locations
  • CompanyEmail: Company email addresses
  • CompanyPhone: Company phone numbers
  • CompanyCategory: Categories/business sectors
  • CompanyDocument: Documents associated with the company
  • CompanyWorkspace: Relationships with workspaces

Relationship schema

Company (1) ←→ (N) CompanyRelation ←→ (1) Company (inter-company relations)
Company (1) ←→ (N) CompanyPerson ←→ (1) People
Company (1) ←→ (N) CompanyWebLink
Company (1) ←→ (N) CompanyLocation
Company (1) ←→ (N) CompanyEmail
Company (1) ←→ (N) CompanyPhone
Company (1) ←→ (N) CompanyCategory
Company (1) ←→ (N) CompanyDocument ←→ (1) Document
Company (1) ←→ (N) CompanyWorkspace ←→ (1) Workspace
⌘I