> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# s_sent_message table

> Emarketeer message control

## s\_sent\_message Table (405)

Emarketeer message control

## Fields

| Name         | Description                                         | Type                               | Nullable |
| ------------ | --------------------------------------------------- | ---------------------------------- | :------: |
| id           | The primary key (auto-incremented)                  | PK                                 |    No    |
| shipment\_id | Which shipment the customer received.               | FK [s\_shipment](./s-shipment.mdx) |    No    |
| message\_id  | The id of the message that is sent in this shipment | FK [s\_message](./s-message.mdx)   |    No    |
| customer\_id | The id of the customer that received the message    | FK [person](./person.mdx)          |    No    |
| email        | The email-adresse the received the message          | String(255)                        |    Yes   |
| when\_sent   | When the email was sent.                            | DateTime                           |    Yes   |
| when\_read   | When the email was read or link was clicked.        | DateTime                           |    Yes   |

<img src="https://mintcdn.com/superofficeas/8-OIGQQJR0VGDXy_/media/loc/en/database/tables/s_sent_message.png?fit=max&auto=format&n=8-OIGQQJR0VGDXy_&q=85&s=fc47c79e8cd8be39dd269e2079f9d580" alt="s_sent_message table relationship diagram" width="685" height="677" data-path="media/loc/en/database/tables/s_sent_message.png" />

## Indexes

| Fields       | Types | Description |
| ------------ | ----- | ----------- |
| shipment\_id | FK    | Index       |
| message\_id  | FK    | Index       |
| customer\_id | FK    | Index       |

## Relationships

| Table                       | Description                                                                     |
| --------------------------- | ------------------------------------------------------------------------------- |
| [person](./person)          | Persons                                                                         |
| [s\_message](./s-message)   | A message used in a shipment. Can be html and/or plain text                     |
| [s\_shipment](./s-shipment) | Contains info about one shipment. The addresses are stored in s\_shipment\_addr |

## Replication Flags

* None

## Security Flags

* No access control via user's Role.


## Related topics

- [s_message table](/en/database/tables/s-message.md)
- [s_shipment table](/en/database/tables/s-shipment.md)
- [person table](/en/database/tables/person.md)
- [sms table](/en/database/tables/sms.md)
- [Messages](/en/developer-portal/create-app/message-center.md)
- [Create Message](/en/api/reference/restful/agent/messaging_agent/create-message.md)
