This adds the basic schemas for entities and contacts and the ability to associate them to each other:
Entities
Entities are owned by an 1 organization
Entities have a type field, the first type being an Organization (End User Customers)
Organizations can have many entities
Following the same pattern as organization, an entity will have a display name (non-unique) and a name (unique within the owning organization)
All fields are optional on the entity except the name
Contacts
Contacts are owned by an organization
Contacts can be linked to 0 to many entities
All fields are optional on the contact except the full name
The default status of a contact is active but any user status, including a new onboarding status can be set. These are the same status enums that are used for the user table
This adds the basic schemas for entities and contacts and the ability to associate them to each other:
Entities
type
field, the first type being an Organization (End User Customers)Contacts
active
but any user status, including a newonboarding
status can be set. These are the same status enums that are used for theuser
table