created_at to api
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
package models
|
||||
|
||||
import "github.com/google/uuid"
|
||||
import (
|
||||
"github.com/google/uuid"
|
||||
"time"
|
||||
)
|
||||
|
||||
type Feedback struct {
|
||||
UUID string `gorm:"primaryKey"`
|
||||
@@ -8,9 +11,13 @@ type Feedback struct {
|
||||
ProjectID string `gorm:"type:varchar(255)"`
|
||||
|
||||
SessionUUID string `gorm:"type:varchar(255)"`
|
||||
SessionName string `gorm:"type:varchar(255)"`
|
||||
|
||||
Type string `gorm:"type:varchar(255)"`
|
||||
Text string `gorm:"type:varchar(300)"`
|
||||
|
||||
CreatedAt time.Time `gorm:"type:timestamp"`
|
||||
UpdatedAt time.Time `gorm:"type:timestamp"`
|
||||
}
|
||||
|
||||
func NewFeedback(userUUID, sessionUUID, ticketType, text, projectID string) *Feedback {
|
||||
|
||||
Reference in New Issue
Block a user