mirror of
https://github.com/abhinavxd/libredesk.git
synced 2025-10-23 05:11:57 +00:00
- Update all SQL queries to add missing columns - Update the create conversation API to allow setting the initiator of a conversation. For example, we might want to use this API to create a conversation on behalf of a customer, with the first message coming from the customer instead of the agent. This param allows this. - Minor refactors and clean up - Tidy go.mod - Rename structs to reflect purpose - Create focus structs for scanning JSON payloads for clarity.
21 lines
635 B
Go
21 lines
635 B
Go
// package models has the models for the customer satisfaction survey responses.
|
|
package models
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/volatiletech/null/v9"
|
|
)
|
|
|
|
// CSATResponse represents a customer satisfaction survey response.
|
|
type CSATResponse struct {
|
|
ID int `db:"id"`
|
|
CreatedAt time.Time `db:"created_at"`
|
|
UpdatedAt time.Time `db:"updated_at"`
|
|
UUID string `db:"uuid"`
|
|
ConversationID int `db:"conversation_id"`
|
|
Rating int `db:"rating"`
|
|
Feedback null.String `db:"feedback"`
|
|
ResponseTimestamp null.Time `db:"response_timestamp"`
|
|
}
|