Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | uuid | 2147483647 | gen_random_uuid() |
|
|
||||||
| recipientId | uuid | 2147483647 | √ | null |
|
|
User receiving the message |
||||
| phoneNumber | text | 2147483647 | null |
|
|
Phone number to which the message is sent |
|||||
| templateName | text | 2147483647 | null |
|
|
Whatsapp template name which is used for this message |
|||||
| eventPayload | jsonb | 2147483647 | null |
|
|
Full payload sent to whatsapp |
|||||
| status | enum_WhatsappLogs_status | 2147483647 | null |
|
|
Status of sending the whatsapp message |
|||||
| failureReason | text | 2147483647 | √ | null |
|
|
|||||
| createdAt | timestamptz | 35,6 | now() |
|
|
||||||
| updatedAt | timestamptz | 35,6 | now() |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| WhatsappLogs_pkey | Primary key | Asc | id |
| public_WhatsappLogs_phoneNumber_idx | Performance | Asc | phoneNumber |
| public_WhatsappLogs_recipientId_idx | Performance | Asc | recipientId |
| public_WhatsappLogs_status_idx | Performance | Asc | status |
| public_WhatsappLogs_templateName_idx | Performance | Asc | templateName |
Check Constraints
| Constraint Name | Constraint |
|---|---|
| WhatsappLogs_failureReason_nullable_check | ((((status = 'FAILED'::"enum_WhatsappLogs_status") AND ("failureReason" IS NOT NULL)) OR ((status <> 'FAILED'::"enum_WhatsappLogs_status") AND ("failureReason" IS NULL)))) |

