29 lines
681 B
Go
29 lines
681 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
type Booking struct {
|
|
BookingReference int `gorm:"primaryKey;index"`
|
|
BookingTime *time.Time `gorm:"index"`
|
|
Timezone *string
|
|
Language *string
|
|
CustomData *string
|
|
Method *string `gorm:"index"`
|
|
Duration *int
|
|
BookedDuration *int
|
|
ConversationId *string `gorm:"index"`
|
|
CancellationTime *time.Time
|
|
InterpreterId *int `gorm:"index"`
|
|
ClientId *int `gorm:"index"`
|
|
AgentName *string
|
|
AgentEmail *string
|
|
AgentPhone *string
|
|
Comments *string
|
|
BillingCode *string
|
|
TicketId string
|
|
}
|
|
|
|
func (Booking) TableName() string {
|
|
return "gc_bookings"
|
|
}
|