Files
libredesk/internal/csat/models/models.go
T
Abhinav Raut 88a58c0f3b Custom static directory support, self hosted installations can pass static dir path to override csat and other web-templates, js and css files. Allowing instances to be fully customizable.
- 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
2026-04-09 00:04:00 +05:30

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"`
}