26 lines
498 B
Go
26 lines
498 B
Go
package model
|
|
|
|
import "time"
|
|
|
|
type Message struct {
|
|
ID string `bson:"_id"`
|
|
TicketID string `bson:"TicketID"`
|
|
UserID string `bson:"UserID"`
|
|
SessionID string `bson:"SessionID"`
|
|
|
|
Message string `bson:"Messsage"`
|
|
Files []string `bson:"Files"`
|
|
|
|
CreatedAt time.Time `bson:"CreatedAt"`
|
|
}
|
|
|
|
type Ticket struct {
|
|
ID string `bson:"_id"`
|
|
UserID string `bson:"UserID"`
|
|
SessionID string `bson:"SessionID"`
|
|
|
|
Title string `bson:"Title"`
|
|
|
|
CreatedAt time.Time `bson:"CreatedAt"`
|
|
}
|