diff --git a/record.go b/record.go index 65b14a2..53e5da6 100644 --- a/record.go +++ b/record.go @@ -4,6 +4,7 @@ import ( "encoding/json" "log" "strings" + "time" "github.com/gin-gonic/gin" "github.com/google/uuid" @@ -11,10 +12,10 @@ import ( ) type Record struct { - gorm.Model - ID uuid.UUID `gorm:"type:uuid"` - Body string - Response string + ID uuid.UUID `gorm:"type:uuid"` + CreatedAt time.Time + Body string + Response string } func recordUserMessage(c *gin.Context, db *gorm.DB, trackID uuid.UUID, body []byte) {