mirror of
https://github.com/abhinavxd/libredesk.git
synced 2026-09-22 10:33:24 +00:00
88a58c0f3b
- New meta JSONB field in CSAT responses to capture random adhoc data as that might be needed for custom CSAT pages. - Add support prefilled rating for csat pages picked from query param
23 lines
880 B
Go
23 lines
880 B
Go
// package models has the models for the customer satisfaction survey responses.
|
|
package models
|
|
|
|
import (
|
|
"encoding/json"
|
|
"time"
|
|
|
|
"github.com/volatiletech/null/v9"
|
|
)
|
|
|
|
// CSATResponse represents a customer satisfaction survey response.
|
|
type CSATResponse struct {
|
|
ID int `db:"id" json:"id"`
|
|
CreatedAt time.Time `db:"created_at" json:"created_at"`
|
|
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
|
|
UUID string `db:"uuid" json:"uuid"`
|
|
ConversationID int `db:"conversation_id" json:"conversation_id"`
|
|
Rating int `db:"rating" json:"rating"`
|
|
Feedback null.String `db:"feedback" json:"feedback"`
|
|
Meta json.RawMessage `db:"meta" json:"meta"`
|
|
ResponseTimestamp null.Time `db:"response_timestamp" json:"response_timestamp"`
|
|
}
|